@bresleveloper/starter
v1.0.6
Published
clones any git repo and renames all occurrences to new project name
Readme
Bresleveloper AI Starter
see at npm https://www.npmjs.com/package/@bresleveloper/starter
Commands
bresleveloper new
bresleveloper new <projectName> - dups https://github.com/bresleveloper/Starter-.NET-4.8-NG-18 and changes all files and dirs to new projectName
bresleveloper dup
bresleveloper dup <projectName> <repoUrl> - dups any repository (git clone <repoUrl>) and renames all occurrences of the repoURL param to new projectName param
this is a generic use of the bresleveloper new
bresleveloper drill
bresleveloper drill <modelName> [optional] -p
- Must run inside NG project folder
- Must have
\models\<my-class>.model.tsfile - Run as
bresleveloper drill <my-class>, without.model.ts -pfor print in terminal only, not creating files, useful in you have not created project template with my template
added working drill with local dir
-l will search file at local working dir like this bresleveloper drill -p -l myThing will search at CWD for myThing.model.ts
will create the following:
- matching
.csin\Models\<className>.cs - matching web-api-controller in
\Controllers\<className>Controller.csasSimpleController<className> - matching
.sqlin\Models\scripts\<className>.sqlforCREATE TABLEscript - make the proj props of the .Net to make default page
http://localhost:4200
debug
- To make this tool globally available (on your machine for testing), you can link it (just run->)
npm link - when you are done run
npm unlink bresleveloper-starter
other commands
- If you want to make cli.js executable directly ->
#!/usr/bin/env node ng g class models/big-item --type=model --skip-tests
upload
- git push all (must have clean repo)
npm version patch(will auto up version)npm publish --access public
after git push
# examples how each command pushes a versionnpm version patch # 1.0.2 -> 1.0.3 npm version minor # 1.0.0 -> 1.1.0 npm version major # 1.0.0 -> 2.0.0
npm publish --access public
troubleshooting
npm error need auth This command requires you to be logged in to https://registry.npmjs.org/
npm error need auth You need to authorize this machine using `npm adduser`run npm login
