create-bridge-app
Advanced tools
Comparing version 1.0.25 to 1.0.26
@@ -16,2 +16,5 @@ #!/usr/bin/env node | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/* eslint-disable import/no-extraneous-dependencies */ | ||
const utils_1 = require("./utils"); | ||
const prettier_1 = __importDefault(require("prettier")); | ||
// import { indexFile, nodemonFile, gitIgnoreFile } from './code'; | ||
@@ -29,3 +32,16 @@ // import minimist from 'minimist'; | ||
console.log(`Downloading dependencies... OK`); | ||
yield exec(`mkdir ${name} && cd ${name} && npx tsc --init --outDir dist`); | ||
yield exec(`mkdir ${name}`); | ||
yield (0, utils_1.writeFileAsync)(`${name}/package.json`, prettier_1.default.format(`{ | ||
"name": "${name | ||
.toLowerCase() | ||
.normalize('NFD') | ||
.replace(/[^a-zA-Z0-9]/g, '')}", | ||
"version": "1.0.0", | ||
"scripts": { | ||
"start": "node ./dist/index.js", | ||
"dev": "nodemon --config nodemon.json ./index.ts", | ||
"build": "tsc" | ||
} | ||
}`, { parser: 'json' })); | ||
yield exec(`cd ${name} && npm i bridge express zod dotenv && npm i --save-dev @types/express @types/node typescript ts-node nodemon && npx tsc --init --outDir dist`); | ||
// runCommand({ | ||
@@ -32,0 +48,0 @@ // command: `mkdir ${name} & cd ${name} & npx tsc --init --outDir dist`, |
{ | ||
"name": "create-bridge-app", | ||
"version": "1.0.25", | ||
"version": "1.0.26", | ||
"description": "Create Bridge-powered Express app with one command", | ||
@@ -5,0 +5,0 @@ "author": "Bridge Team <support@bridge.codes>", |
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
10902
232