Skip to content

Commit

Permalink
gulp build node-sass fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jbutko committed Apr 22, 2017
1 parent 33d492d commit b10c4ff
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 7 deletions.
17 changes: 17 additions & 0 deletions README.md
Expand Up @@ -35,12 +35,21 @@ npm install

## 2. Watch files
```bash
npm start
```
or
```bash
gulp
```

- all SCSS/HTML will be watched for changes and injected into browser thanks to BrowserSync

## 3. Build production version
```bash
npm run build
```
or
```bash
gulp build
```
- this will process following tasks:
Expand All @@ -55,11 +64,19 @@ gulp build

## 4. Start webserver without watch task
```bash
npm run server
```
or
```bash
gulp server
```

## 5. Start webserver from build folder
```bash
npm run serverbuild
```
or
```bash
gulp server-build
```

Expand Down
6 changes: 3 additions & 3 deletions js/scripts.js
Expand Up @@ -3,11 +3,11 @@
/**
* In genereal you should avoid to use jQuery code in AngularJS
* apps, if you need any jQuery functionality create a directive
*
*
*/
$(document).ready(function() {

});


})( jQuery );
})( jQuery );
14 changes: 10 additions & 4 deletions package.json
Expand Up @@ -16,14 +16,12 @@
"gulp-concat": "^2.4.3",
"gulp-filter": "^2.0.0",
"gulp-html-replace": "^1.4.4",
"gulp-imagemin": "^2.2.1",
"gulp-load-plugins": "^0.10.0",
"gulp-minify-css": "^1.2.4",
"gulp-minify-html": "^0.1.8",
"gulp-notify": "^2.1.0",
"gulp-rename": "^1.2.0",
"gulp-rev": "^3.0.1",
"gulp-sass": "^2.1.0",
"gulp-size": "^1.2.0",
"gulp-sourcemaps": "^1.3.0",
"gulp-uglify": "^1.1.0",
Expand All @@ -37,7 +35,11 @@
"watch": "^0.13.0"
},
"scripts": {
"postinstall": "bower install --no-interactive --allow-root"
"start": "gulp",
"build": "gulp build",
"server": "gulp server",
"serverbuild": "gulp server-build",
"postinstall": "npm install gulp-sass gulp-imagemin --save&&bower install --no-interactive"
},
"repository": {
"type": "git",
Expand All @@ -57,5 +59,9 @@
"bugs": {
"url": "https://github.com/jbutko/AngularJS-Boilerplate/issues"
},
"homepage": "https://github.com/jbutko/AngularJS-Boilerplate"
"homepage": "https://github.com/jbutko/AngularJS-Boilerplate",
"dependencies": {
"gulp-imagemin": "^3.2.0",
"gulp-sass": "^3.1.0"
}
}

0 comments on commit b10c4ff

Please sign in to comment.