Bladeren bron

update dev dependencies

Evan You 12 jaren geleden
bovenliggende
commit
03fd9293a9
2 gewijzigde bestanden met toevoegingen van 22 en 23 verwijderingen
  1. 19 20
      Gruntfile.js
  2. 3 3
      package.json

+ 19 - 20
Gruntfile.js

@@ -6,35 +6,34 @@ module.exports = function( grunt ) {
 
     grunt.initConfig({
 
-        component_build: {
+        componentbuild: {
             build: {
-                output: './dist/',
-                name: 'seed',
-                styles: false,
-                standalone: 'Seed'
+                options: {
+                    name: 'seed',
+                    standalone: 'Seed'
+                },
+                src: '.',
+                dest: 'dist'
             },
             test: {
-                output: './test/',
-                name: 'seed.test',
-                styles: false
+                options: {
+                    name: 'seed.test'
+                },
+                src: '.',
+                dest: 'test'
             }
         },
 
         jshint: {
             options: {
-                reporter: require('jshint-stylish')
+                reporter: require('jshint-stylish'),
+                jshintrc: true
             },
             dev: {
-                src: ['src/**/*.js'],
-                options: {
-                    jshintrc: './.jshintrc'
-                }
+                src: ['src/**/*.js']
             },
             test: {
-                src: ['test/unit/specs/*.js', 'test/functional/specs/*.js'],
-                options: {
-                    jshintrc: 'test/.jshintrc'
-                }
+                src: ['test/unit/specs/*.js', 'test/functional/specs/*.js']
             }
         },
 
@@ -54,7 +53,7 @@ module.exports = function( grunt ) {
                     compress: true,
                     mangle: true,
                     banner:
-                        '// Seed.js ' + require('./package.json').version + '\n' +
+                        '// Seed.js - v' + require('./package.json').version + '\n' +
                         '// (c) 2013 Evan You\n' +
                         '// https://github.com/yyx990803/seed\n'
                 },
@@ -67,7 +66,7 @@ module.exports = function( grunt ) {
         watch: {
             dev: {
                 files: ['src/**/*.js', 'component.json'],
-                tasks: ['component_build', 'jsc']
+                tasks: ['componentbuild', 'jsc']
             }
         }
 
@@ -144,7 +143,7 @@ module.exports = function( grunt ) {
     })
 
     grunt.registerTask( 'test', [
-        'component_build',
+        'componentbuild',
         'jsc',
         'mocha',
         'casper'

+ 3 - 3
package.json

@@ -24,9 +24,9 @@
   "devDependencies": {
     "grunt": "~0.4.1",
     "grunt-contrib-watch": "~0.5.3",
-    "grunt-component-build": "~0.3.2",
-    "grunt-contrib-jshint": "~0.6.4",
-    "grunt-contrib-uglify": "~0.2.4",
+    "grunt-component-build": "~0.4.1",
+    "grunt-contrib-jshint": "~0.7.1",
+    "grunt-contrib-uglify": "~0.2.7",
     "grunt-mocha": "~0.4.1",
     "jscoverage": "~0.3.8",
     "jshint-stylish": "0.1.3"