mirror of https://github.com/vuejs/vue.git
update component.json
This commit is contained in:
parent
a8419063d4
commit
724aec3aaf
|
|
@ -11,33 +11,43 @@
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": [
|
"scripts": [
|
||||||
"src/api/asset-register.js",
|
"src/api/data.js",
|
||||||
"src/api/config.js",
|
"src/api/dom.js",
|
||||||
"src/api/extend.js",
|
"src/api/events.js",
|
||||||
"src/api/require.js",
|
"src/api/global.js",
|
||||||
"src/api/use.js",
|
"src/api/lifecycle.js",
|
||||||
"src/batcher.js",
|
"src/batcher.js",
|
||||||
"src/binding.js",
|
"src/binding.js",
|
||||||
"src/compiler/compiler.js",
|
"src/cache.js",
|
||||||
"src/config.js",
|
"src/config.js",
|
||||||
"src/directive.js",
|
"src/directive.js",
|
||||||
|
"src/directives/index.js",
|
||||||
"src/emitter.js",
|
"src/emitter.js",
|
||||||
|
"src/filters/index.js",
|
||||||
|
"src/instance/bindings.js",
|
||||||
|
"src/instance/compile.js",
|
||||||
"src/instance/data.js",
|
"src/instance/data.js",
|
||||||
"src/instance/dom.js",
|
"src/instance/element.js",
|
||||||
"src/instance/events.js",
|
"src/instance/init.js",
|
||||||
"src/instance/lifecycle.js",
|
"src/instance/proxy.js",
|
||||||
"src/observer/array-augmentations.js",
|
"src/instance/scope.js",
|
||||||
"src/observer/object-augmentations.js",
|
"src/observe/array-augmentations.js",
|
||||||
"src/observer/observer.js",
|
"src/observe/object-augmentations.js",
|
||||||
"src/parsers/directive.js",
|
"src/observe/observer.js",
|
||||||
"src/parsers/expression.js",
|
"src/parse/directive.js",
|
||||||
"src/parsers/path.js",
|
"src/parse/expression.js",
|
||||||
"src/parsers/text.js",
|
"src/parse/path.js",
|
||||||
"src/template.js",
|
"src/parse/template.js",
|
||||||
|
"src/parse/text.js",
|
||||||
"src/transition/css.js",
|
"src/transition/css.js",
|
||||||
"src/transition/js.js",
|
"src/transition/js.js",
|
||||||
"src/transition/transition.js",
|
"src/transition/transition.js",
|
||||||
"src/util.js",
|
"src/util/debug.js",
|
||||||
|
"src/util/dom.js",
|
||||||
|
"src/util/env.js",
|
||||||
|
"src/util/index.js",
|
||||||
|
"src/util/lang.js",
|
||||||
|
"src/util/option.js",
|
||||||
"src/vue.js"
|
"src/vue.js"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -36,7 +36,6 @@ function extractPaths (code) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Escape leading dollar signs from paths for regex construction.
|
* Escape leading dollar signs from paths for regex construction.
|
||||||
* Otherwise it can be mistaken as the linestart token.
|
|
||||||
*
|
*
|
||||||
* @param {String} path
|
* @param {String} path
|
||||||
* @return {String}
|
* @return {String}
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,14 @@
|
||||||
module.exports = function (grunt) {
|
module.exports = function (grunt) {
|
||||||
grunt.registerTask('component', function () {
|
grunt.registerTask('component', function () {
|
||||||
|
|
||||||
|
var jsRE = /\.js$/
|
||||||
var component = grunt.file.readJSON('component.json')
|
var component = grunt.file.readJSON('component.json')
|
||||||
component.scripts = []
|
component.scripts = []
|
||||||
|
|
||||||
grunt.file.recurse('src', function (file) {
|
grunt.file.recurse('src', function (file) {
|
||||||
|
if (jsRE.test(file)) {
|
||||||
component.scripts.push(file)
|
component.scripts.push(file)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
grunt.file.write('component.json', JSON.stringify(component, null, 2))
|
grunt.file.write('component.json', JSON.stringify(component, null, 2))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue