【发布时间】:2013-04-23 09:16:02
【问题描述】:
对于基于yeoman (grunt) 的Ember.js 项目,我们具有以下结构(仅显示了一些相关组件):
myapp/
├── app
├── component.json
├── package.json
├── Gruntfile.js
├── README.md
│ ├── adapters
│ ├── application.js
│ ├── components
│ ├── controllers
│ ├── generated
│ ├── images
│ ├── models
│ ├── routes
│ ├── scripts
│ ├── styles
│ ├── templates
│ └── views
├── dist
├── node_modules
└── test
我们需要在application.js 中访问package.json 和component.json 中的一些值。我们想在部署过程中访问它(作为grunt 任务?)。这可能吗?如何实现?
【问题讨论】: