Skip to content
Permalink
Browse files

Add the 'package' command

Automates the process of generating a 'dry-run' version of the package. Used to optimize the package contents that get published to NPM.
  • Loading branch information...
evanplaice committed Apr 30, 2019
1 parent 237dcf4 commit ce42e590cf12b96f8084bcdc9c95c7c596c0df12
Showing with 4 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +2 −1 .npmignore
  3. +1 −0 package.json
@@ -1,3 +1,4 @@
node_modules
package/
.DS_Store
*.tgz
@@ -1,9 +1,10 @@
.github
docs/
examples/
package/
test/
*.tgz
.gitattributes
.htmlhint
.travis.yml
CONTRIBUTING.md
*.tgz
@@ -25,6 +25,7 @@
"lint:htmlhint": "npx htmlhint --config .htmlhint examples/**/*.html",
"lint:semistandard": "npx semistandard",
"minify": "npx uglify-js src/jquery.csv.js -o src/jquery.csv.min.js --compress --mangle",
"package": "npx rimraf package && npm pack | tail -n 1 | xargs tar -xf",
"preversion": "npm run lint && npm run test",
"postversion": "git push --follow-tags",
"prepublish": "npm run lint && npm run test"

0 comments on commit ce42e59

Please sign in to comment.
You can’t perform that action at this time.