{
  "_args": [
    [
      {
        "raw": "ember-cli-htmlbars-inline-precompile@^1.0.0",
        "scope": null,
        "escapedName": "ember-cli-htmlbars-inline-precompile",
        "name": "ember-cli-htmlbars-inline-precompile",
        "rawSpec": "^1.0.0",
        "spec": ">=1.0.0 <2.0.0",
        "type": "range"
      },
      "/home/travis/build/lukesargeant/ember-sparkline"
    ]
  ],
  "_from": "ember-cli-htmlbars-inline-precompile@>=1.0.0 <2.0.0",
  "_id": "ember-cli-htmlbars-inline-precompile@1.0.2",
  "_inCache": true,
  "_location": "/ember-cli-htmlbars-inline-precompile",
  "_nodeVersion": "7.1.0",
  "_npmOperationalInternal": {
    "host": "s3://npm-registry-packages",
    "tmp": "tmp/ember-cli-htmlbars-inline-precompile-1.0.2.tgz_1502283350705_0.546930335694924"
  },
  "_npmUser": {
    "name": "rwjblue",
    "email": "me@rwjblue.com"
  },
  "_npmVersion": "3.10.8",
  "_phantomChildren": {},
  "_requested": {
    "raw": "ember-cli-htmlbars-inline-precompile@^1.0.0",
    "scope": null,
    "escapedName": "ember-cli-htmlbars-inline-precompile",
    "name": "ember-cli-htmlbars-inline-precompile",
    "rawSpec": "^1.0.0",
    "spec": ">=1.0.0 <2.0.0",
    "type": "range"
  },
  "_requiredBy": [
    "#DEV:/"
  ],
  "_resolved": "https://registry.npmjs.org/ember-cli-htmlbars-inline-precompile/-/ember-cli-htmlbars-inline-precompile-1.0.2.tgz",
  "_shasum": "5b544f664d5d9911f08cd979c5f70d8cb0ca2add",
  "_shrinkwrap": null,
  "_spec": "ember-cli-htmlbars-inline-precompile@^1.0.0",
  "_where": "/home/travis/build/lukesargeant/ember-sparkline",
  "author": {
    "name": "Clemens Müller",
    "email": "cmueller.418@gmail.com"
  },
  "bugs": {
    "url": "https://github.com/ember-cli/ember-cli-htmlbars-inline-precompile/issues"
  },
  "dependencies": {
    "babel-plugin-htmlbars-inline-precompile": "^0.2.3",
    "ember-cli-version-checker": "^2.0.0",
    "hash-for-dep": "^1.0.2",
    "heimdalljs-logger": "^0.1.7",
    "silent-error": "^1.1.0"
  },
  "description": "Precompile inline HTMLBars templates via ES6 tagged template strings",
  "devDependencies": {
    "broccoli-asset-rev": "^2.4.5",
    "chai": "^4.1.0",
    "ember-ajax": "^2.4.1",
    "ember-cli": "2.11.1",
    "ember-cli-app-version": "^2.0.0",
    "ember-cli-babel": "^6.7.1",
    "ember-cli-coffeescript": "github:rwjblue/ember-cli-coffeescript#update-version-checker-api",
    "ember-cli-dependency-checker": "^1.3.0",
    "ember-cli-htmlbars": "^1.3.2",
    "ember-cli-inject-live-reload": "^1.4.1",
    "ember-cli-jshint": "^2.0.1",
    "ember-cli-preprocess-registry": "^3.1.1",
    "ember-cli-qunit": "^3.0.1",
    "ember-cli-release": "^0.2.9",
    "ember-cli-sri": "^2.1.0",
    "ember-cli-test-loader": "^1.1.0",
    "ember-cli-uglify": "^1.2.0",
    "ember-disable-prototype-extensions": "^1.1.0",
    "ember-export-application-global": "^1.0.5",
    "ember-load-initializers": "^0.6.3",
    "ember-resolver": "^3.0.0",
    "htmlbars-comment-redactor": "^0.0.4",
    "loader.js": "^4.0.10",
    "mocha": "^3.4.2",
    "username-sync": "^1.0.1"
  },
  "directories": {
    "doc": "doc",
    "test": "tests"
  },
  "dist": {
    "shasum": "5b544f664d5d9911f08cd979c5f70d8cb0ca2add",
    "tarball": "https://registry.npmjs.org/ember-cli-htmlbars-inline-precompile/-/ember-cli-htmlbars-inline-precompile-1.0.2.tgz"
  },
  "ember-addon": {
    "configPath": "tests/dummy/config",
    "after": "ember-cli-htmlbars"
  },
  "engines": {
    "node": ">= 4"
  },
  "gitHead": "8c7f92774f36ef849d5e440b05b4e07a6852fab5",
  "homepage": "https://github.com/ember-cli/ember-cli-htmlbars-inline-precompile#readme",
  "keywords": [
    "ember-addon",
    "ember-cli"
  ],
  "license": "MIT",
  "maintainers": [
    {
      "name": "ember-cli",
      "email": "stefan.penner+ember-cli@gmail.com"
    },
    {
      "name": "pangratz",
      "email": "cmueller.418@gmail.com"
    },
    {
      "name": "rwjblue",
      "email": "me@rwjblue.com"
    },
    {
      "name": "stefanpenner",
      "email": "stefan.penner@gmail.com"
    },
    {
      "name": "turbo87",
      "email": "tobias.bieniek@gmx.de"
    }
  ],
  "name": "ember-cli-htmlbars-inline-precompile",
  "optionalDependencies": {},
  "peerDependencies": {
    "ember-cli-babel": "^6.7.1"
  },
  "readme": "# ember-cli-htmlbars-inline-precompile\n\n[![npm version](https://badge.fury.io/js/ember-cli-htmlbars-inline-precompile.svg)](https://badge.fury.io/js/ember-cli-htmlbars-inline-precompile)\n[![Build Status](https://travis-ci.org/ember-cli/ember-cli-htmlbars-inline-precompile.svg?branch=master)](https://travis-ci.org/ember-cli/ember-cli-htmlbars-inline-precompile)\n[![Ember Observer Score](http://emberobserver.com/badges/ember-cli-htmlbars-inline-precompile.svg)](http://emberobserver.com/addons/ember-cli-htmlbars-inline-precompile)\n[![Dependency Status](https://david-dm.org/ember-cli/ember-cli-htmlbars-inline-precompile.svg)](https://david-dm.org/ember-cli/ember-cli-htmlbars-inline-precompile)\n\nPrecompile HTMLBars template strings within the tests of an Ember-CLI project\nvia ES6 tagged template strings:\n\n``` js\n// ember-cli-project/test/unit/components/my-component-test.js\nimport hbs from 'htmlbars-inline-precompile';\nimport { moduleForComponent, test } from 'ember-qunit';\n\nmoduleForComponent('my-component');\n\ntest('it renders', function(assert) {\n  var component = this.subject({\n    greeting: \"hello ember testing\",\n    layout: hbs`\n      greeting: <span>{{greeting}}</span>\n    `\n  });\n\n  assert.equal(this.$().html().trim(), \"greeting: <span>hello ember testing</span>\");\n});\n```\n\n---\n\n\nIf you are using `ember-cli-qunit@0.3.12`, writing component integration tests\nbecomes as readable as:\n\n``` js\nimport hbs from 'htmlbars-inline-precompile';\nimport { moduleForComponent, test } from 'ember-qunit';\n\nmoduleForComponent('my-component', {\n  integration: true\n});\n\ntest('block params work', function(assert) {\n  this.render(hbs`\n    {{#my-component date=theDate as |daysAgo| }}\n      This happened {{daysAgo}} days ago.\n    {{/my-component}}\n  `);\n\n  this.set('theDate', new Date(2015, 2, 11));\n  assert.equal(this.$().text().trim(), \"This happened 123 days ago.\");\n});\n\n```\n\n### CoffeeScript support\n\nVersion `0.2.0` introduced the possibility to use this addon within\nCoffeeScript, using [`ember-cli-coffeescript`](https://github.com/kimroen/ember-cli-coffeescript). Since the\nbacktick ``` ` ``` is used to embed JavaScript, the `hbs` function can be invoked with the\ntemplate as a normal string:\n\n``` coffeescript\n`import hbs from 'htmlbars-inline-precompile';`\n`import { moduleForComponent, test } from 'ember-qunit';`\n\nmoduleForComponent \"my-component\",\n  integration: true\n\ntest \"block params work\", (assert) ->\n  @render hbs '''\n    {{#my-component date=theDate as |daysAgo| }}\n      This happened {{daysAgo}} days ago.\n    {{/my-component}}\n  '''\n\n  @set 'theDate', new Date(2015, 2, 11)\n  assert.equal this.$().text().trim(), \"This happened 123 days ago.\"\n```\n\n\n\n### Installation\n\nInstall the addon via `ember install ember-cli-htmlbars-inline-precompile`\n\n### Troubleshooting\n\n#### `Plugin undefined didn't export a default Transformer instance`\n\nIf you get an error like `Plugin undefined didn't export a default Transformer\ninstance` this likely means that the installed version of `babel-core` is\noutdated. You can check for the installed version via `npm ls babel-core`\nwithin the root of your Ember-CLI application:\n\n```\n$ npm ls babel-core\nyour-app@0.0.0 ~/your-app\n└─┬ ember-cli-babel@5.0.0\n  └─┬ broccoli-babel-transpiler@5.0.0\n    └── babel-core@5.1.13\n```\n\n\nSince this addon relies on a feature implemented in `babel@v5.2.10`, you need\nto update your installed dependency of `ember-cli-babel` via:\n\n\n```\nrm -rf node_modules/ember-cli-babel\nnpm install\n```\n\nAfter that the version of `babel-core` should be at least `5.2.10`:\n\n```\n$ npm ls babel-core\nyour-app@0.0.0 ~/your-app\n└─┬ ember-cli-babel@5.0.0\n  └─┬ broccoli-babel-transpiler@5.0.0\n    └── babel-core@5.2.10\n```\n\nStarting the development environment via `ember server` or `ember test\n--server` should start as expected and your inline template strings are\ncompiled.\n\n#### JSHint problems with `ember-cli-mocha`: `Expected ')' and instead saw '`\n\nIf `ember-cli-mocha` complains with a message like `Expected ')' and instead saw '`,\nyou need to upgrade the used `ember-cli-mocha` package in your Ember-CLI app/addon. This\nhas been discussed in [switchfly/ember-cli-mocha#57](https://github.com/switchfly/ember-cli-mocha/pull/57#discussion_r32633195),\nwhere the solution is a clean [`npm install`](https://github.com/switchfly/ember-cli-mocha/pull/57#discussion_r32654980).\n\n\n### Caveats\n\nKeep in mind that the source files are transformed, so the inline template\ndefinitions are replaced with `Ember.HTMLBars.template(…)` statements. This\nmeans that you can't do fancy stuff like string interpolation within the\ntemplates:\n\n``` js\ntest('string interpolation within templates is NOT supported', function(assert) {\n  var valuePath = 'greeting';\n  var component = this.subject({\n    greeting: \"hello ember testing\",\n    layout: hbs`\n      ${valuePath}: <span>{{value}}</span>\n    `\n  });\n\n  // the template will be \"${valuePath}: <span>{{value}}</span>\"\n```\n\nIf you need stuff like this, you need to include `ember-template-compiler.js`\nin your test-build and use `Ember.HTMLBars.compile(\"…\")` within your tests.\n\n### Alternatives\n\n- [broccoli-ember-inline-template-compiler](https://github.com/rwjblue/broccoli-ember-inline-template-compiler)\n- Include `ember-handlebars-compiler.js` in your test-build and compile client side via `Ember.HTMLBars.compile(…)`\n\n### Thanks\n\nThis addon wouldn't exist without the lightning fast response by open source hero [@kittens](https://github.com/kittens),\nwho implemented the [feature to replace a node with a source string](http://git.io/vJSrs) not\neven an hour after I mentioned it in gitter :heart:.\n",
  "readmeFilename": "README.md",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/ember-cli/ember-cli-htmlbars-inline-precompile.git"
  },
  "scripts": {
    "build": "ember build",
    "start": "ember server",
    "test": "mocha && ember try:each",
    "test:unit": "mocha"
  },
  "version": "1.0.2"
}
