1
0
Fork 0
mirror of https://github.com/zrgn/zrgn.github.io synced 2025-06-11 22:42:32 +00:00

Use better bower/grunt integration plugin.

This commit is contained in:
Alex Wood 2019-05-30 10:11:49 -04:00
parent 23d16dc090
commit 0534a81c9f
65 changed files with 5047 additions and 24145 deletions

View file

@ -1,14 +1,31 @@
module.exports = function (grunt) {
grunt.initConfig({
bower: { install: { options: {
copy: true,
targetDir: 'assets'
} } },
clean: [ 'assets', 'bower_components' ]
bowercopy: {
options: {
clean: true,
runBower: true
},
sass: {
options: { destPrefix: '_sass/vendor' },
files: {
'bulma/sass': 'bulma/sass',
'bulma/bulma.sass': 'bulma/bulma.sass'
}
},
js: {
options: { destPrefix: 'assets/vendor/js' },
files: {
'jquery/jquery.min.js': 'jquery/dist/jquery.min.js',
'jquery/jquery.min.map': 'jquery/dist/jquery.min.map'
}
}
},
clean: [ 'assets/vendor', '_sass/vendor', 'bower_components' ]
});
grunt.loadNpmTasks('grunt-bower-task');
grunt.loadNpmTasks('grunt-bowercopy');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.registerTask('default', [ 'clean', 'bower' ]);
};
grunt.registerTask('default', [ 'clean', 'bowercopy' ]);
};