create-fastkit-app
Advanced tools
Comparing version 0.2.5 to 0.2.6
@@ -39,2 +39,3 @@ 'use strict'; | ||
'yorkie', | ||
'npm-run-all', | ||
'@types/jest', | ||
@@ -217,6 +218,15 @@ '@types/node', | ||
const _stylelintExtensions = stylelintExtensions.join(','); | ||
const apps = []; | ||
const { backend, frontend } = config.packages; | ||
backend && apps.push(backend); | ||
frontend && apps.push(frontend); | ||
const devs = apps.map(({ dirName }) => `dev:${dirName}`); | ||
const builds = apps.map(({ dirName }) => `build:${dirName}`); | ||
const pkgJson = { | ||
name: config.name, | ||
version: '1.0.0', | ||
license: config.license, | ||
scripts: { | ||
dev: `run-p ${devs.join(' ')}`, | ||
build: `run-p ${builds.join(' ')}`, | ||
eslint: `eslint . --ext ${_eslintExtensions}`, | ||
@@ -241,2 +251,8 @@ 'eslint:fix': `eslint . --ext ${_eslintExtensions} --fix`, | ||
}; | ||
apps.forEach(({ dirName }) => { | ||
pkgJson.scripts[`dev:${dirName}`] = `cd packages/${dirName} && npm run dev`; | ||
}); | ||
apps.forEach(({ dirName }) => { | ||
pkgJson.scripts[`build:${dirName}`] = `cd packages/${dirName} && npm run build`; | ||
}); | ||
await fs__default.writeJSON(path__default.join(config.dest, 'package.json'), pkgJson, { | ||
@@ -281,2 +297,3 @@ spaces: 2, | ||
}, | ||
license: 'UNLICENSED', | ||
}; | ||
@@ -312,2 +329,12 @@ const allDependencies = []; | ||
type: 'input', | ||
name: 'license', | ||
message: 'Please enter the type of license.', | ||
initial: appConfig.license, | ||
onCancel, | ||
}).then((res) => { | ||
const license = res.license.trim(); | ||
appConfig.license = license || appConfig.license; | ||
}); | ||
await enquirer.prompt({ | ||
type: 'input', | ||
name: 'nodeVersion', | ||
@@ -314,0 +341,0 @@ message: 'Specify the Node version to use for the entire workspace.', |
@@ -39,2 +39,3 @@ 'use strict'; | ||
'yorkie', | ||
'npm-run-all', | ||
'@types/jest', | ||
@@ -217,6 +218,15 @@ '@types/node', | ||
const _stylelintExtensions = stylelintExtensions.join(','); | ||
const apps = []; | ||
const { backend, frontend } = config.packages; | ||
backend && apps.push(backend); | ||
frontend && apps.push(frontend); | ||
const devs = apps.map(({ dirName }) => `dev:${dirName}`); | ||
const builds = apps.map(({ dirName }) => `build:${dirName}`); | ||
const pkgJson = { | ||
name: config.name, | ||
version: '1.0.0', | ||
license: config.license, | ||
scripts: { | ||
dev: `run-p ${devs.join(' ')}`, | ||
build: `run-p ${builds.join(' ')}`, | ||
eslint: `eslint . --ext ${_eslintExtensions}`, | ||
@@ -241,2 +251,8 @@ 'eslint:fix': `eslint . --ext ${_eslintExtensions} --fix`, | ||
}; | ||
apps.forEach(({ dirName }) => { | ||
pkgJson.scripts[`dev:${dirName}`] = `cd packages/${dirName} && npm run dev`; | ||
}); | ||
apps.forEach(({ dirName }) => { | ||
pkgJson.scripts[`build:${dirName}`] = `cd packages/${dirName} && npm run build`; | ||
}); | ||
await fs__default.writeJSON(path__default.join(config.dest, 'package.json'), pkgJson, { | ||
@@ -281,2 +297,3 @@ spaces: 2, | ||
}, | ||
license: 'UNLICENSED', | ||
}; | ||
@@ -312,2 +329,12 @@ const allDependencies = []; | ||
type: 'input', | ||
name: 'license', | ||
message: 'Please enter the type of license.', | ||
initial: appConfig.license, | ||
onCancel, | ||
}).then((res) => { | ||
const license = res.license.trim(); | ||
appConfig.license = license || appConfig.license; | ||
}); | ||
await enquirer.prompt({ | ||
type: 'input', | ||
name: 'nodeVersion', | ||
@@ -314,0 +341,0 @@ message: 'Specify the Node version to use for the entire workspace.', |
@@ -35,2 +35,3 @@ export declare const BASE_STYLES: { | ||
overwrite?: boolean; | ||
license: string; | ||
} | ||
@@ -37,0 +38,0 @@ |
@@ -29,2 +29,3 @@ import path from 'path'; | ||
'yorkie', | ||
'npm-run-all', | ||
'@types/jest', | ||
@@ -207,6 +208,15 @@ '@types/node', | ||
const _stylelintExtensions = stylelintExtensions.join(','); | ||
const apps = []; | ||
const { backend, frontend } = config.packages; | ||
backend && apps.push(backend); | ||
frontend && apps.push(frontend); | ||
const devs = apps.map(({ dirName }) => `dev:${dirName}`); | ||
const builds = apps.map(({ dirName }) => `build:${dirName}`); | ||
const pkgJson = { | ||
name: config.name, | ||
version: '1.0.0', | ||
license: config.license, | ||
scripts: { | ||
dev: `run-p ${devs.join(' ')}`, | ||
build: `run-p ${builds.join(' ')}`, | ||
eslint: `eslint . --ext ${_eslintExtensions}`, | ||
@@ -231,2 +241,8 @@ 'eslint:fix': `eslint . --ext ${_eslintExtensions} --fix`, | ||
}; | ||
apps.forEach(({ dirName }) => { | ||
pkgJson.scripts[`dev:${dirName}`] = `cd packages/${dirName} && npm run dev`; | ||
}); | ||
apps.forEach(({ dirName }) => { | ||
pkgJson.scripts[`build:${dirName}`] = `cd packages/${dirName} && npm run build`; | ||
}); | ||
await fs.writeJSON(path.join(config.dest, 'package.json'), pkgJson, { | ||
@@ -271,2 +287,3 @@ spaces: 2, | ||
}, | ||
license: 'UNLICENSED', | ||
}; | ||
@@ -302,2 +319,12 @@ const allDependencies = []; | ||
type: 'input', | ||
name: 'license', | ||
message: 'Please enter the type of license.', | ||
initial: appConfig.license, | ||
onCancel, | ||
}).then((res) => { | ||
const license = res.license.trim(); | ||
appConfig.license = license || appConfig.license; | ||
}); | ||
await prompt$1({ | ||
type: 'input', | ||
name: 'nodeVersion', | ||
@@ -304,0 +331,0 @@ message: 'Specify the Node version to use for the entire workspace.', |
{ | ||
"name": "create-fastkit-app", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "create-fastkit-app", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,2 +7,3 @@ { | ||
"@typescript-eslint/parser": "^4.28.2", | ||
"npm-run-all": "^4.1.5", | ||
"esbuild-register": "^2.6.0", | ||
@@ -9,0 +10,0 @@ "eslint": "^7.30.0", |
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
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
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
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
275089
174
1760