New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nyg-jam3

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nyg-jam3 - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

templates/bigwheel/src/framework/index.js

47

index.js

@@ -27,7 +27,2 @@ var fs = require('fs');

type: "confirm",
name: "sectionNames",
message: "Would you perfer Landing/Landing.js over Landing/index.js?",
default: false
}, {
type: "confirm",
name: "useES6",

@@ -50,3 +45,7 @@ message: "Would you like to use ES6?",

value: "angular"
}*/]
}*/,
{
name: "None",
value: "none"
}]
},{

@@ -69,3 +68,3 @@ type: "list",

{ base: 'templates/base/' },
{ base: 'templates/style/', output: 'lib/style/' },
{ base: 'templates/style/', output: 'src/style/' },
{ base: 'templates/scripts/{{css}}/', glob: '*', output: 'scripts/' }

@@ -77,9 +76,21 @@ ];

gen.config.set('repoName', repo && repo[1] ? repo[1] : '');
if (gen.config.get('framework')==='bigwheel') {
if (gen.config.get('framework')!=='none') {
var done = gen.async();
gen.prompt({
type: "confirm",
name: "pushState",
message: "Use push states?",
default: true
},gen.async());
name: "sectionNames",
message: "Would you perfer Landing/Landing.js over Landing/index.js?",
default: false
},function() {
if (gen.config.get('framework')==='bigwheel') {
gen.prompt({
type: "confirm",
name: "pushState",
message: "Use push states?",
default: true
},done);
} else {
done();
}
});
}

@@ -90,8 +101,12 @@ })

fs.rename(path.join(gen.cwd,'gitignore'),path.join(gen.cwd,'.gitignore'),function() {
if (gen.config.get('useES6')) {
gen.copy('templates/.babelrc','.babelrc',function() {
if (gen.config.get('framework')!=='none') {
if (gen.config.get('useES6')) {
gen.copy('templates/.babelrc','.babelrc',function() {
createSections(gen,done);
});
} else {
createSections(gen,done);
});
}
} else {
createSections(gen,done);
fs.writeFile(path.join(gen.cwd,'src/index.js'),'',done);
}

@@ -98,0 +113,0 @@ });

@@ -5,3 +5,3 @@ 'use strict';

module.exports = function(gen,cb) {
var model = require(path.join(process.cwd(),'lib/model/index.js'));
var model = require(path.join(process.cwd(),'src/model/index.js'));
var sections = ['Preloader'];

@@ -32,10 +32,10 @@ Object.keys(model)

};
fs.stat('lib/sections/'+cur+'/',function(err,stat) {
fs.stat('src/sections/'+cur+'/',function(err,stat) {
if (err) {
var type = cur==='Preloader' ? 'preloader' : 'normal';
gen.config.set('section',cur);
gen.copy('templates/sections/{{framework}}/'+type+'/index.js','lib/sections/{{section}}/'+name,done);
gen.copy('templates/sections/{{framework}}/'+type+'/style.css','lib/sections/{{section}}/style.{{css}}',done);
gen.copy('templates/sections/{{framework}}/'+type+'/template.hbs','lib/sections/{{section}}/template.hbs',done);
gen.copy('templates/.gitkeep','lib/ui/{{section}}/.gitkeep',done);
gen.copy('templates/sections/{{framework}}/'+type+'/index.js','src/sections/{{section}}/'+name,done);
gen.copy('templates/sections/{{framework}}/'+type+'/style.css','src/sections/{{section}}/style.{{css}}',done);
gen.copy('templates/sections/{{framework}}/'+type+'/template.hbs','src/sections/{{section}}/template.hbs',done);
gen.copy('templates/.gitkeep','src/ui/{{section}}/.gitkeep',done);
} else {

@@ -42,0 +42,0 @@ count += 3;

{
"name": "nyg-jam3",
"version": "1.1.3",
"version": "1.1.4",
"description": "Jam3 project scaffold generator based on nyg",

@@ -17,3 +17,3 @@ "main": "index.js",

"scripts": {
"test": "mkdir output && cd output && node ../index.js && cd ../"
"test": "node test/"
},

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

{
"development": {
"entry": "./lib/index.js",
"entry": "./src/index.js",
"bundle": "bundle.js",

@@ -8,7 +8,7 @@ "static": "./static/",

"output": "./build/",
"style": "./lib/style/main.{{css}}",
"style": "./src/style/main.{{css}}",
"ASSET_PATH": "./assets/"
},
"production": {
"entry": "./lib/index.js",
"entry": "./src/index.js",
"bundle": "bundle.js",

@@ -18,3 +18,3 @@ "static": "./static/",

"output": "./release/",
"style": "./lib/style/main.{{css}}",
"style": "./src/style/main.{{css}}",
"ASSET_PATH": "./assets/"

@@ -21,0 +21,0 @@ }

@@ -16,3 +16,3 @@ {

"dev": "node scripts/dev.js",
"release": "npm run release-style && npm run release-browserify && npm run release-copy && npm run release-gzip",
"release": "npm run release-clean && npm run release-style && npm run release-browserify && npm run release-copy && npm run release-gzip",
"release-style": "node scripts/style.js --env=production",

@@ -22,2 +22,3 @@ "release-browserify": "node scripts/release.js --env=production",

"release-gzip": "node scripts/gzip.js --env=production",
"release-clean": "node scripts/clean.js --env=production",
"lowercase": "node scripts/lowercase.js"

@@ -37,5 +38,7 @@ },

"budo": "^8.0.4",
"rimraf": "^2.5.2",
"envify": "^3.4.0",
"concat-stream": "^1.5.1",
"garnish": "^4.1.1",
"graceful-fs": "^4.1.3",
"glob": "^6.0.1",{{if css|equals>less}}

@@ -42,0 +45,0 @@ "less": "^2.5.3",

'use strict';
var config = require('../scripts/config');
var fs = require('fs');
var fs = require('graceful-fs');
var path = require('path');

@@ -5,0 +5,0 @@ var glob = require('glob');

'use strict';
var config = require('./config');
var glob = require('glob');
var fs = require('fs');
var fs = require('graceful-fs');
var path = require('path');

@@ -6,0 +6,0 @@ var zlib = require('zlib');

'use strict';
var config = require('./config');
var fs = require('fs');
var fs = require('graceful-fs');
var path = require('path');

@@ -5,0 +5,0 @@ var mkdirp = require('mkdirp');

'use strict';
var glob = require('glob');
var fs = require('fs');
var fs = require('graceful-fs');
var path = require('path');

@@ -5,0 +5,0 @@

'use strict';
var fs = require('fs');
var fs = require('graceful-fs');
var config = require('./config');

@@ -4,0 +4,0 @@ var mkdirp = require('mkdirp');

'use strict';
var config = require('./config');
var fs = require('fs');
var fs = require('graceful-fs');
var path = require('path');

@@ -5,0 +5,0 @@ var mkdirp = require('mkdirp');

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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