12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- module.exports = function(grunt) {
-
- grunt.initConfig({
- pkg: grunt.file.readJSON('package.json'),
-
- cssmin: {
- css: {
- src: 'css/grid.css',
- dest: 'css/grid.min.css'
- }
- },
-
- cssmin: {
- combine: {
- files: {
- 'style.min.css': ['style.css', 'css/bootstrap.css', 'css/font-awesome.css', 'css/fullcalendar.css', 'css/animate.css'],
- 'css/style-o.min.css': ['css/style-o.css', 'css/bootstrap.css'],
- 'css/front.min.css': ['css/front-page.css']
- }
- }
- },
-
- concat: {
- options: {
- separator: ';',
- },
- dist: {
- src: ['js/jquery-2.1.1.min.js', 'js/modernizr.js', 'js/bootstrap.min.js', 'js/jasny-bootstrap.js', 'js/moment.min.js', 'js/fullcalendar.min.js', 'js/validate.min.js', 'js/scripts.js'],
- dest: 'js/script.js',
- },
- disto: {
- src: ['js/jquery-2.1.1.min.js', 'js/modernizr.js', 'js/bootstrap.min.js', 'js/jasny-bootstrap.js', 'js/validate.min.js'],
- dest: 'js/scripts-o.js',
- },
- disto: {
- src: ['js/jquery-2.1.1.min.js', 'js/svg-morpheus.js', 'js/front-page.js'],
- dest: 'js/front-page.min.js',
- },
- },
-
- jshint: {
- options: {
- jshintrc: 'js/.jshintrc'
- },
- all: ['js/init.js']
- },
-
- uglify: {
- my_target: {
- files: {
- 'js/script.min.js': ['js/script.js'],
- 'js/script-o.min.js': ['js/script-o.js'],
- 'js/init-o.min.js': ['js/init-o.js'],
- 'js/init.min.js': ['js/init.js'],
- 'js/front.min.js' : ['js/front-page.min.js'],
- }
- }
- }
-
- });
-
- grunt.loadNpmTasks('grunt-contrib-cssmin');
- grunt.loadNpmTasks('grunt-contrib-concat');
- grunt.loadNpmTasks('grunt-contrib-jshint');
- grunt.loadNpmTasks('grunt-contrib-uglify');
-
- grunt.registerTask('js', [ 'jshint' ]);
- grunt.registerTask('default', [ 'cssmin', 'concat', 'uglify' ]);
- };
|