From 5a33d551de48cdb152f0731bcc30b6b7d1f6e3c2 Mon Sep 17 00:00:00 2001 From: Nick Downing Date: Tue, 4 Feb 2020 02:55:54 +1100 Subject: [PATCH] Change yarn to pnpm, add commander dependency, fix command line help slightly --- .gitignore | 4 +--- cli.js | 6 +++--- package.json | 7 ++++--- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index b7dd79b..310c209 100644 --- a/.gitignore +++ b/.gitignore @@ -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 --- a/cli.js +++ b/cli.js @@ -6,9 +6,9 @@ let jstize = require('./jstize') commander .version('0.1.0', '-v, --version') - .option('-i, --indent ', 'indent [2]', '2') - .option('-j, --initial-indent ', 'initial indent level [0]', '0') - .option('-n, --name ', 'message for --wrap [page.jst]', 'page.jst') + .option('-i, --indent ', 'indent per level', '2') + .option('-j, --initial-indent ', 'initial indent', '0') + .option('-n, --name ', 'message for --wrap', 'page.jst') .option('-w, --wrap', 'wrap as jst_server template function') .parse(process.argv) diff --git a/package.json b/package.json index 6f5bbe1..75be810 100644 --- a/package.json +++ b/package.json @@ -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", @@ -22,9 +22,10 @@ "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", -- 2.34.1