create-bridge-app
Advanced tools
Comparing version 1.0.18 to 1.0.19
@@ -10,3 +10,3 @@ #!/usr/bin/env node | ||
const prettier_1 = __importDefault(require("prettier")); | ||
const code_1 = require("./code"); | ||
// import { indexFile, nodemonFile, gitIgnoreFile } from './code'; | ||
// import minimist from 'minimist'; | ||
@@ -41,9 +41,22 @@ // const argv = minimist(process.argv.slice(2)); | ||
onSuccess: () => { | ||
Promise.all([ | ||
(0, utils_1.writeFileAsync)(`${name}/index.ts`, prettier_1.default.format(code_1.indexFile, { parser: 'typescript' })), | ||
(0, utils_1.writeFileAsync)(`${name}/nodemon.json`, prettier_1.default.format(code_1.nodemonFile, { parser: 'json' })), | ||
(0, utils_1.writeFileAsync)(`${name}/.gitignore`, code_1.gitIgnoreFile), | ||
(0, utils_1.writeFileAsync)(`${name}/.env`, `PROJECT_NAME=${name}\nPORT=8080\nSERVER_URL=http://localhost:8080`), | ||
(0, utils_1.writeFileAsync)(`${name}/README.md`, `#${name}\n\nWelcome on ${name}, this is a Bridge project, visit https://bridge.codes to learn how to automatically generate a complete online documentation and a fully typed client code in any language.`), | ||
]); | ||
console.log('success'); | ||
// Promise.all([ | ||
// writeFileAsync( | ||
// `${name}/index.ts`, | ||
// prettier.format(indexFile, { parser: 'typescript' }), | ||
// ), | ||
// writeFileAsync( | ||
// `${name}/nodemon.json`, | ||
// prettier.format(nodemonFile, { parser: 'json' }), | ||
// ), | ||
// writeFileAsync(`${name}/.gitignore`, gitIgnoreFile), | ||
// writeFileAsync( | ||
// `${name}/.env`, | ||
// `PROJECT_NAME=${name}\nPORT=8080\nSERVER_URL=http://localhost:8080`, | ||
// ), | ||
// writeFileAsync( | ||
// `${name}/README.md`, | ||
// `#${name}\n\nWelcome on ${name}, this is a Bridge project, visit https://bridge.codes to learn how to automatically generate a complete online documentation and a fully typed client code in any language.`, | ||
// ), | ||
// ]); | ||
}, | ||
@@ -50,0 +63,0 @@ }); |
{ | ||
"name": "create-bridge-app", | ||
"version": "1.0.18", | ||
"version": "1.0.19", | ||
"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
9496
197