added support for fxos-ui widgets
This commit is contained in:
Родитель
a67a28c684
Коммит
9def7d70e9
|
@ -28,7 +28,7 @@ module.exports = function (grunt) {
|
|||
yeoman: yeomanConfig,
|
||||
watch: {
|
||||
emberTemplates: {
|
||||
files: '<%%= yeoman.app %>/templates/**/*.hbs',
|
||||
files: ['<%= yeoman.app %>/templates/**/*.hbs','<%= yeoman.app %>/bower_components/**/*.hbs'],
|
||||
tasks: ['emberTemplates']
|
||||
},<% if (options.coffee) { %>
|
||||
coffee: {
|
||||
|
@ -315,14 +315,17 @@ module.exports = function (grunt) {
|
|||
},<% } %>
|
||||
emberTemplates: {
|
||||
options: {
|
||||
templateName: function (sourceFile) {
|
||||
var templatePath = yeomanConfig.app + '/templates/';
|
||||
return sourceFile.replace(templatePath, '');
|
||||
}
|
||||
/* we use a regular expression to set the paths for your
|
||||
templates in <your app name>/templates and for the fxos-ui templates that
|
||||
are a bower dependency */
|
||||
templateBasePath: /app\/templates\/|app\/bower_components\/fxos-ui\/templates\//
|
||||
},
|
||||
dist: {
|
||||
files: {
|
||||
'.tmp/scripts/compiled-templates.js': '<%%= yeoman.app %>/templates/{,*/}*.hbs'
|
||||
'.tmp/scripts/compiled-templates.js': [
|
||||
'app/templates/{,*/}*.hbs',
|
||||
'app/bower_components/fxos-ui/templates/components/{,*/}*.hbs'
|
||||
]
|
||||
}
|
||||
}
|
||||
},<% if (!options.coffee) { %>
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
"handlebars": "1.2.1",
|
||||
"ember-data": "1.0.0-beta.5",
|
||||
"brick": "1.0.1",
|
||||
"localforage": "0.4.0"
|
||||
"localforage": "0.4.0",
|
||||
"fxos-ui": "0.0.1"
|
||||
},
|
||||
"resolutions": {
|
||||
"ember": "1.3.1"
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
FxosUI = window.FxosUI = Ember.Namespace.create()
|
||||
var <%= _.classify(appname) %> = window.<%= _.classify(appname) %> = Ember.Application.create();
|
||||
|
||||
/* Order and include as you please. */
|
||||
|
||||
require('scripts/controllers/*');
|
||||
require('scripts/store');
|
||||
require('scripts/models/*');
|
||||
require('scripts/routes/*');
|
||||
require('scripts/views/*');
|
||||
require('scripts/router');
|
||||
require('/bower_components/fxos-ui/scripts/components/*');
|
||||
|
|
Загрузка…
Ссылка в новой задаче