Skip to content

Commit

Permalink
Resolved some problems in the gulpfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
vferries committed Apr 19, 2015
1 parent 9e4c131 commit 1699712
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
18 changes: 12 additions & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var gulp = require('gulp');
var runSequence = require('run-sequence');
var del = require('del');
var vinylPaths = require('vinyl-paths');
//var to5 = require('gulp-6to5');
//var babel = require('gulp-babel');
var jshint = require('gulp-jshint');
var stylish = require('jshint-stylish');
var yuidoc = require("gulp-yuidoc");
Expand Down Expand Up @@ -60,11 +60,17 @@ gulp.task('clean', function() {
.pipe(vinylPaths(del));
});

gulp.task('build-css', function () {
return gulp.src(path.style)
.pipe(changed(path.output, {extension: '.css'}))
.pipe(gulp.dest(path.output));
});

gulp.task('build-system', function () {
return gulp.src(path.source)
.pipe(plumber())
.pipe(changed(path.output, {extension: '.js'}))
//.pipe(to5(assign({}, compilerOptions, {modules:'system'})))
// .pipe(babel(assign({}, compilerOptions, {modules:'amd'})))
.pipe(gulp.dest(path.output));
});

Expand Down Expand Up @@ -111,7 +117,7 @@ gulp.task('changelog', function(callback) {
gulp.task('build', function(callback) {
return runSequence(
'clean',
['build-system', 'build-html'],
['build-css', 'build-system', 'build-html'],
callback
);
});
Expand All @@ -121,7 +127,7 @@ gulp.task('webdriver_update', webdriver_update);
gulp.task('build-e2e', function () {
return gulp.src(path.e2eSpecsSrc)
.pipe(plumber())
//.pipe(to5())
// .pipe(babel())
.pipe(gulp.dest(path.e2eSpecsDist));
});

Expand All @@ -147,7 +153,7 @@ gulp.task('serve', ['build'], function(done) {
open: false,
port: 9000,
server: {
baseDir: ['src'],
baseDir: ['www/'],
middleware: function (req, res, next) {
res.setHeader('Access-Control-Allow-Origin', '*');
next();
Expand All @@ -163,7 +169,7 @@ function reportChange(event){
gulp.task('watch', ['serve'], function() {
gulp.watch(path.source, ['build-system', browserSync.reload]).on('change', reportChange);
gulp.watch(path.html, ['build-html', browserSync.reload]).on('change', reportChange);
gulp.watch(path.style, browserSync.reload).on('change', reportChange);
gulp.watch(path.style, ['build-css', browserSync.reload]).on('change', reportChange);
});

gulp.task('prepare-release', function(callback){
Expand Down
22 changes: 9 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,36 @@
{
"name": "aurelia-skeleton-app",
"name": "gallery-aurelia-cordova",
"version": "0.0.2",
"description": "A starter kit for building a standard app with Aurelia.",
"description": "First complete working version.",
"keywords": [
"aurelia",
"navigation",
"skeleton"
"cordova",
"gulp"
],
"bugs": {
"url": "http://github.com/bombadillo/aurelia-skeleton-appissues"
},
"license": "MIT",
"author": "Vincent Ferries",
"main": "dist/commonjs/index.js",
"devDependencies": {
"aurelia-tools": "git://github.com/aurelia/tools.git",
"browser-sync": "^1.8.1",
"conventional-changelog": "0.0.11",
"del": "^1.1.0",
"gulp": "^3.8.10",
"gulp-6to5": "^2.0.0",
"gulp-babel": "^5.1.0",
"gulp-bump": "^0.1.11",
"gulp-changed": "^1.1.0",
"gulp-jshint": "^1.9.0",
"gulp-plumber": "^0.6.6",
"gulp-protractor": "^0.0.12",
"gulp-yuidoc": "^0.1.2",
"jasmine-core": "^2.1.3",
"jshint-stylish": "^1.0.0",
"karma": "^0.12.28",
"karma-6to5-preprocessor": "^1.0.0",
"karma-babel-preprocessor": "^5.1.0",
"karma-chrome-launcher": "^0.1.7",
"karma-jasmine": "^0.3.2",
"karma-jspm": "^1.0.1",
"object.assign": "^1.0.3",
"run-sequence": "^1.0.2",
"vinyl-paths": "^1.0.0",
"gulp-protractor": "^0.0.12"
"vinyl-paths": "^1.0.0"
}
}
}

0 comments on commit 1699712

Please sign in to comment.