Last active
October 14, 2018 16:07
-
-
Save torounit/e6e4dd0cf39cda5187b4b7d7a78e3865 to your computer and use it in GitHub Desktop.
npm scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var browserSync = require("browser-sync"); | |
browserSync({ | |
proxy: 'localhost:9292', | |
files: [ | |
"./css/**/*", | |
"./js/**/*", | |
"./images/**/*", | |
"./fonts/**/*", | |
"./**/*.php", | |
] | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"private": true, | |
"scripts": { | |
"build": "npm run scss && npm run postcss", | |
"scss": "node-sass ./scss/style.scss -o ./css/", | |
"postcss": "postcss ./css/style.css --use autoprefixer -o ./css/style.css", | |
"watch": "nodemon -e scss -x \"npm run build\"", | |
"bs": "node ./browserSync.js", | |
"start": "npm run watch & npm run bs" | |
}, | |
"devDependencies": { | |
"autoprefixer": "^8.6.4", | |
"browser-sync": "^2.24.5", | |
"node-sass": "^4.9.0", | |
"nodemon": "^1.17.5", | |
"postcss-cli": "^5.0.1" | |
}, | |
"browserslist": [ | |
"last 2 versions", | |
"ie 11" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment