Skip to content

Commit 3bc907f

Browse files
committed
npm run pack
Running this npm script will dedupe the module tree, then pack everything into a tarball. This can then be installed using: npm install ./workshop.tar.gz Can additionally be served over the local network at NodeConf to avoid requiring the local npm clone, which may be unreliable. /cc @mikolalysenko
1 parent 2f69f80 commit 3bc907f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
answers
33
npm-debug.log
4+
workshop.tar.gz

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"main": "index.js",
66
"bin": "index.js",
77
"scripts": {
8+
"pack": "npm dedupe && find . -type file | grep -v workshop.tar.gz | grep -v .git | tar -cvzf ./workshop.tar.gz -T -",
89
"test": "echo \"Error: no test specified\" && exit 1",
910
"start": "mkdir answers; cd answers && NODE_ENV=development node .."
1011
},

0 commit comments

Comments
 (0)