create-jqwidgets-angular-app
Advanced tools
Comparing version 0.2.78 to 0.3.0
30
index.js
#! /usr/bin/env node | ||
const shell = require('shelljs'); | ||
const replace = require("replace"); | ||
const replace = require('replace'); | ||
const fs = require('fs') | ||
const path = require('path'); | ||
let ncp = require('ncp').ncp; | ||
const ncp = require('ncp').ncp; | ||
ncp.limit = 16; | ||
const projectName = process.argv.slice(2); | ||
const projectName = process.argv[2]; | ||
const dir = './' + projectName; | ||
@@ -18,6 +18,6 @@ if (!fs.existsSync(dir)) { | ||
} | ||
const srcPath = path.join(path.dirname(process.argv[1]), '/node_modules/create-jqwidgets-angular-app'); | ||
const destPath = process.cwd() + '\\' + projectName; | ||
const srcPath = path.join(path.resolve(__dirname), 'node_modules', 'create-jqwidgets-angular-app');; | ||
const destPath = path.join(process.cwd(), projectName); | ||
ncp(srcPath, destPath, function (err) { | ||
@@ -28,6 +28,8 @@ if (err) { | ||
replace({ | ||
regex: "create-jqwidgets-angular-app", | ||
regex: 'create-jqwidgets-angular-app', | ||
replacement: projectName, | ||
paths: [ | ||
destPath + '\\.angular-cli.json', destPath + '\\e2e\\app.e2e-spec.ts', destPath + '\\package.json' | ||
path.join(destPath, '.angular-cli.json'), | ||
path.join(destPath, 'e2e//app.e2e-spec.ts'), | ||
path.join(destPath, 'package.json') | ||
], | ||
@@ -41,4 +43,2 @@ recursive: true, | ||
shell.exec('npm install'); | ||
}); | ||
}); |
{ | ||
"name": "create-jqwidgets-angular-app", | ||
"version": "0.2.78", | ||
"version": "0.3.0", | ||
"preferGlobal": true, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/jqwidgets/create-jqwidgets-angular-app.git" | ||
}, | ||
"bin": { | ||
@@ -9,2 +13,3 @@ "create-jqwidgets-angular-app": "./index.js" | ||
"dependencies": { | ||
"create-jqwidgets-angular-app": "https://github.com/jqwidgets/create-jqwidgets-angular-app/tarball/master", | ||
"ncp": "^2.0.0", | ||
@@ -11,0 +16,0 @@ "replace": "^0.3.0", |
HTTP dependency
Supply chain riskContains a dependency which resolves to a remote HTTP URL which could be used to inject untrusted code and reduce overall package reliability.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
2540
35
2
4
1