create-jqwidgets-angular-app
Advanced tools
Comparing version 0.3.2 to 0.3.3
18
index.js
#! /usr/bin/env node | ||
const shell = require('shelljs'); | ||
@@ -11,17 +11,17 @@ const replace = require('replace'); | ||
const projectName = process.argv[2]; | ||
const dir = './' + projectName; | ||
if (!fs.existsSync(dir)) { | ||
fs.mkdirSync(dir); | ||
fs.mkdirSync(dir); | ||
} else { | ||
return console.error('Directory Alredy Exist!'); | ||
} | ||
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) { | ||
if (err) { | ||
return console.error(err); | ||
} | ||
} | ||
replace({ | ||
@@ -31,5 +31,5 @@ regex: 'create-jqwidgets-angular-app', | ||
paths: [ | ||
path.join(destPath, '.angular-cli.json'), | ||
path.join(destPath, 'e2e//app.e2e-spec.ts'), | ||
path.join(destPath, 'package.json') | ||
path.join(destPath, 'angular.json'), | ||
path.join(destPath, 'e2e//src//app.e2e-spec.ts'), | ||
path.join(destPath, 'package.json') | ||
], | ||
@@ -36,0 +36,0 @@ recursive: true, |
{ | ||
"name": "create-jqwidgets-angular-app", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"preferGlobal": true, | ||
@@ -5,0 +5,0 @@ "repository": { |
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
2496