Skip to content

Commit

Permalink
fix: documentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
darthtrevino committed Jun 7, 2019
1 parent d14ea60 commit 6630373
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
5 changes: 3 additions & 2 deletions packages/documentation/package.json
Expand Up @@ -53,17 +53,18 @@
"devDependencies": {
"gh-pages": "^2.0.1",
"npm-run-all": "^4.1.5",
"prettier": "^1.17.1"
"prettier": "^1.18.0"
},
"scripts": {
"clean": "rimraf .cache public apidocs static/examples_js static/examples_ts",
"start": "gatsby develop",
"copy_examples:js": "cp -r ../examples/lib/docs static/examples_js",
"copy_examples:ts": "cp -r ../examples/src static/examples_ts",
"copy_examples": "run-s copy_examples:*",
"prune_buildinfo": "rm static/examples_js/tsconfig.docs.tsbuildinfo",
"format_examples": "prettier 'static/examples_*/**/*' --use-tabs=false --write",
"write_example_boilerplate": "node write_sample_boilerplate.js",
"process_examples": "run-s copy_examples format_examples write_example_boilerplate",
"process_examples": "run-s copy_examples prune_buildinfo format_examples write_example_boilerplate",
"build_static_site": "gatsby build --prefix-paths",
"publish_gh_pages": "NODE_DEBUG=gh-pages gh-pages -d public -t",
"release": "run-s clean process_examples build_static_site publish_gh_pages"
Expand Down
7 changes: 5 additions & 2 deletions packages/documentation/write_sample_boilerplate.js
Expand Up @@ -163,7 +163,10 @@ walk_examples(path.join(__dirname, 'static/examples_js'), 'index.jsx', function(
)

const packageJsonFile = path.join(exampleDir, 'package.json')
fs.writeFileSync(packageJsonFile, JSON.stringify(makePackageJson(index)))
fs.writeFileSync(
packageJsonFile,
JSON.stringify(makePackageJson(index), null, 2),
)

const sandboxAppFile = path.join(srcDir, 'index.js')
fs.writeFileSync(sandboxAppFile, APP_FILE_CONTENT)
Expand Down Expand Up @@ -213,7 +216,7 @@ walk_examples(path.join(__dirname, 'static/examples_ts'), 'index.tsx', function(
const packageJsonFile = path.join(exampleDir, 'package.json')
fs.writeFileSync(
packageJsonFile,
JSON.stringify(makePackageJson(index, true)),
JSON.stringify(makePackageJson(index, true), null, 2),
)

const sandboxAppFile = path.join(srcDir, 'index.tsx')
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Expand Up @@ -13015,6 +13015,11 @@ prettier@^1.17.1:
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.17.1.tgz#ed64b4e93e370cb8a25b9ef7fef3e4fd1c0995db"
integrity sha512-TzGRNvuUSmPgwivDqkZ9tM/qTGW9hqDKWOE9YHiyQdixlKbv7kvEqsmDPrcHJTKwthU774TQwZXVtaQ/mMsvjg==

prettier@^1.18.0:
version "1.18.0"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.18.0.tgz#d1701ca9b2941864b52f3262b35946d2c9cd88f0"
integrity sha512-YsdAD29M0+WY2xXZk3i0PA16olY9qZss+AuODxglXcJ+2ZBwFv+6k5tE8GS8/HKAthaajlS/WqhdgcjumOrPlg==

pretty-bytes@^4.0.2:
version "4.0.2"
resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-4.0.2.tgz#b2bf82e7350d65c6c33aa95aaa5a4f6327f61cd9"
Expand Down

0 comments on commit 6630373

Please sign in to comment.