autofront 2.0.1 → 2.0.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.
- package/README.md +1 -1
- package/index.js +4 -4
- package/package.json +2 -2
package/README.md
CHANGED
package/index.js
CHANGED
|
@@ -57,7 +57,7 @@ gulp.task('styles', () => {
|
|
|
57
57
|
.pipe(gulp.dest(paths.tmp+stylesFolder));
|
|
58
58
|
|
|
59
59
|
function getCssStream(ext, process, extraCode) {
|
|
60
|
-
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);
|
|
60
|
+
return gulp.src(paths.src+stylesFolder+cssFilename+'.'+ext, {allowEmpty: true}).pipe(injStr.prepend((extraCode?extraCode+nl:'')+'// bower:'+ext+nl+'// endbower'+nl)).pipe($.wiredep()).pipe(process()).on('error', notifyError);
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
gulp.task('fonts', () => gulp.src(mainBowerFiles()).pipe(filter(['eot','otf','svg','ttf','woff','woff2'], true)).pipe(gulp.dest(paths.tmp+'fonts/')));
|
|
@@ -84,7 +84,7 @@ gulp.task('serve', gulp.series('browser', () => {
|
|
|
84
84
|
|
|
85
85
|
gulp.task('del:dist', () => delFolder(paths.dist));
|
|
86
86
|
gulp.task('copy', gulp.series('del:dist', () => gulp.src(paths.tmp+allFiles).pipe(gulp.dest(paths.dist))));
|
|
87
|
-
gulp.task('templates-build', () => gulp.src([paths.dist+getFiles('html'), '!'+paths.dist+indexHtmlFile]).pipe($.cleanDest(paths.dist)).pipe(minifyHtml()).pipe($.angularTemplatecache(jsTemplatesFile, {module: 'app'})).pipe(gulp.dest(paths.dist)));
|
|
87
|
+
gulp.task('templates-build', () => gulp.src([paths.dist+getFiles('html'), '!'+paths.dist+indexHtmlFile]).pipe($.cleanDest(paths.dist)).pipe(minifyHtml()).pipe($.angularTemplatecache(jsTemplatesFile, {module: 'app', transformUrl: function(url) {return url.slice(1);}})).pipe(gulp.dest(paths.dist)));
|
|
88
88
|
gulp.task('templates-clean', () => require('delete-empty')(paths.dist));
|
|
89
89
|
gulp.task('templates', gulp.series('templates-build', 'templates-clean'));
|
|
90
90
|
gulp.task('build', gulp.series('build:tmp', 'copy', 'templates', () => {
|
|
@@ -122,7 +122,7 @@ function getFiles(ext) {
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
function delFolder(path) {
|
|
125
|
-
return gulp.src(path, {read: false})
|
|
125
|
+
return gulp.src(path, {allowEmpty: true, read: false})
|
|
126
126
|
.pipe($.clean());
|
|
127
127
|
}
|
|
128
128
|
|
|
@@ -131,7 +131,7 @@ function filter(ext, isUnrestored) {
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
function browserSyncInit(path) {
|
|
134
|
-
|
|
134
|
+
browserSync.init({
|
|
135
135
|
server: {
|
|
136
136
|
baseDir: path
|
|
137
137
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autofront",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "Gulp settings for front-end projects.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"browser-sync": "^2.26.3",
|
|
29
29
|
"delete-empty": "^2.0.0",
|
|
30
|
-
"get-gulp-args": "0.0.1",
|
|
30
|
+
"get-gulp-args": "^0.0.1",
|
|
31
31
|
"gulp": "^4.0.2",
|
|
32
32
|
"gulp-about": "^1.1.0",
|
|
33
33
|
"gulp-angular-filesort": "^1.2.1",
|