Skip to content

Commit

Permalink
📦 Add pkg to package into an executable
Browse files Browse the repository at this point in the history
  • Loading branch information
gluons committed May 18, 2017
1 parent 4a5ca2f commit e0af2e1
Show file tree
Hide file tree
Showing 3 changed files with 635 additions and 19 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,5 @@ $RECYCLE.BIN/

# End of https://www.gitignore.io/api/node,linux,windows

# Compiled binary files
binary/
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
"npm": ">=3"
},
"scripts": {
"precompile": "del-cli ./binary/",
"compile": "pkg -t node6-win-x86,node6-win-x64,node6-linux-x86,node6-linux-x64 --out-dir ./binary/ .",
"pretest": "node ./script/prepare-test.js",
"test": "mocha",
"posttest": "node ./script/clean-test.js"
Expand All @@ -34,9 +36,11 @@
"homepage": "https://github.com/gluons/npm-reinstall",
"devDependencies": {
"chai": "*",
"del-cli": "^1.0.0",
"eslint": "^3.19.0",
"eslint-config-gluons": "^2.0.1",
"mocha": "*"
"mocha": "*",
"pkg": "^3.0.4"
},
"dependencies": {
"@danielbayerlein/caniuse-yarn": "^1.1.0",
Expand Down
Loading

0 comments on commit e0af2e1

Please sign in to comment.