Skip to content

Commit

Permalink
build prod only once stable
Browse files Browse the repository at this point in the history
  • Loading branch information
bredele committed Sep 22, 2016
1 parent 5c04481 commit 40111b3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
7 changes: 6 additions & 1 deletion dist/vomit.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions doc/installation.md
Expand Up @@ -24,10 +24,12 @@ $ vomit --help
If you don't use modules bundler, you can include vomit as a global variable by downloading the standalone version and include it with a script tag:



<a style="color:#EE6650;border:1px solid #EE6650;padding: 1em 1.5em;display:block;" href="https://github.com/bredele/vomit/blob/master/dist/vomit.js" target="_blank">Development version</a>
<a style="color:#EE6650;border:1px solid #EE6650;padding: 1em 1.5em;display:block;" href="https://github.com/bredele/vomit/blob/master/dist/vomit.js" target="_blank">Development version</a><br>
<a style="color:#EE6650;border:1px solid #EE6650;padding: 1em 1.5em;display:block;" href="https://github.com/bredele/vomit/blob/master/dist/vomit.min.js" target="_blank">Production version</a>


Important: because Vomit relies on ES6 syntax, you can only use standalone versions with the latest browsers or compile your code for next generation JavaScript.

## Bower

Vomit is also available on Bower registry.
Expand All @@ -45,5 +47,3 @@ cd vomit
npm install
npm run build
```

Important: the command `npm run build` can be used with your continuous integration tools in order to build your own version of Vomit.
8 changes: 5 additions & 3 deletions package.json
Expand Up @@ -7,11 +7,14 @@
"test": "browserify test/*.js | tape-run",
"test:headless": "zuul -- test/*.js",
"test:lint": "standard index.js | snazzy",
"build:standalone" : "browserify vomit.js --standalone vomit > dist/vomit.js"
"build": "npm run build:dev && npm run build:prod",
"build:standalone": "browserify vomit.js --debug --standalone vomit",
"build:dev": "npm run build:standalone > dist/vomit.js",
"build:prod": ""
},
"files": [
"dist/vomit.js",
"dist/vomit.min.js",
"dist/vomit.min.js"
],
"bin": {
"vomit": "bin/vomit",
Expand All @@ -35,7 +38,6 @@
},
"homepage": "https://github.com/bredele/vomit#readme",
"devDependencies": {
"babelify": "^7.3.0",
"browserify": "^13.0.0",
"chalk": "^1.1.3",
"inquirer": "^1.1.3",
Expand Down

0 comments on commit 40111b3

Please sign in to comment.