【问题标题】:bower.json and package.json interpolationbower.json 和 package.json 插值
【发布时间】:2015-11-09 15:46:13
【问题描述】:

我从第 3 方获得了一个项目,他们在 bower.json 和 package.json 文件中有如下内容

"name": "${project.artifactId}",
"description": "${project.description}",
"version": "${project.version}",

我无法确定哪个构建引擎在 .json 文件中使用 ${} 插值。还有brunch-config.cofee 具有类似用法的文件。我没有看到任何描述这些变量的东西。我的brunch build 完全失败了(可能是因为无关的原因):

$ brunch build -d
14 Aug 23:03:50 - error: { [Error: Component must have "/Users/test/bower/angular/bower.json"] code: 'NO_BOWER_JSON' }
  brunch:watch Loaded plugins:  +0ms
  brunch:watch File 'package.json' received event 'add' +11ms
  brunch:watch File 'bower.json' received event 'add' +2ms
  brunch:watch File 'brunch-config.coffee' received event 'add' +0ms

您能帮忙提供一些指导吗?

谢谢

【问题讨论】:

标签: json angularjs npm bower brunch


【解决方案1】:

他们可能使用了Maven。它看起来像Maven Model Interpolation。查看configuration docs 以了解这些配置所在的位置

【讨论】:

    猜你喜欢
    • 2014-12-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-07
    • 2019-07-28
    • 2015-03-20
    • 2018-10-14
    • 2015-12-28
    相关资源
    最近更新 更多