Skip to navigation
Gruntfile.js what takes bowers jquery with bootstrap and own js and scss files
16.03.16
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), sass: { options: { includePaths: ['bower_components/bootstrap-sass/assets', ] }, dist: { options: { outputStyle: 'compressed' }, files: { 'dev_css/apps.css': 'scss/apps.scss', } } }, concat: { options: { separator: ';' }, script: { src: [ 'bower_components/jquery/dist/jquery.js', 'bower_components/bootstrap-sass/assets/javascripts/bootstrap/bootstrap.min.js', ], dest: 'js/libs.js', }, apps: { src: [ 'dev/*.js', ], dest: 'js/apps.js', }, css: { src: [ 'dev_css/*.css', ], dest: 'css/app.css', } }, uglify: { dist: { files: { 'js/libs.min.js': ['js/libs.js'], 'js/apps.min.js': ['js/apps.js'] } } }, watch: { grunt: { files: ['Gruntfile.js'] }, sass: { files: 'scss/*.scss', tasks: ['sass','concat','uglify'] }, script: { files: 'dev/*.js', tasks: ['buildJs'] } } }); grunt.loadNpmTasks('grunt-sass'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-copy'); grunt.registerTask('build', ['sass']); grunt.registerTask('buildJs', ['concat', 'uglify']); grunt.registerTask('default', ['build','buildJs','watch']); }
http://gruntjs.com/
Reply
Anonymous
Information Epoch 1732600540
Silence is golden.
Home
Notebook
Contact us