Skip to content

Commit

Permalink
remove the need of docs environment
Browse files Browse the repository at this point in the history
  • Loading branch information
fsmanuel authored and marcoow committed Oct 16, 2015
1 parent cb78d95 commit 8a1d7fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Brocfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ app.import('bower_components/bootstrap/dist/css/bootstrap.css');
sourceTrees.push(app.toTree());

// Docs
if (app.env === 'docs') {
const cmdOpts = process.argv.slice(3);

if (cmdOpts.indexOf('--docs') !== -1) {
const docs = broccoliHandlebars('docs/theme', ['index.hbs'], {
handlebars: Handlebars,
helpers: require('./docs/theme/helpers'),
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"start": "ember server",
"build": "ember build",
"docs": "ember build --docs -e docs",
"docs": "ember build --docs",
"test": "ember try:testall"
},
"repository": "",
Expand All @@ -36,7 +36,7 @@
"ember-cli-release": "0.2.3",
"ember-cli-uglify": "^1.0.1",
"ember-data": "1.13.4",
"ember-cli-yuidoc": "0.7.1",
"ember-cli-yuidoc": "0.7.2",
"ember-disable-prototype-extensions": "^1.0.0",
"ember-disable-proxy-controllers": "^1.0.0",
"ember-export-application-global": "^1.0.2",
Expand Down

0 comments on commit 8a1d7fd

Please sign in to comment.