Skip to content

Commit 10e8018

Browse files
committed
[pkg] add pkg config.
Signed-off-by: Eric Wang <skygragon@gmail.com>
1 parent 196cf50 commit 10e8018

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

Diff for: .dockerignore

+4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
.git
2+
.github
23
.npm
34
.nyc_output
45
.DS_Store
6+
57
coverage
8+
dist
69
node_modules
710
npm-debug.log*
811
tmp
12+
913
*.log
1014
*.swp

Diff for: package.json

+17-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,23 @@
1111
},
1212
"scripts": {
1313
"lint": "eslint lib/ test/",
14-
"test": "npm run lint && nyc mocha test/** && nyc report --reporter=lcov"
14+
"test": "npm run lint && nyc mocha test/** && nyc report --reporter=lcov",
15+
"pkg": "pkg . --out-path=dist/"
16+
},
17+
"pkg": {
18+
"scripts": [
19+
"lib"
20+
],
21+
"assets": [
22+
"colors",
23+
"icons",
24+
"templates"
25+
],
26+
"targets": [
27+
"node10-linux-x64",
28+
"node10-macos-x64",
29+
"node10-win-x64"
30+
]
1531
},
1632
"repository": {
1733
"type": "git",

0 commit comments

Comments
 (0)