我创建了一些javascript组件(路由器,虹吸管,验证器,验证器规则)https://github.com/gothamjs,我按照规范在凉亭中注册了所有内容。
我有一个bower.json的项目:
{
"name": "Your Gotham's application",
"version": "0.0.1",
"main": "",
"dependencies": {
"console-polyfill": "~0.1.2",
"jquery": "2.1.3",
"lodash": "~3.9.0",
"gotham-router": "1.0.0",
"gotham-syphon": "1.0.0",
"gotham-validator": "1.0.0",
"gotham-validator-rules": "1.0.0"
},
"overrides": {}
}
当我放行gotham-validator-rules
行并运行brunch watch
时,早午餐关闭并显示错误:
/usr/local/lib/node_modules/brunch/node_modules/read-components/index.js:232
throw new Error('Dependency "' + depName + '" is not present in the li
^
Error: Dependency "gotham-validator" is not present in the list of deps [console-polyfill, jquery, lodash, router, syphon, validator, gotham-validator-rules, validator]. Specify correct dependency in bower.json or contact package author.
此处bower.json
包的gotham-validator-rules
:
{
"name": "gotham-validator-rules",
"moduleType": "globals",
"homepage": "https://github.com/Gotham-Framework/validator",
"authors": [
"Ges Jeremie <bonjour@gesjeremie.fr>"
],
"description": "Validation rules for the Validator class",
"main": "dist/validator-rules.js",
"keywords": [
"gotham-validator-rules"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"devDependencies": {
"qunit": "~1.17.1"
},
"dependencies": {
"gotham-validator": "1.0.0",
"lodash": "~3.9.3"
}
}
我用凉亭“很新”,我确实在某个地方犯了一个错误,但我不知道在哪里......