Browse Source

remove component file list (duo does not need it)

Evan You 11 years ago
parent
commit
bd02b8da81
2 changed files with 3 additions and 84 deletions
  1. 1 12
      build/grunt-tasks/build.js
  2. 2 72
      component.json

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

@@ -17,17 +17,6 @@ module.exports = function (grunt) {
         ' * (c) ' + new Date().getFullYear() + ' Evan You\n' +
         ' * Released under the MIT License.\n' +
         ' */\n'
-    
-    // update component.json first
-    var jsRE = /\.js$/
-    var component = grunt.file.readJSON('component.json')
-    component.scripts = []
-    grunt.file.recurse('src', function (file) {
-      if (jsRE.test(file)) {
-        component.scripts.push(file)
-      }
-    })
-    grunt.file.write('component.json', JSON.stringify(component, null, 2))
 
     // build
     webpack({
@@ -90,4 +79,4 @@ module.exports = function (grunt) {
       return '\x1b[1m\x1b[34m' + str + '\x1b[39m\x1b[22m'
     }
   })
-}
+}

+ 2 - 72
component.json

@@ -4,75 +4,5 @@
   "main": "src/vue.js",
   "author": "Evan You <yyx990803@gmail.com>",
   "description": "Simple, Fast & Composable MVVM for building interative interfaces",
-  "keywords": [
-    "mvvm",
-    "framework",
-    "data binding"
-  ],
-  "license": "MIT",
-  "scripts": [
-    "src/api/child.js",
-    "src/api/data.js",
-    "src/api/dom.js",
-    "src/api/events.js",
-    "src/api/global.js",
-    "src/api/lifecycle.js",
-    "src/batcher.js",
-    "src/cache.js",
-    "src/compiler/compile.js",
-    "src/compiler/content.js",
-    "src/compiler/index.js",
-    "src/compiler/transclude.js",
-    "src/config.js",
-    "src/directive.js",
-    "src/directives/attr.js",
-    "src/directives/class.js",
-    "src/directives/cloak.js",
-    "src/directives/component.js",
-    "src/directives/el.js",
-    "src/directives/html.js",
-    "src/directives/if.js",
-    "src/directives/index.js",
-    "src/directives/model/checkbox.js",
-    "src/directives/model/index.js",
-    "src/directives/model/radio.js",
-    "src/directives/model/select.js",
-    "src/directives/model/text.js",
-    "src/directives/on.js",
-    "src/directives/prop.js",
-    "src/directives/ref.js",
-    "src/directives/repeat.js",
-    "src/directives/show.js",
-    "src/directives/style.js",
-    "src/directives/text.js",
-    "src/directives/transition.js",
-    "src/filters/array-filters.js",
-    "src/filters/index.js",
-    "src/instance/compile.js",
-    "src/instance/events.js",
-    "src/instance/init.js",
-    "src/instance/misc.js",
-    "src/instance/scope.js",
-    "src/observer/array.js",
-    "src/observer/dep.js",
-    "src/observer/index.js",
-    "src/observer/object.js",
-    "src/parsers/directive.js",
-    "src/parsers/expression.js",
-    "src/parsers/path.js",
-    "src/parsers/template.js",
-    "src/parsers/text.js",
-    "src/transition/index.js",
-    "src/transition/queue.js",
-    "src/transition/transition.js",
-    "src/util/debug.js",
-    "src/util/dom.js",
-    "src/util/env.js",
-    "src/util/index.js",
-    "src/util/lang.js",
-    "src/util/misc.js",
-    "src/util/options.js",
-    "src/vue.js",
-    "src/watcher.js"
-  ]
-}
+  "license": "MIT"
+}