Skip to content

Commit

Permalink
Pre-compile babel and browserify bundles for npm publication
Browse files Browse the repository at this point in the history
  • Loading branch information
shesek committed Apr 3, 2018
1 parent 7d180f6 commit 351fdd5
Show file tree
Hide file tree
Showing 8 changed files with 246 additions and 136 deletions.
9 changes: 8 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{
"presets": ["env"]
"presets": [
["env", {
"targets": {
"browsers": ["last 3 versions"]
, "node": "6"
}
}]
]
, "plugins": ["transform-object-rest-spread"]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
items.yaml
.env
dist
8 changes: 8 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
set -xeo pipefail

rm -rf dist/*

babel -d dist src

browserify src/client.js | uglifyjs -cm > dist/client.bundle.min.js
Loading

0 comments on commit 351fdd5

Please sign in to comment.