Skip to content

Commit 4759d92

Browse files
committed
Merge pull request #14 from weeezes/dev
Fixes for scaffolding and grunting
2 parents fac9934 + 1a8b405 commit 4759d92

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

app/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,12 @@ CraftyGenerator.prototype.writeIndex = function writeIndex() {
122122
'libs/CraftyDebug/panels/entities.js'
123123
], null, 'app');
124124

125-
this.indexFile = this.appendFiles(this.indexFile, 'js', 'scripts/components.js', ['scripts/compiled-components.js'], null, '.tmp');
126-
this.indexFile = this.appendFiles(this.indexFile, 'js', 'scripts/scenes.js', ['scripts/compiled-scenes.js'], null, '.tmp');
127-
this.indexFile = this.appendFiles(this.indexFile, 'js', 'scripts/main.js', ['scripts/combined-scripts.js'], null, '.tmp');
125+
this.indexFile = this.appendFiles(this.indexFile, 'js', 'scripts/combined-scripts.js', ['scripts/combined-scripts.js'], null, '.tmp');
128126

129127
this.write('app/index.html', this.indexFile);
130128

131129
this.copy('styles/normalize.css', 'app/styles/normalize.css');
132130
this.copy('styles/style.css', 'app/styles/style.css');
133-
//this.copy("_index.html", "app/index.html");
134131
};
135132

136133
CraftyGenerator.prototype.install = function () {

app/templates/_Gruntfile.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,16 @@ module.exports = function (grunt) {
130130
}
131131
}
132132
},<% } %>
133+
uglify: {
134+
options: {
135+
mangle: false
136+
},
137+
dist: {
138+
files: {
139+
'<%%= yeoman.dist %>/scripts/combined-scripts.min.js': ['<%%= yeoman.dist %>/scripts/combined-scripts.js']
140+
}
141+
}
142+
},
133143
rev: {
134144
dist: {
135145
files: {

component/templates/_base.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.export = Crafty.c('<%= name %>', {
1+
Crafty.c('<%= name %>', {
22

33
_placeholder: "..",
44

@@ -12,8 +12,10 @@ module.export = Crafty.c('<%= name %>', {
1212
},
1313

1414
// constructor
15-
<%= name %>: function(placeholder) {
15+
<%= name.toLowerCase() %>: function(placeholder) {
1616
this.placeholder = placeholder;
17+
18+
return this;
1719
}
1820

1921
});

0 commit comments

Comments
 (0)