A custom project blueprint
npm install init-blueprintHow to make a blueprint (Ex: init-blueprint)
1. Change the name of the blueprint project in package.json file:
Ex: "name": "init-blueprint",
"bin": {
"init-blueprint": "create.js"
},
2. Copy the template into BlueprintTemplate. The template include:
- Basic files
- Add gitignore file and change it from .gitignore=> gitignore file
3. Add git to the blueprint, and change the root branch from master to main
- rm -rf .git
- Add git
- git branch -m master main
4. Create new repo in git
- Add environment variables into the git repo: Project > Settings > CI/CD > Variables
+ NPM_TOKEN: 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
+ PACKAGE_NAME: init-blueprint
- push the blueprint to main branch
5. Use the lib from npm:
- npm uninstall -g init-blueprint
- npm install -g init-blueprint
- npm list -g init-blueprint
- init-blueprint netcore-blueprint