Skip to content

Instantly share code, notes, and snippets.

View donkeysharp's full-sized avatar
💭
Breaking it... Fixing it... Dreaming it... Coding it...

Sergio Guillen donkeysharp

💭
Breaking it... Fixing it... Dreaming it... Coding it...
View GitHub Profile
@donkeysharp
donkeysharp / package.json
Created January 14, 2016 21:17
package.json to use npm as a build tool for react applications using sass and ES2015
{
"name": "my-npm-boilerplate",
"version": "1.0.0",
"description": "Example structure for using npm as a build tool",
"main": "index.js",
"scripts": {
"clean": "rm -rf dist; mkdir -p dist/css dist/js",
"build": "parallelshell 'npm run clean' 'npm run build:js' 'npm run build:css'",
"build:js": "browserify js/index.js -t [ babelify --presets [es2015 react] ] | uglifyjs -mc -o dist/js/main.min.js",
"build:css": "sass scss/main.scss:dist/css/main.min.css --style compressed --sourcemap=none",