Skip to content

Commit

Permalink
feat(gen): additional work for compass support
Browse files Browse the repository at this point in the history
Let Bower handle the install of Bootstrap
  • Loading branch information
eddiemonge committed Dec 13, 2013
1 parent 7fac119 commit 11cb994
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7,106 deletions.
9 changes: 3 additions & 6 deletions app/index.js
Expand Up @@ -232,11 +232,8 @@ Generator.prototype.readIndex = function readIndex() {
this.indexFile = this.engine(this.read('../../templates/common/index.html'), this);
};

// Waiting a more flexible solution for #138
Generator.prototype.bootstrapFiles = function bootstrapFiles() {
var sass = this.compass;
var source = 'styles/' + ( sass ? 's' : '' ) + 'css/';
var dest = 'app/styles/';
var mainFile = 'main.' + (sass ? 's' : '') + 'css';

if (this.bootstrap && !sass) {
Expand All @@ -246,7 +243,7 @@ Generator.prototype.bootstrapFiles = function bootstrapFiles() {
this.copy('fonts/glyphicons-halflings-regular.woff', 'app/fonts/glyphicons-halflings-regular.woff');
}

this.copy(source + mainFile, dest + mainFile);
this.copy('styles/' + mainFile, 'app/styles/' + mainFile);
};

Generator.prototype.appJs = function appJs() {
Expand Down Expand Up @@ -274,7 +271,7 @@ Generator.prototype.packageFiles = function () {
Generator.prototype.imageFiles = function () {
this.sourceRoot(path.join(__dirname, 'templates'));
this.directory('images', 'app/images', true);
}
};

Generator.prototype._injectDependencies = function _injectDependencies() {
var howToInstall =
Expand All @@ -294,4 +291,4 @@ Generator.prototype._injectDependencies = function _injectDependencies() {
cssPattern: '<link rel="stylesheet" href="{{filePath}}">'
});
}
}
};

0 comments on commit 11cb994

Please sign in to comment.