Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Commit

Permalink
fix(build): copy css files over to the dist folder
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect authored and ahmedshuhel committed Sep 10, 2015
1 parent 8f815c6 commit e640fc2
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
1 change: 1 addition & 0 deletions build/paths.js
Expand Up @@ -7,6 +7,7 @@ module.exports = {
root: appRoot,
source: appRoot + '**/*.js',
html: appRoot + '**/*.html',
css: appRoot + '**/*.css',
style: 'styles/**/*.css',
output: outputRoot,
doc:'./doc',
Expand Down
9 changes: 8 additions & 1 deletion build/tasks/build.js
Expand Up @@ -30,14 +30,21 @@ gulp.task('build-html', function () {
.pipe(gulp.dest(paths.output));
});

// copies changed css files to the output directory
gulp.task('build-css', function () {
return gulp.src(paths.css)
.pipe(changed(paths.output, {extension: '.css'}))
.pipe(gulp.dest(paths.output));
});

// this task calls the clean task (located
// in ./clean.js), then runs the build-system
// and build-html tasks in parallel
// https://www.npmjs.com/package/gulp-run-sequence
gulp.task('build', function(callback) {
return runSequence(
'clean',
['build-system', 'build-html'],
['build-system', 'build-html', 'build-css'],
callback
);
});
1 change: 1 addition & 0 deletions build/tasks/watch.js
Expand Up @@ -14,5 +14,6 @@ function reportChange(event){
gulp.task('watch', ['serve'], function() {
gulp.watch(paths.source, ['build-system', browserSync.reload]).on('change', reportChange);
gulp.watch(paths.html, ['build-html', browserSync.reload]).on('change', reportChange);
gulp.watch(paths.css, ['build-css', browserSync.reload]).on('change', reportChange);
gulp.watch(paths.style, browserSync.reload).on('change', reportChange);
});
5 changes: 0 additions & 5 deletions config.js
Expand Up @@ -24,7 +24,6 @@ System.config({
"aurelia-framework": "github:aurelia/framework@0.16.0",
"aurelia-history": "github:aurelia/history@0.7.0",
"aurelia-history-browser": "github:aurelia/history-browser@0.8.0",
"aurelia-html-import-template-loader": "github:aurelia/html-import-template-loader@0.2.0",
"aurelia-loader": "github:aurelia/loader@0.9.0",
"aurelia-loader-default": "github:aurelia/loader-default@0.10.0",
"aurelia-logging": "github:aurelia/logging@0.7.0",
Expand Down Expand Up @@ -98,10 +97,6 @@ System.config({
"aurelia-history": "github:aurelia/history@0.7.0",
"core-js": "npm:core-js@0.9.18"
},
"github:aurelia/html-import-template-loader@0.2.0": {
"aurelia-loader": "github:aurelia/loader@0.9.0",
"webcomponentsjs": "github:webcomponents/webcomponentsjs@0.7.12"
},
"github:aurelia/loader-default@0.10.0": {
"aurelia-loader": "github:aurelia/loader@0.9.0",
"aurelia-metadata": "github:aurelia/metadata@0.8.0"
Expand Down
4 changes: 0 additions & 4 deletions package.json
Expand Up @@ -76,7 +76,6 @@
"aurelia-templating-binding": "github:aurelia/templating-binding@^0.15.0",
"aurelia-templating-resources": "github:aurelia/templating-resources@^0.15.0",
"aurelia-templating-router": "github:aurelia/templating-router@^0.16.0",
"aurelia/html-import-template-loader": "github:aurelia/html-import-template-loader@^0.2.0",
"bootstrap": "github:twbs/bootstrap@^3.3.4",
"core-js": "npm:core-js@^0.9.4",
"fetch": "github:github/fetch@^0.9.0",
Expand All @@ -91,9 +90,6 @@
"overrides": {
"npm:core-js@0.9.18": {
"main": "client/shim.min"
},
"github:aurelia/html-import-template-loader@0.2.0": {
"main": "aurelia-html-import-template-loader"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Expand Up @@ -9,7 +9,7 @@ export function configure(aurelia) {
//aurelia.use.plugin('aurelia-animator-css');

//Anyone wanting to use HTMLImports to load views, will need to install the following plugin.
aurelia.use.plugin('aurelia-html-import-template-loader')
//aurelia.use.plugin('aurelia-html-import-template-loader')

aurelia.start().then(a => a.setRoot());
}

0 comments on commit e640fc2

Please sign in to comment.