Change yarn to pnpm, add commander dependency, fix command line help slightly
authorNick Downing <nick.downing@lifx.co>
Mon, 3 Feb 2020 15:56:03 +0000 (02:56 +1100)
committerNick Downing <nick.downing@lifx.co>
Mon, 3 Feb 2020 15:56:03 +0000 (02:56 +1100)
.gitignore
cli.js
package.json

index 170e15a..0a4dbe6 100644 (file)
@@ -1,6 +1,4 @@
 /dist
 /js_template-*.tgz
 /node_modules
-/package-lock.json
-/yarn.lock
-/yarn-error.log
+/pnpm-lock.yaml
diff --git a/cli.js b/cli.js
index 07fc5df..47ea01f 100755 (executable)
--- a/cli.js
+++ b/cli.js
@@ -6,10 +6,10 @@ let jst = require('./jst')
 
 commander
   .version('0.1.0', '-v, --version')
-  .option('-s, --signature <str>', 'function signature for --wrap [async (_require, _pathname, _root)]', 'async (_require, _pathname, _root)')
+  .option('-s, --signature <str>', 'function signature for --wrap', 'async (_require, _pathname, _root)')
   .option('-b, --bare-returns', 'allow return in top level code', false)
-  .option('-i, --indent <n>', 'indent [2]', '2')
-  .option('-j, --initial-indent <n>', 'initial indent level [0]', '0')
+  .option('-i, --indent <n>', 'indent per level', '2')
+  .option('-j, --initial-indent <n>', 'initial indent', '0')
   .option('-w, --wrap', 'wrap as jst_server CommonJS module', false)
   .parse(process.argv)
 
index 8ebdeca..b6998b9 100644 (file)
   "dependencies": {
     "@ndcode/build_cache": "^0.1.0",
     "@ndcode/clean-css": "^0.1.0",
-    "@ndcode/disk_build": "^0.1.0",
+    "@ndcode/disk_build": "^0.1.1",
     "assert": "^1.4.1",
     "astring": "^1.3.1",
+    "commander": "^2.17.0",
     "rollup": "^0.45.0",
     "rollup-plugin-buble": "^0.16.0",
     "uglify-es": "^3.3.9"