autofront 1.5.1 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +1 -0
  2. package/index.js +3 -3
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -20,6 +20,7 @@ Here is the essential basic organization you must to put in your project:
20
20
  ├─ src/
21
21
  │ ├─ fonts/
22
22
  │ ├─ styles/
23
+ │ │ ├─ _variables.scss
23
24
  │ │ ├─ index.less
24
25
  │ │ └─ index.scss
25
26
  │ └─ index.html
package/index.js CHANGED
@@ -53,12 +53,12 @@ gulp.task('index', gulpSync.sync([
53
53
  'index-domain'
54
54
  ]));
55
55
  gulp.task('styles', () => {
56
- return mergeStream(getCssStream('scss', $.sass), getCssStream('less', $.less))
56
+ return mergeStream(getCssStream('scss', $.sass, '@import "variables";'), getCssStream('less', $.less))
57
57
  .pipe($.concat(cssFullFilename))
58
58
  .pipe(gulp.dest(paths.tmp+stylesFolder));
59
59
 
60
- function getCssStream(ext, process) {
61
- return gulp.src(paths.src+stylesFolder+cssFilename+'.'+ext).pipe(injStr.prepend('// bower:'+ext+nl+'// endbower'+nl)).pipe($.wiredep()).pipe(process()).on('error', notifyError);
60
+ function getCssStream(ext, process, extraCode) {
61
+ return gulp.src(paths.src+stylesFolder+cssFilename+'.'+ext).pipe(injStr.prepend((extraCode?extraCode+nl:'')+'// bower:'+ext+nl+'// endbower'+nl)).pipe($.wiredep()).pipe(process()).on('error', notifyError);
62
62
  }
63
63
  });
64
64
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autofront",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "Gulp settings for projects.",
5
5
  "main": "index.js",
6
6
  "scripts": {