Socket
Socket
Sign inDemoInstall

generator-jade

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-jade - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

app/templates/_main.styl

6

app/index.js

@@ -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');

6

package.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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc