Skip to content

Commit 7840b39

Browse files
committed
add pack script
1 parent 5a55648 commit 7840b39

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
node_modules/*
1+
node_modules/
2+
pkg/
23
*.js

package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@
33
"version": "1.0.0",
44
"description": "",
55
"main": "src/index.js",
6+
"bin": "src/index.js",
7+
"pkg":{
8+
"assets":[
9+
"src/*.js",
10+
"web/*.html",
11+
"web/*.css",
12+
"web/*.js"
13+
]
14+
},
615
"scripts": {
716
"test": "echo \"Error: no test specified\" && exit 1",
8-
"start": "node src/index.js"
17+
"start": "node src/index.js",
18+
"pack": "pkg . --out-path \"pkg\""
919
},
1020
"keywords": [],
1121
"author": "",

0 commit comments

Comments
 (0)