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:
parent
23d16dc090
commit
0534a81c9f
65 changed files with 5047 additions and 24145 deletions
33
Gruntfile.js
33
Gruntfile.js
|
@ -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' ]);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue