autofront 1.5.1 → 1.5.4

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 +9 -4
  2. package/index.js +4 -4
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -2,13 +2,17 @@
2
2
 
3
3
  Gulp settings for projects.
4
4
 
5
+ ### Requirements
6
+
7
+ It is compatible with version [8.17.0](https://nodejs.org/dist/v8.17.0/) of [Node.js](https://nodejs.org).
8
+
5
9
  ## Tasks
6
10
 
7
- - `gulp` or `gulp serve` are for running a test (development) server with live reload.
8
- - With `gulp serve:dist`, the server is production, but without the reload.
9
- - `gulp build` builds the distributable version.
11
+ - `gulp` or `gulp serve` are for running a test server and develop with live reload.
12
+ - `gulp build` only builds the distributable version.
13
+ - With `gulp serve:dist`, a combination of the above is achieved: Specifically, the server runs this version but without reload.
10
14
 
11
- Additionally, a parameter can be included (e.g.: `gulp --dev` o `gulp build --pro`) to indicate the connection server. Defaults to local. And these domain URLs must to appear listed in `package.json` with the property `domains` (optionally also `domainsAliases`).
15
+ Additionally, a parameter can be included (e.g.: `gulp --dev` o `gulp build --pro`) to indicate the domain of connection path. Defaults to local. And these domain URLs must to appear listed in `package.json` with the property `domains` (optionally also `domainsAliases`).
12
16
 
13
17
  ## Folder structure
14
18
 
@@ -20,6 +24,7 @@ Here is the essential basic organization you must to put in your project:
20
24
  ├─ src/
21
25
  │ ├─ fonts/
22
26
  │ ├─ styles/
27
+ │ │ ├─ _variables.scss
23
28
  │ │ ├─ index.less
24
29
  │ │ └─ index.scss
25
30
  │ └─ index.html
package/index.js CHANGED
@@ -32,7 +32,7 @@ const nl = '\n',
32
32
  tab = ' ';
33
33
 
34
34
  gulp.task('check', () => {
35
- const pckg = require('./package.json'),
35
+ const pckg = require('../../package.json'),
36
36
  domainAliases = pckg.domainAliases;
37
37
  var domainIndex = args[0]||'local';
38
38
  if (domainAliases) {
@@ -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.4",
4
4
  "description": "Gulp settings for projects.",
5
5
  "main": "index.js",
6
6
  "scripts": {