qcobjectsnewapp 2.5.13-ts → 2.5.15-ts
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/VERSION +1 -1
- package/package.json +6 -5
- package/public/js/config.js +2 -2
- package/public/js/config.js.map +2 -2
- package/public/js/customWidgets.js +2 -2
- package/public/js/customWidgets.js.map +2 -2
- package/public/js/init.js +8 -8
- package/public/js/init.js.map +2 -2
- package/public/js/packages/com.qcobjects.installer.js +2 -2
- package/public/js/packages/com.qcobjects.installer.js.map +2 -2
- package/public/js/packages/com.qcobjects.services.github.js +2 -2
- package/public/js/packages/com.qcobjects.services.github.js.map +2 -2
- package/public/js/packages/com.qcobjects.services.newapp.js +2 -2
- package/public/js/packages/com.qcobjects.services.newapp.js.map +2 -2
- package/public/js/packages/org.quickcorp.custom.components.js +7 -7
- package/public/js/packages/org.quickcorp.custom.components.js.map +3 -3
- package/public/js/packages/org.quickcorp.custom.controllers.js +2 -2
- package/public/js/packages/org.quickcorp.custom.controllers.js.map +2 -2
- package/public/js/packages/org.quickcorp.custom.effects.js +2 -2
- package/public/js/packages/org.quickcorp.custom.effects.js.map +2 -2
- package/public/js/packages/org.quickcorp.custom.js +9 -9
- package/public/js/packages/org.quickcorp.custom.js.map +2 -2
- package/public/js/packages/org.quickcorp.custom.models.js +2 -2
- package/public/js/packages/org.quickcorp.custom.models.js.map +2 -2
- package/public/js/packages/org.quickcorp.custom.views.js +2 -2
- package/public/js/packages/org.quickcorp.custom.views.js.map +2 -2
- package/scripts/clean-stale-templates.js +36 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/*
|
|
3
|
+
publish:static copies build/ into public/ but never deletes, so a template that
|
|
4
|
+
was renamed or removed from src/ survives in build/ and is republished on every
|
|
5
|
+
subsequent build. Renaming card-image.svg through placeholder.svg and
|
|
6
|
+
svg-component.svg left both names in public/templates/components/ forever.
|
|
7
|
+
|
|
8
|
+
Usage: node scripts/clean-stale-templates.js <dir> [<dir> ...]
|
|
9
|
+
|
|
10
|
+
Pass the DESTINATION of the copy that is about to run, never its source:
|
|
11
|
+
build:static src/ -> build/ clean build/templates
|
|
12
|
+
publish:static build/ -> public/ clean public/templates
|
|
13
|
+
|
|
14
|
+
Cleaning a source instead would delete the files the copy is meant to publish,
|
|
15
|
+
and the build would silently ship no templates at all.
|
|
16
|
+
*/
|
|
17
|
+
const fs = require('node:fs');
|
|
18
|
+
|
|
19
|
+
const targets = process.argv.slice(2);
|
|
20
|
+
|
|
21
|
+
if (targets.length === 0) {
|
|
22
|
+
console.error('usage: node scripts/clean-stale-templates.js <dir> [<dir> ...]');
|
|
23
|
+
process.exit(1);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
let removed = 0;
|
|
27
|
+
|
|
28
|
+
for (const target of targets) {
|
|
29
|
+
if (!fs.existsSync(target)) {
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
fs.rmSync(target, { recursive: true, force: true });
|
|
33
|
+
removed += 1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
console.log('stale template dirs removed:', removed);
|