Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 473fe958
authored
Aug 13, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 隔离小程序开发态Node脚本
1 parent
e25de2ce
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
2 deletions
project.config.json
project.private.config.json
tests/migration-readiness/uploadExclusions.test.mjs
project.config.json
View file @
473fe95
...
@@ -175,7 +175,7 @@
...
@@ -175,7 +175,7 @@
"useCompilerPlugins"
:
[
"useCompilerPlugins"
:
[
"sass"
"sass"
],
],
"ignoreDevUnusedFiles"
:
false
,
"ignoreDevUnusedFiles"
:
true
,
"minifyWXML"
:
true
,
"minifyWXML"
:
true
,
"compileWorklet"
:
false
,
"compileWorklet"
:
false
,
"uglifyFileName"
:
false
,
"uglifyFileName"
:
false
,
...
...
project.private.config.json
View file @
473fe95
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
"urlCheck"
:
false
,
"urlCheck"
:
false
,
"coverView"
:
true
,
"coverView"
:
true
,
"showShadowRootInWxmlPanel"
:
true
,
"showShadowRootInWxmlPanel"
:
true
,
"ignoreDevUnusedFiles"
:
false
,
"ignoreDevUnusedFiles"
:
true
,
"lazyloadPlaceholderEnable"
:
false
,
"lazyloadPlaceholderEnable"
:
false
,
"skylineRenderEnable"
:
false
,
"skylineRenderEnable"
:
false
,
"preloadBackgroundData"
:
false
,
"preloadBackgroundData"
:
false
,
...
...
tests/migration-readiness/uploadExclusions.test.mjs
View file @
473fe95
...
@@ -13,3 +13,14 @@ test('upload configuration excludes migration docs, tests, and scripts', () => {
...
@@ -13,3 +13,14 @@ test('upload configuration excludes migration docs, tests, and scripts', () => {
assert.ok(ignored.has(directory), `${directory} must be excluded from upload`);
assert.ok(ignored.has(directory), `${directory} must be excluded from upload`);
}
}
});
});
test('development compilation excludes unreferenced Node-only scripts', () => {
for (const configFile of ['project.config.json', 'project.private.config.json']) {
const config = JSON.parse(readFileSync(path.join(projectRoot, configFile), 'utf8'));
assert.equal(
config.setting?.ignoreDevUnusedFiles,
true,
`${configFile} must not compile unreferenced Node-only test and script files`,
);
}
});
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment