...
|
...
|
@@ -38,12 +38,12 @@ gulp.task('default', ['compass', 'compass-watch', 'spm-doc']); |
|
|
gulp.task('compass', function() {
|
|
|
gulp.src('sass/**/*.scss')
|
|
|
.pipe(
|
|
|
compass({
|
|
|
config_file: 'config.rb',
|
|
|
css: 'css',
|
|
|
sass: 'sass'
|
|
|
})
|
|
|
).on('error', function(error) {
|
|
|
compass({
|
|
|
config_file: 'config.rb',
|
|
|
css: 'css',
|
|
|
sass: 'sass'
|
|
|
})
|
|
|
).on('error', function(error) {
|
|
|
console.log(error);
|
|
|
this.emit('end');
|
|
|
});
|
...
|
...
|
@@ -95,15 +95,15 @@ gulp.task('assets', function() { |
|
|
gulp.task('compass-production', ['assets'], function() {
|
|
|
gulp.src('sass/index.scss')
|
|
|
.pipe(
|
|
|
compass({
|
|
|
css: distDir.css,
|
|
|
sass: 'sass',
|
|
|
image: distDir.img,
|
|
|
font: distDir.font,
|
|
|
http_path: '/',
|
|
|
style: 'compressed'
|
|
|
})
|
|
|
)
|
|
|
compass({
|
|
|
css: distDir.css,
|
|
|
sass: 'sass',
|
|
|
image: distDir.img,
|
|
|
font: distDir.font,
|
|
|
http_path: '/',
|
|
|
style: 'compressed'
|
|
|
})
|
|
|
)
|
|
|
.on('error', function(error) {
|
|
|
console.log(error);
|
|
|
this.emit('end');
|
...
|
...
|
@@ -166,7 +166,7 @@ gulp.task('concat-min-libs', ['pre-libs'], function() { |
|
|
|
|
|
fs.writeFileSync(path, jsStr.substr(jsStr.indexOf('});') + 4));
|
|
|
|
|
|
return gulp.src(['js/sea.js', distDir.js + '/libs.js'])
|
|
|
return gulp.src(['js/plugin/sea.js', distDir.js + '/libs.js'])
|
|
|
.pipe(concat('lib.js'))
|
|
|
.pipe(uglify())
|
|
|
.pipe(gulp.dest(distDir.js));
|
...
|
...
|
|