Skip to content

Commit

Permalink
add npm run play
Browse files Browse the repository at this point in the history
  • Loading branch information
SHND committed Apr 17, 2022
1 parent b723a7c commit 5cd9d2f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# source
src/
test/
play/
deno/

# tools
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"types": "dist/index.d.ts",
"scripts": {
"start": "node ./dist/index.js",
"play": "npm run build; node ./play/index.js",
"build": "tsc; webpack -c deno-webpack.config.js; cp README.md deno/README.md",
"test": "cross-env TS_NODE_FILES=true mocha --exit --require ts-node/register --reporter spec --colors \"test/**/*.test.ts\"",
"coverage": "nyc npm run test",
Expand Down Expand Up @@ -46,4 +47,4 @@
"webpack": "^5.42.0",
"webpack-cli": "^4.7.2"
}
}
}
5 changes: 5 additions & 0 deletions play/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const { parser } = require('../dist');

const argv = parser().data;

console.log(argv)

0 comments on commit 5cd9d2f

Please sign in to comment.