Skip to content

Instantly share code, notes, and snippets.

@subhaze
Created April 29, 2016 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save subhaze/83f6dd2cb3661b018a15c82d647a0d0b to your computer and use it in GitHub Desktop.
Save subhaze/83f6dd2cb3661b018a15c82d647a0d0b to your computer and use it in GitHub Desktop.
ES2015 Build with npm/CodeKit
#!/bin/bash
browserify src/main.js -t babelify > dist/main.js
osascript -e 'display notification "npm run build completed" with title "CodeKit Hook"'
{
"name": "ES-Builder",
"version": "1.0.0",
"description": "",
"main": "",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "./codekit-babel.hook.sh"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {},
"devDependencies": {
"babel": "5.8.23",
"babelify": "6.4.0",
"browserify": "13.0.0",
"uglify-js": "2.6.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment