Skip to content

Commit d1e8455

Browse files
committed
Add gating and publish scripts
1 parent 31e86b3 commit d1e8455

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
bower_components
3+
.sass-cache
4+
5+
# Generated by Browserify
6+
app/bundle.js
7+
app/bundle.js.map

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
"type": "git",
77
"url": "git+https://github.com/troolee/gridstack.js.git"
88
},
9+
"scripts": {
10+
"uglify": "uglifyjs src/gridstack.js -o dist/gridstack.min.js --source-map dist/gridstack.min.map -p 5 -c -m",
11+
"scss" : "scss -t compressed --sourcemap=none src/gridstack.scss dist/gridstack.min.css; scss -t expanded --sourcemap=none src/gridstack.scss src/gridstack.css; scss -t expanded --sourcemap=none src/gridstack.scss dist/gridstack.css",
12+
"prepublish": "npm run uglify; npm run scss"
13+
},
914
"keywords": [
1015
"gridstack",
1116
"grid",

0 commit comments

Comments
 (0)