Skip to content

Commit 8606bae

Browse files
author
Alexei Zverev
committed
Fix frontend bundler
1 parent c326340 commit 8606bae

69 files changed

Lines changed: 8743 additions & 4131 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

client-src/pathman_sr/gulpfile.js

Lines changed: 28 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ var gulp = require('gulp'),
55
prefixer = require('gulp-autoprefixer'),
66
uglify = require('gulp-uglify'),
77
less = require('gulp-less'),
8-
//sourcemaps = require('gulp-sourcemaps'),
98
rigger = require('gulp-rigger'),
109
cssmin = require('gulp-minify-css'),
1110
rename = require('gulp-rename'),
1211
del = require('del'),
1312
browserSync = require("browser-sync"),
1413
htmlmin = require("gulp-htmlmin"),
14+
runSequence = require("run-sequence"),
1515
reload = browserSync.reload;
1616

1717
var config = {
@@ -57,39 +57,35 @@ var path = {
5757
};
5858

5959
gulp.task('clean', function () {
60-
del([path.clean], {force: true});
60+
return del([path.clean], {force: true});
6161
});
6262

6363
gulp.task('js:build', function () {
64-
gulp.src(path.src.js)
64+
return gulp.src(path.src.js)
6565
.pipe(rigger())
66-
//.pipe(sourcemaps.init())
6766
.pipe(uglify())
68-
//.pipe(sourcemaps.write())
6967
.pipe(rename(path.fileNames.jsMinified))
7068
.pipe(gulp.dest(path.build.js))
7169
.pipe(reload({stream: true}));
7270
});
7371

7472
gulp.task('style:build', function () {
75-
gulp.src(path.src.style)
76-
//.pipe(sourcemaps.init())
73+
return gulp.src(path.src.style)
7774
.pipe(less({
7875
includePaths: ['src/style/'],
7976
outputStyle: 'compressed',
80-
sourceMap: true,
77+
sourceMap: false,
8178
errLogToConsole: true
8279
}))
8380
.pipe(prefixer())
8481
.pipe(cssmin())
85-
//.pipe(sourcemaps.write())
8682
.pipe(rename(path.fileNames.cssMinified))
8783
.pipe(gulp.dest(path.build.css))
8884
.pipe(reload({stream: true}));
8985
});
9086

9187
gulp.task('image:build', function () {
92-
gulp.src(path.src.img)
88+
return gulp.src(path.src.img)
9389
.pipe(gulp.dest(path.build.img))
9490
.pipe(reload({stream: true}));
9591
});
@@ -102,51 +98,49 @@ gulp.task('html:build', function(){
10298
.pipe(gulp.dest(path.build.index));
10399

104100
// build templates
105-
gulp.src(path.src.templates)
101+
return gulp.src(path.src.templates)
106102
.pipe(gulp.dest(path.build.templates))
107103
.pipe(reload({stream: true}));
108104
});
109105

110106
gulp.task('vendor:build', function(){
111-
gulp.src(path.src.vendor)
107+
return gulp.src(path.src.vendor)
112108
.pipe(gulp.dest(path.build.vendor))
113109
});
114110

115-
gulp.task('build-full', [
116-
'html:build', // compile index.html
117-
'js:build', // assemble and minify js
118-
'style:build', // assemble and minify less/css
119-
'image:build', // just copy images
120-
'vendor:build' // copy vendor files
121-
]);
122-
123-
gulp.task('build', [
124-
'html:build', // compile index.html
125-
'js:build', // assemble and minify js
126-
'style:build', // assemble and minify less/css
127-
'image:build' // just copy images
128-
]);
111+
gulp.task('build-full', function(){
112+
return runSequence(
113+
"clean",
114+
["html:build", "js:build", "style:build", "image:build", "vendor:build"]
115+
);
116+
});
117+
118+
gulp.task('build', function(){
119+
return runSequence(
120+
"clean",
121+
["html:build", "js:build", "style:build", "image:build"]
122+
);
123+
});
129124

130125
gulp.task('watch', function(){
131126
watch([path.watch.index, path.watch.templates], function(event, cb) {
132-
gulp.start('html:build');
127+
return runSequence("html:build");
133128
});
134129
watch([path.watch.style], function(event, cb) {
135-
gulp.start('style:build');
130+
return runSequence("style:build");
136131
});
137132
watch([path.watch.js], function(event, cb) {
138-
gulp.start('js:build');
133+
return runSequence("js:build");
139134
});
140135
watch([path.watch.img], function(event, cb) {
141-
gulp.start('image:build');
136+
return runSequence("image:build");
142137
});
143138
watch([path.watch.vendor], function(event, cb) {
144-
gulp.start('vendor:build');
139+
return runSequence("vendor:build");
145140
});
146141
});
147142

148143

149-
gulp.task('default', ['clean'], function(){
150-
gulp.start('build');
151-
gulp.start('watch');
144+
gulp.task('default', function(){
145+
return runSequence("build-full", "watch");
152146
});

client/pathman_sr/vendor/angular-translate-loader-partial/angular-translate-loader-partial.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* angular-translate - v2.12.1 - 2016-09-15
2+
* angular-translate - v2.13.0 - 2016-10-30
33
*
44
* Copyright (c) 2016 The angular-translate team, Pascal Precht; Licensed MIT
55
*/

client/pathman_sr/vendor/angular-translate-loader-partial/angular-translate-loader-partial.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "angular-translate-loader-partial",
33
"description": "A plugin for Angular Translate",
4-
"version": "2.12.1",
4+
"version": "2.13.0",
55
"main": "./angular-translate-loader-partial.js",
66
"ignore": [],
77
"author": "Pascal Precht",
88
"license": "MIT",
99
"dependencies": {
10-
"angular-translate": "~2.12.1"
10+
"angular-translate": "~2.13.0"
1111
}
1212
}

client/pathman_sr/vendor/angular-translate-loader-partial/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-translate-loader-partial",
3-
"version": "2.12.1",
3+
"version": "2.13.0",
44
"description": "angular-translate-loader-partial",
55
"main": "angular-translate-loader-partial.js",
66
"repository": {
@@ -19,6 +19,6 @@
1919
},
2020
"homepage": "https://angular-translate.github.io",
2121
"dependencies": {
22-
"angular-translate": "~2.12.1"
22+
"angular-translate": "~2.13.0"
2323
}
2424
}

0 commit comments

Comments
 (0)