RIP Bower

This commit is contained in:
Alicia Sykes
2018-10-17 12:53:36 +01:00
parent bdd5eef180
commit eb003e38b6
3 changed files with 16 additions and 27 deletions

View File

@@ -1,24 +0,0 @@
{
"name": "CV",
"description": "Alicia Sykes - Curriculum Vitae",
"main": "server.js",
"authors": [
"Alicia Sykes"
],
"license": "MIT",
"moduleType": [],
"homepage": "http://aliciasykes.com",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"production/bower_components",
"test",
"tests"
],
"dependencies": {
"Materialize": "materialize#~0.97.6",
"jquery": "~3.1.0"
}
}

View File

@@ -7,8 +7,9 @@ var coffee = require('gulp-coffee');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var sass = require('gulp-sass');
var copy = require('gulp-copy');
var cleanCSS= require('gulp-clean-css');
var bower = require('gulp-bower');
// Compile Jade views into HTML
gulp.task('views', function() {
@@ -64,6 +65,15 @@ gulp.task('test', function(){
});
// Copy lib files
gulp.task('lib', function(){
listOfLibraries = ['node_modules/materialize-css/dist/css/materialize.min.css']
return gulp
.src(listOfLibraries)
.pipe(copy('production/lib'))
});
// Delete production files
gulp.task('clean', function () {
return del([ 'production' ]);
@@ -71,8 +81,8 @@ gulp.task('clean', function () {
// Build complete project
gulp.task('build', ['clean'], function(){
bower('./production/bower_components');
gulp.task('build', ['clean', 'lib'], function(){
// bower({ directory: './production/bower_components'});
gulp.start('views', 'coffee', 'sass', 'assets');
gutil.beep(); // Delete this line if you don't like the sound effects!
});

View File

@@ -8,6 +8,7 @@
"test": "gulp test",
"build": "gulp build",
"watch": "gulp watch",
"serve": "node server",
"postinstall": "bower install"
},
"author": "Alicia Sykes",
@@ -20,6 +21,7 @@
"gulp-clean-css": "^2.0.7",
"gulp-coffee": "^2.3.2",
"gulp-concat": "^2.6.0",
"gulp-copy": "^4.0.1",
"gulp-jade": "^1.1.0",
"gulp-sass": "^2.3.1",
"gulp-uglify": "^1.5.3",
@@ -28,6 +30,7 @@
"dependencies": {
"bower": "^1.7.9",
"connect": "^3.4.1",
"materialize-css": "^1.0.0",
"serve-static": "^1.10.2"
}
}