create-golden 1.4.7 → 1.4.9
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.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -10,7 +10,7 @@ const os = require('os');
|
|
|
10
10
|
const GITHUB_REPO = 'kuidream/golden-base-specs';
|
|
11
11
|
const GITHUB_BRANCH = 'main';
|
|
12
12
|
const GITHUB_API_URL = `https://api.github.com/repos/${GITHUB_REPO}/zipball/${GITHUB_BRANCH}`;
|
|
13
|
-
const EXCLUDE_DIRS = ['node_modules', 'dist', '.ray', '.DS_Store'];
|
|
13
|
+
const EXCLUDE_DIRS = ['node_modules', 'dist', '.ray', '.DS_Store', 'VI spec'];
|
|
14
14
|
const TOKEN_FILE = path.join(os.homedir(), '.create-golden-token');
|
|
15
15
|
|
|
16
16
|
async function downloadFile(url, dest, token) {
|
|
@@ -141,7 +141,7 @@ function saveToken(token) {
|
|
|
141
141
|
|
|
142
142
|
function updateGitignore(projectRoot) {
|
|
143
143
|
const gitignorePath = path.join(projectRoot, '.gitignore');
|
|
144
|
-
const ignoreRules = ['.cursorrules', '代码规范.md', 'AGENTS.md', '组件和功能速查地图.md', 'src/pages/demo'];
|
|
144
|
+
const ignoreRules = ['.cursorrules', '代码规范.md', 'AGENTS.md', '组件和功能速查地图.md', 'src/pages/demo' ];
|
|
145
145
|
|
|
146
146
|
try {
|
|
147
147
|
let gitignoreContent = '';
|