bower.json 和 package.json 插值

bower.json and package.json interpolation

我从第 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

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

谢谢

可能他们使用 Maven. It looks like the Maven Model Interpolation. Look at the configuration docs 来查看这些配置所在的位置