Skip to content
Permalink
Browse files

Updates to latest Capital Framework | Remove bower

  • Loading branch information...
anselmbradford authored and chosak committed Oct 25, 2018
1 parent fcd0a4d commit 9e587eeb056cede16df2affb63b1d69b5805e9d7

This file was deleted.

@@ -48,11 +48,10 @@ coverage.xml
# Front-End #
#############
node_modules/
bower_components/
.grunt/
retirement_api/static/retirement/js/
retirement_api/static/retirement/css/
src/vendor
retirement_api/static/retirement/fonts/
retirement_api/static/retirement/icons/

# NPM Security #
################
@@ -6,8 +6,7 @@ env: DJ_KEY=testkey
install:
- pip install coveralls tox
before_script:
- npm install -g bower gulp-cli
- bower install
- npm install -g gulp-cli
script:
- npm config set package-lock false
- tox

This file was deleted.

@@ -3,5 +3,4 @@
set -ev

npm install
bower install
gulp
@@ -4,14 +4,15 @@ const fs = require( 'fs' );
* Set up file paths
*/
const loc = {
src: './src/',
dist: './retirement_api/static/retirement/',
lib: JSON.parse( fs.readFileSync( './.bowerrc' ) ).directory, // eslint-disable-line no-sync, no-inline-comments, max-len
src: './src',
dist: './retirement_api/static/retirement',
lib: './node_modules',
test: './test'
};

module.exports = {
pkg: JSON.parse( fs.readFileSync( 'bower.json' ) ), // eslint-disable-line no-sync, no-inline-comments, max-len
// eslint-disable-next-line no-sync
pkg: JSON.parse( fs.readFileSync( 'package.json' ) ),
banner:
'/*!\n' +
' * <%= pkg.name %> - v<%= pkg.version %>\n' +
@@ -79,10 +80,14 @@ module.exports = {
],
dest: loc.dist
},
icons: {
fonts: {
src: loc.lib + '/cf-icons/src/fonts/*',
dest: loc.dist + '/fonts/'
},
icons: {
src: loc.lib + '/cf-icons/src/icons/*',
dest: loc.dist + '/icons/'
},
vendorjs: {
src: [
loc.lib + '/html5shiv/dist/html5shiv-printshiv.min.js'
@@ -3,21 +3,28 @@ const gulpChanged = require( 'gulp-changed' );
const configCopy = require( '../config' ).copy;
const handleErrors = require( '../utils/handle-errors' );

gulp.task( 'copy:files', function() {
gulp.task( 'copy:files', () => {
return gulp.src( configCopy.files.src )
.pipe( gulpChanged( configCopy.files.dest ) )
.on( 'error', handleErrors )
.pipe( gulp.dest( configCopy.files.dest ) );
} );

gulp.task( 'copy:icons', function() {
gulp.task( 'copy:fonts', () => {
return gulp.src( configCopy.fonts.src )
.pipe( gulpChanged( configCopy.fonts.dest ) )
.on( 'error', handleErrors )
.pipe( gulp.dest( configCopy.fonts.dest ) );
} );

gulp.task( 'copy:icons', () => {
return gulp.src( configCopy.icons.src )
.pipe( gulpChanged( configCopy.icons.dest ) )
.on( 'error', handleErrors )
.pipe( gulp.dest( configCopy.icons.dest ) );
} );

gulp.task( 'copy:vendorjs', function() {
gulp.task( 'copy:vendorjs', () => {
return gulp.src( configCopy.vendorjs.src )
.pipe( gulpChanged( configCopy.vendorjs.dest ) )
.on( 'error', handleErrors )
@@ -27,6 +34,7 @@ gulp.task( 'copy:vendorjs', function() {
gulp.task( 'copy',
gulp.parallel(
'copy:files',
'copy:fonts',
'copy:icons',
'copy:vendorjs'
)

0 comments on commit 9e587ee

Please sign in to comment.
You can’t perform that action at this time.