-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: updating installation config to use the flags for tests and git…
…hub actions
- Loading branch information
1 parent
734e53b
commit 6b6c47f
Showing
5 changed files
with
41 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ const argv = yargs(hideBin(process.argv)) | |
'"simba [options]" (if you it installed globally) or only "simba -q" if you want to be asked for the options one by one' | ||
) | ||
.example( | ||
"simba -N 'Project Name' -D 'Project description' -a Anthony -e [email protected]" | ||
"simba -N 'Project Name' -D 'Project description' -a Anthony -e [email protected] -l mit -F --tests --ghat" | ||
) | ||
.alias('N', 'projectName') | ||
.nargs('N', 1) | ||
|
@@ -74,8 +74,8 @@ const argv = yargs(hideBin(process.argv)) | |
q: false, | ||
F: false, | ||
g: false, | ||
t: true, | ||
ghat: true | ||
t: false, | ||
ghat: false | ||
}) | ||
.boolean(['H', 'n', 'q', 'F', 'g', 't']) | ||
.help('h') | ||
|
@@ -319,9 +319,9 @@ const main = async () => { | |
if (!argv.mainFile) console.log('Using src/index.ts as default main file') | ||
else config.mainFile = argv.mainFile | ||
|
||
if (!argv.tests) config.tests = false | ||
if (argv.tests) config.tests = true | ||
|
||
if (!argv.ghat) config.ghat = false | ||
if (argv.ghat) config.ghat = true | ||
|
||
if (!config.tests && argv.ghat) | ||
return console.log( | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,8 @@ | |
"release": "standard-version", | ||
"test": "if [ ! -d \"example\" ]; then npm run build; fi && npm run test-fastify", | ||
"build": "npm run rm && npm run build-express && npm run build-fastify && npm run build-express-graphql && npm run build-fastify-graphql", | ||
"build-express": "npm run rm-express && npm run cd-mv-example && node -r dotenv/config ./bin -N example/express -D 'This is a test using express' -a AnthonyLzq -e [email protected] -l mit -H && npm run rm-git-express", | ||
"build-fastify": "npm run rm-fastify && npm run cd-mv-example && node -r dotenv/config ./bin -N example/fastify -D 'This is a test using fastify' -a AnthonyLzq -e [email protected] -l mit -H -F && npm run rm-git-fastify", | ||
"build-express": "npm run rm-express && npm run cd-mv-example && node -r dotenv/config ./bin -N example/express -D 'This is a test using express' -a AnthonyLzq -e [email protected] -l mit -H --tests --ghat && npm run rm-git-express", | ||
"build-fastify": "npm run rm-fastify && npm run cd-mv-example && node -r dotenv/config ./bin -N example/fastify -D 'This is a test using fastify' -a AnthonyLzq -e [email protected] -l mit -H -F --tests --ghat && npm run rm-git-fastify", | ||
"build-express-graphql": "npm run rm-express-graphql && npm run cd-mv-example && node -r dotenv/config ./bin -N example/express-graphql -D 'This is a test using express with GraphQL' -a AnthonyLzq -e [email protected] -l mit -H -g && npm run rm-git-express-graphql", | ||
"build-fastify-graphql": "npm run rm-fastify-graphql && npm run cd-mv-example && node -r dotenv/config ./bin -N example/fastify-graphql -D 'This is a test using fastify with GraphQL' -a AnthonyLzq -e [email protected] -l mit -H -F -g && npm run rm-git-fastify-graphql", | ||
"lint": "eslint --ext js lib/ --fix", | ||
|
@@ -23,7 +23,7 @@ | |
"rm-git-fastify": "if [ -d \"example/fastify/.git\" ]; then rm -rf example/fastify/.git; fi", | ||
"rm-git-express-graphql": "if [ -d \"example/express-graphql/.git\" ]; then rm -rf example/express-graphql/.git; fi", | ||
"rm-git-fastify-graphql": "if [ -d \"example/fastify-graphql/.git\" ]; then rm -rf example/fastify-graphql/.git; fi", | ||
"test-fastify": "if [ -d \"example/express-graphql\" ]; then npm run test:local --prefix example/fastify; fi", | ||
"test-fastify": "if [ -d \"example/fastify\" ]; then npm run test:local --prefix example/fastify; fi", | ||
"cd-mv-example": "if [ ! -d \"example\" ]; then mkdir example && cd example; fi", | ||
"version": "npm run release && git add CHANGELOG.md" | ||
}, | ||
|