Skip to content

Commit

Permalink
remove component file list (duo does not need it)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jun 11, 2015
1 parent 025ad1d commit bd02b8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 84 deletions.
13 changes: 1 addition & 12 deletions build/grunt-tasks/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -90,4 +79,4 @@ module.exports = function (grunt) {
return '\x1b[1m\x1b[34m' + str + '\x1b[39m\x1b[22m'
}
})
}
}
74 changes: 2 additions & 72 deletions component.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,75 +4,5 @@
"main": "src/vue.js",
"author": "Evan You <[email protected]>",
"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"
}

0 comments on commit bd02b8d

Please sign in to comment.