Prechádzať zdrojové kódy

build/grunt script fixes

Torkel Ödegaard 12 rokov pred
rodič
commit
1fada5dd0b
3 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 1 1
      tasks/build_task.js
  2. 1 1
      tasks/options/copy.js
  3. 1 1
      tasks/options/uglify.js

+ 1 - 1
tasks/build_task.js

@@ -4,7 +4,7 @@ module.exports = function(grunt) {
   grunt.registerTask('build', [
     'jshint:source',
     'clean:on_start',
-    'less:dist',
+    'less:src',
     'copy:everything_but_less_to_temp',
     'htmlmin:build',
     'cssmin:build',

+ 1 - 1
tasks/options/copy.js

@@ -4,7 +4,7 @@ module.exports = function(config) {
     everything_but_less_to_temp: {
       cwd: '<%= srcDir %>',
       expand: true,
-      src: ['**/*', '!**/*.less'],
+      src: ['**/*', '!**/*.less', '!config.js'],
       dest: '<%= tempDir %>'
     }
   };

+ 1 - 1
tasks/options/uglify.js

@@ -2,7 +2,7 @@ module.exports = function(config) {
   return {
     dest: {
       expand: true,
-      src: ['**/*.js', '!config.js', '!app/dashboards/*.js', '!app/dashboards/**/*.js',],
+      src: ['**/*.js', '!config.sample.js', '!app/dashboards/*.js', '!app/dashboards/**/*.js',],
       dest: '<%= destDir %>',
       cwd: '<%= destDir %>',
       options: {