From e9bebdcecd21cece7eda9d0914602ebf9d3eaf3d Mon Sep 17 00:00:00 2001 From: Mike North Date: Sun, 26 Jul 2015 13:03:19 -0700 Subject: [PATCH] Blueprint works now! - Fixes #8 --- .../files/app/templates/application.hbs | 13 +++++++++++++ .../ember-material-lite/files/config/environment.js | 4 ++-- blueprints/ember-material-lite/index.js | 3 ++- 3 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 blueprints/ember-material-lite/files/app/templates/application.hbs diff --git a/blueprints/ember-material-lite/files/app/templates/application.hbs b/blueprints/ember-material-lite/files/app/templates/application.hbs new file mode 100644 index 00000000..f0d7cc3f --- /dev/null +++ b/blueprints/ember-material-lite/files/app/templates/application.hbs @@ -0,0 +1,13 @@ +
+{{#mdl-card title='Welcome to Ember.js'}} +
+ You have successfully installed ember-material-lite. It's based on an awesome google project called Material Design Lite +
+ {{#mdl-card-actions}} + {{mdl-button text='Test Button'}} + {{/mdl-card-actions}} +{{/mdl-card}} +
+ + +{{outlet}} \ No newline at end of file diff --git a/blueprints/ember-material-lite/files/config/environment.js b/blueprints/ember-material-lite/files/config/environment.js index 5cdd0019..afb9dd56 100644 --- a/blueprints/ember-material-lite/files/config/environment.js +++ b/blueprints/ember-material-lite/files/config/environment.js @@ -2,7 +2,7 @@ module.exports = function(environment) { var ENV = { - modulePrefix: '', + modulePrefix: '<%= dasherizedPackageName %>', environment: environment, baseURL: '/', locationType: 'auto', @@ -13,7 +13,7 @@ module.exports = function(environment) { } }, sassOptions: { - includePaths: ['bower_components/material-design-lite-src/src'] + includePaths: ['bower_components/material-design-lite/src'] }, APP: { // Here you can pass flags/options to your application instance diff --git a/blueprints/ember-material-lite/index.js b/blueprints/ember-material-lite/index.js index 01455700..cb5720e0 100644 --- a/blueprints/ember-material-lite/index.js +++ b/blueprints/ember-material-lite/index.js @@ -11,7 +11,8 @@ module.exports = { afterInstall: function () { return RSVP.all([ - this.addPackageToProject('ember-cli-sass', '^3.3.0') + this.addPackageToProject('ember-cli-sass', '^3.3.0'), + this.addPackageToProject('ember-new-computed', '~1.0.0') ]); } };