Skip to content

Commit

Permalink
chore: Create npm scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
pjjonesnz committed Jan 17, 2020
1 parent 340dcab commit 54c00b2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
dev/
dev/
node_modules/
package-lock.json
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
"description": "Save form state in the browser's localStorage",
"main": "src/saveMyForm.jquery.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"minify": "node-minify --compressor babel-minify --input src/saveMyForm.jquery.js --output src/saveMyForm.jquery.min.js",
"replace_version_in_js": "rexreplace \"\\* version: .*\" \"* version: %npm_package_version%\" src/saveMyForm.jquery.js -G",
"version": "npm run replace_version_in_js && npm run minify && git add .",
"update_git_tags": "git push --follow-tags"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -32,5 +36,9 @@
"bugs": {
"url": "https://github.com/pjjonesnz/saveMyForm.jquery/issues"
},
"homepage": "https://github.com/pjjonesnz/saveMyForm.jquery#readme"
"homepage": "https://github.com/pjjonesnz/saveMyForm.jquery#readme",
"devDependencies": {
"node-minify": "^3.6.0",
"rexreplace": "^5.1.5"
}
}

0 comments on commit 54c00b2

Please sign in to comment.