Skip to content

Instantly share code, notes, and snippets.

@juanpablocs
Last active September 16, 2016 14:19
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 juanpablocs/29a308a4554dd3ad14744c1bc8c17e4c to your computer and use it in GitHub Desktop.
Save juanpablocs/29a308a4554dd3ad14744c1bc8c17e4c to your computer and use it in GitHub Desktop.
Npm run script only browserify + es6 + sass

#Es6 + sass

package.json work babelify and browserify

{
  "name": "es6_sass",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "css": "node-sass --output-style compressed ./scss/main.scss -o ./../web/css/",
    "js": "browserify ./es6/main.js -o ./../web/js/bundle.js -t [ babelify --presets [ es2015 ] ]",
    "build:css": "npm run css",
    "build:js": "npm run js",
    "watch:css": "nodemon -e css -x \"npm run build:css\"",
    "watch:js": "nodemon -e js -x \"npm run build:js\"",
    "watch:all": "npm-run-all --parallel watch:css watch:js"
  },
  "author": "juanpablocs21@gmail.com",
  "license": "ISC",
  "devDependencies": {
    "babel-preset-es2015": "^6.14.0",
    "babelify": "^7.3.0",
    "browserify": "^13.1.0",
    "node-sass": "^3.8.0",
    "nodemon": "^1.10.0",
    "npm-run-all": "^2.3.0"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment