Bläddra i källkod

update dev dependencies

Evan You 10 år sedan
förälder
incheckning
3c20278a0e
3 ändrade filer med 17 tillägg och 20 borttagningar
  1. 1 1
      build/grunt-tasks/casper.js
  2. 14 13
      package.json
  3. 2 6
      test/unit/specs/api/global_spec.js

+ 1 - 1
build/grunt-tasks/casper.js

@@ -9,7 +9,7 @@ module.exports = function (grunt) {
     var file = id ? id + '.js' : ''
     // let casperjs use local phantomjs
     process.env.PHANTOMJS_EXECUTABLE =
-      '../../node_modules/karma-phantomjs-launcher/node_modules/.bin/phantomjs'
+      '../../node_modules/.bin/phantomjs'
     grunt.util.spawn({
       cmd: '../../node_modules/.bin/casperjs',
       args: ['test', '--concise', './' + file],

+ 14 - 13
package.json

@@ -32,21 +32,22 @@
     "casperjs": "^1.1.0-beta3",
     "codecov.io": "^0.1.2",
     "grunt": "^0.4.5",
-    "grunt-eslint": "^17.0.0",
-    "grunt-karma": "^0.8.3",
+    "grunt-eslint": "^17.1.0",
+    "grunt-karma": "^0.12.0",
     "jasmine-core": "^2.3.4",
-    "karma": "^0.12.31",
-    "karma-chrome-launcher": "^0.1.7",
-    "karma-commonjs": "^0.0.10",
-    "karma-coverage": "^0.2.7",
-    "karma-firefox-launcher": "^0.1.4",
-    "karma-jasmine": "^0.3.5",
-    "karma-phantomjs-launcher": "^0.1.4",
+    "karma": "^0.13.8",
+    "karma-chrome-launcher": "^0.2.0",
+    "karma-commonjs": "^0.0.13",
+    "karma-coverage": "^0.5.0",
+    "karma-firefox-launcher": "^0.1.6",
+    "karma-jasmine": "^0.3.6",
+    "karma-phantomjs-launcher": "^0.2.1",
     "karma-safari-launcher": "^0.1.1",
-    "karma-sauce-launcher": "^0.2.10",
-    "semver": "^4.2.0",
+    "karma-sauce-launcher": "^0.2.14",
+    "phantomjs": "^1.9.17",
+    "semver": "^5.0.1",
     "shell-task": "^1.0.0",
-    "uglify-js": "^2.4.20",
-    "webpack": "^1.9.10"
+    "uglify-js": "^2.4.24",
+    "webpack": "^1.11.0"
   }
 }

+ 2 - 6
test/unit/specs/api/global_spec.js

@@ -62,12 +62,8 @@ describe('Global API', function () {
     var Test = Vue.extend()
 
     it('directive / elementDirective / filter / transition', function () {
-      [
-        'directive',
-        'elementDirective',
-        'filter',
-        'transition'
-      ].forEach(function (type) {
+      var assets = ['directive', 'elementDirective', 'filter', 'transition']
+      assets.forEach(function (type) {
         var def = {}
         Test[type]('test', def)
         expect(Test.options[type + 's'].test).toBe(def)