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

index b7dd79b..310c209 100644 (file)
@@ -1,5 +1,3 @@
 /ndcode-jstize-*.tgz
 /node_modules
-/package-lock.json
-/yarn.lock
-/yarn-error.log
+/pnpm-lock.yaml
diff --git a/cli.js b/cli.js
index 2d3b56d..76b0d8a 100755 (executable)
--- a/cli.js
+++ b/cli.js
@@ -6,9 +6,9 @@ let jstize = require('./jstize')
 
 commander
   .version('0.1.0', '-v, --version')
-  .option('-i, --indent <n>', 'indent [2]', '2')
-  .option('-j, --initial-indent <n>', 'initial indent level [0]', '0')
-  .option('-n, --name <str>', 'message for --wrap [page.jst]', 'page.jst')
+  .option('-i, --indent <n>', 'indent per level', '2')
+  .option('-j, --initial-indent <n>', 'initial indent', '0')
+  .option('-n, --name <str>', 'message for --wrap', 'page.jst')
   .option('-w, --wrap', 'wrap as jst_server template function')
   .parse(process.argv)
 
index 6f5bbe1..75be810 100644 (file)
@@ -1,7 +1,7 @@
 {
   "name": "@ndcode/jstize",
   "version": "0.1.0",
-  "description": "Utility to convert regular HTML into JST template.",
+  "description": "Utility to convert regular HTML into JST template",
   "keywords": [
     "HTML",
     "JST",
   "main": "jstize.js",
   "directories": {},
   "dependencies": {
-    "@ndcode/clean-css": "^4.2.1",
-    "@ndcode/html-minifier": "^3.5.21",
+    "@ndcode/clean-css": "^4.2.2",
+    "@ndcode/html-minifier": "^3.5.22",
     "assert": "^1.4.1",
+    "commander": "^2.17.0",
     "fs": "^0.0.1-security",
     "html-entities": "^1.2.1",
     "node-stringify": "^0.2.1",