Skip to content

Commit ce42e59

Browse files
committed
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.
1 parent 237dcf4 commit ce42e59

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
2+
package/
23
.DS_Store
34
*.tgz

.npmignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
.github
22
docs/
33
examples/
4+
package/
45
test/
6+
*.tgz
57
.gitattributes
68
.htmlhint
79
.travis.yml
810
CONTRIBUTING.md
9-
*.tgz

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"lint:htmlhint": "npx htmlhint --config .htmlhint examples/**/*.html",
2626
"lint:semistandard": "npx semistandard",
2727
"minify": "npx uglify-js src/jquery.csv.js -o src/jquery.csv.min.js --compress --mangle",
28+
"package": "npx rimraf package && npm pack | tail -n 1 | xargs tar -xf",
2829
"preversion": "npm run lint && npm run test",
2930
"postversion": "git push --follow-tags",
3031
"prepublish": "npm run lint && npm run test"

0 commit comments

Comments
 (0)