init-blueprint 0.0.13 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,22 @@
1
- How to make a blueprint
2
-
3
- 1. Use the lib from npm:
1
+ How to make a blueprint (Ex: init-blueprint)
2
+ 1. Change the name of the blueprint project in package.json file:
3
+ Ex: "name": "init-blueprint",
4
+ "bin": {
5
+ "init-blueprint": "create.js"
6
+ },
7
+ 2. Copy the template into BlueprintTemplate. The template include:
8
+ - Basic files
9
+ - Add gitignore file and change it from .gitignore=> gitignore file
10
+ 3. Add git to the blueprint, and change the root branch from master to main
11
+ - rm -rf .git
12
+ - Add git
13
+ - git branch -m master main
14
+ 4. Create new repo in git
15
+ - Add environment variables into the git repo: Project > Settings > CI/CD > Variables
16
+ + NPM_TOKEN: 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
17
+ + PACKAGE_NAME: init-blueprint
18
+ - push the blueprint to main branch
19
+ 5. Use the lib from npm:
4
20
  - npm uninstall -g netcore-blueprint
5
21
  - npm install -g netcore-blueprint
6
22
  - npm list -g netcore-blueprint
package/create.js CHANGED
@@ -50,6 +50,7 @@ fs.readdirSync(templatePath).forEach(item => {
50
50
  }
51
51
 
52
52
  console.log(`✅ Copying and renaming ${item}...`);
53
+ copyAndRenameFiles(srcPath, destPath, "__APP_NAME__", projectName);
53
54
  });
54
55
 
55
56
  console.log(`🎉 Project "${projectName}" created successfully at ${destinationPath}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "init-blueprint",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "A custom project blueprint",
5
5
  "main": "create.js",
6
6
  "bin": {