Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.1.1 to 0.2.0

31

app/index.js

@@ -6,4 +6,3 @@ 'use strict';

var JadeGenerator = module.exports = function JadeGenerator(args, options, config) {
var JadeGenerator = module.exports = function JadeGenerator(args, options) {
yeoman.generators.Base.apply(this, arguments);

@@ -27,10 +26,16 @@

var prompts = [
{
name: 'projectName',
message: 'Name your project'
}];
{
name: 'projectName',
message: 'Name your project'
}, {
type: 'list',
name: 'cssProcessor',
message: 'Do you like sass/compass or stylus as a css preprocessor',
choices: ['stylus', 'sass']
}
];
this.prompt(prompts, function (props) {
this.projectName = props.projectName;
this.jQuery = props.jQuery;
this.cssProcessor = props.cssProcessor;

@@ -51,12 +56,12 @@ cb();

JadeGenerator.prototype.createFiles = function() {
this.copy('_package.json', 'package.json');
JadeGenerator.prototype.createFiles = function () {
this.copy('_main.sass', 'app/styles/main.sass');
this.copy('_main.js', 'app/scripts/main.js');
this.copy('_bower.json', 'bower.json');
this.copy('bowerrc', '.bowerrc');
this.template('_Gruntfile.js', 'Gruntfile.js');
this.copy('_main.sass', 'app/styles/main.sass');
this.copy('_main.js', 'app/scripts/main.js');
this.template('_package.json', 'package.json');
};
JadeGenerator.prototype.createJadeTemplates = function() {
JadeGenerator.prototype.createJadeTemplates = function () {
this.copy('jade/_default.jade', 'app/jade/layouts/_default.jade');

@@ -72,2 +77,2 @@ this.copy('jade/_footer.jade', 'app/jade/layouts/partials/_footer.jade');

this.copy('jshintrc', '.jshintrc');
};
};

@@ -27,7 +27,11 @@ // Generated on<%%= (new Date).toISOString().split('T')[0] %> using <%%= pkg.name %> <%%= pkg.version %>

folders: folders,
watch: {
watch: {<% if (cssProcessor === 'stylus') { %>
stylus: {
files: '<%%= folders.app %>/styles/**/*.styl',
tasks: ['stylus']
},<% } else if (cssProcessor === 'sass') { %>
compass: {
files: ['<%%= folders.app %>/styles/{,*/}*.{scss,sass}'],
tasks: ['compass:server']
},
},<% } %>
server: {

@@ -111,3 +115,13 @@ options: {

}
},
},<% if (cssProcessor === 'stylus') { %>
stylus: {
compile: {
files: {
'<%%= folders.tmp %>/main.css': [
'<%%= folders.app %>/styles/**/*.styl',
'!<%%= folders.app %>/styles/**/_*.styl'
]
}
}
},<% } else if (cssProcessor === 'sass') { %>
compass: {

@@ -122,3 +136,3 @@ options: {

relativeAssets: true
},
},<% } %>
dist: {},

@@ -282,10 +296,13 @@ server: {

concurrent: {
server: [
'compass:server'
server: [<% if (cssProcessor === 'stylus') { %>
'stylus'<% } else if (cssProcessor === 'sass') { %>
'compass:server'<% } %>
],
test: [
'compass'
test: [<% if (cssProcessor === 'stylus') { %>
'stylus'<% } else if (cssProcessor === 'sass') { %>
'compass'<% } %>
],
dist: [
'compass:dist',
dist: [<% if (cssProcessor === 'stylus') { %>
'stylus',<% } else if (cssProcessor === 'sass') { %>
'compass:dist',<% } %>
'imagemin',

@@ -292,0 +309,0 @@ 'svgmin',

@@ -10,3 +10,2 @@ {

"grunt-contrib-uglify": "~0.2.0",
"grunt-contrib-compass": "~0.1.3",
"grunt-contrib-jshint": "~0.4.1",

@@ -20,3 +19,5 @@ "grunt-contrib-cssmin": "~0.6.0",

"grunt-contrib-jade": "~0.6.0",
"grunt-contrib-watch": "~0.4.4",
"grunt-contrib-watch": "~0.4.4",<% if (cssProcessor === 'stylus') { %>
"grunt-contrib-stylus": "~0.6.0",<% } else if (cssProcessor === 'sass') { %>
"grunt-contrib-compass": "~0.1.3",<% } %>
"grunt-rev": "~0.1.0",

@@ -23,0 +24,0 @@ "grunt-usemin": "~0.1.10",

{
"name": "generator-jade",
"version": "0.1.1",
"version": "0.2.0",
"description": "A yo generator for jade projects",

@@ -5,0 +5,0 @@ "keywords": [

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