generator-jade
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -55,3 +55,7 @@ 'use strict'; | ||
JadeGenerator.prototype.createFiles = function () { | ||
this.copy('_main.sass', 'app/styles/main.sass'); | ||
if (this.cssProcessor === 'sass') { | ||
this.copy('_main.sass', 'app/styles/main.sass'); | ||
} else if (this.cssProcessor === 'stylus') { | ||
this.copy('_main.styl', 'app/styles/main.styl'); | ||
} | ||
this.copy('_main.js', 'app/scripts/main.js'); | ||
@@ -58,0 +62,0 @@ this.copy('_bower.json', 'bower.json'); |
{ | ||
"name": "generator-jade", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A yo generator for jade projects", | ||
"keywords": [ | ||
"yeoman-generator" | ||
"yeoman-generator", | ||
"jade", | ||
"stylus" | ||
], | ||
@@ -8,0 +10,0 @@ "homepage": "https://github.com/yfr/generator-jade", |
# Generator-jade | ||
**Still very basic!** | ||
A generator for Yeoman to use jade for templating. | ||
A generator for Yeoman. | ||
alsoyou can choose to use stylus as css preprocessor. So no ruby dependencies for this generator. | ||
@@ -10,3 +10,3 @@ ## Getting started | ||
`npm install -g yo` | ||
- Install the generator: `npm install -g generator-jade` | ||
- Install the generator: `npm install -g generator-jade` or use the `yo` command and follow instructions. | ||
- Run: `yo jade` | ||
@@ -16,8 +16,9 @@ | ||
This generator is powered by the jade template engine | ||
Until now this is what you got. There is no fancy js and css frameworks | ||
But you can add them very easily. Just update your bower file and run <code>bower install</code> | ||
This generator is powered by the jade template engine. There is no fancy js and css frameworks included. | ||
But you can add them very easily. Just update your bower file and run <code>bower install</code>. | ||
All jade files are supposed to be located under app/jade/. All .jade files with an _underscore are treated as partials and not rendered directly. Everything else is a jade file that is supposed to be a page. | ||
As css preprocessor you can choose between sass/comapss and stylus. | ||
All jade files are supposed to be located under app/jade/. All .jade files with an _underscore are treated as partials and not rendered directly. Everything else is a jade file that is supposed to be a page. Create subpages in folders with own index.jade files including _default_layout.jade or you own _layout.jade in /layouts. | ||
And this is how i thought about the directory structure of the jade directory | ||
@@ -24,0 +25,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25235
30
545
43