emberjs ember cli玉模板不编译?

时间:2014-05-18 03:58:32

标签: javascript node.js ember.js pug ember-cli

我正在使用ember-cli来设置我的新emberjs应用程序。虽然我能够成功安装jade,但似乎没有将.jade模板添加到/ app目录中?

思考?当前的package.json:

{
  "name": "frontend",
  "version": "0.0.0",
  "private": true,
  "directories": {
    "doc": "doc",
    "test": "test"
  },
  "scripts": {
    "start": "ember server",
    "build": "ember build",
    "test": "ember test"
  },
  "repository": "https://github.com/stefanpenner/ember-cli",
  "engines": {
    "node": ">= 0.10.0"
  },
  "author": "",
  "license": "MIT",
  "devDependencies": {
    "ember-cli": "0.0.28",
    "originate": "0.1.5",
    "broccoli-ember-hbs-template-compiler": "^1.5.0",
    "loom-generators-ember-appkit": "^1.1.1",
    "express": "^4.1.1",
    "body-parser": "^1.2.0",
    "glob": "^3.2.9",
    "broccoli-sass": "^0.1.4",
    "broccoli-csso": "^0.2.0",
    "broccoli-jade": "^0.2.0"
  }
}

名为/app的{​​{1}}文件夹中有一个相当小的模板,代码如下:

error.jade

当我运行doctype html head title |Error! body p strong |Error! ember serve时,它永远不会被编译。其他一切都是ember cli的标准设置。我跑了ember build来安装它。以下是我为此问题embercli-emberjs-test设置的示例回购。理想情况下,我想编译把手和玉石模板。

思考? github issue

1 个答案:

答案 0 :(得分:0)

尝试运行

  

bower install

在您的应用根目录中。有时安装后的例程不会自动执行。