Skip to content

Commit

Permalink
Create script for generating package
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagorb committed Sep 12, 2017
1 parent fa4e42c commit 7773c1b
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules
dist
dist
package.tar.gz
package/
8 changes: 8 additions & 0 deletions make_package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
rm -rf package
mkdir package
./node_modules/.bin/browserify src/app.ts -p [ tsify ] | node_modules/.bin/uglifyjs > package/app.js
./node_modules/.bin/svgo src/ship.svg package/ship.svg
./node_modules/.bin/node-sass src/app.scss --output package
cp src/index.html package/index.html
tar -czf package.tar.gz package/*
du -sh package.tar.gz
114 changes: 114 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@
"license": "ISC",
"dependencies": {},
"devDependencies": {
"browserify": "^14.4.0",
"node-sass": "^4.5.3",
"svgo": "^0.7.2",
"tsify": "^3.0.3",
"typescript": "^2.5.2",
"uglify-js": "^3.1.0",
"watchify": "^3.9.0"
}
}

0 comments on commit 7773c1b

Please sign in to comment.