chaincss 2.1.25 → 2.1.27
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/dist/cli/index.js +10 -10
- package/dist/compiler/index.js +10 -10
- package/dist/core/constants.d.ts +2 -2
- package/dist/index.js +10 -10
- package/dist/plugins/vite.js +10 -10
- package/package.json +1 -1
- package/src/compiler/atomic-optimizer.ts +10 -10
- package/src/core/constants.ts +2 -2
package/dist/cli/index.js
CHANGED
|
@@ -933,13 +933,13 @@ var init_atomic_optimizer = __esm({
|
|
|
933
933
|
const data = JSON.parse(fs4.readFileSync(this.options.cachePath, "utf8"));
|
|
934
934
|
if (data.version !== "2.0.0") {
|
|
935
935
|
if (this.options.verbose) {
|
|
936
|
-
console.log("Cache version mismatch, rebuilding...");
|
|
936
|
+
if (this.options.verbose) console.log("Cache version mismatch, rebuilding...");
|
|
937
937
|
}
|
|
938
938
|
return;
|
|
939
939
|
}
|
|
940
940
|
if (data.config?.threshold !== this.options.threshold) {
|
|
941
941
|
if (this.options.verbose) {
|
|
942
|
-
console.log("Threshold changed, rebuilding cache...");
|
|
942
|
+
if (this.options.verbose) console.log("Threshold changed, rebuilding cache...");
|
|
943
943
|
}
|
|
944
944
|
return;
|
|
945
945
|
}
|
|
@@ -963,7 +963,7 @@ var init_atomic_optimizer = __esm({
|
|
|
963
963
|
}
|
|
964
964
|
} catch (err) {
|
|
965
965
|
if (this.options.verbose) {
|
|
966
|
-
console.log("Could not load cache:", err.message);
|
|
966
|
+
if (this.options.verbose) console.log("Could not load cache:", err.message);
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
969
|
}
|
|
@@ -998,7 +998,7 @@ var init_atomic_optimizer = __esm({
|
|
|
998
998
|
}
|
|
999
999
|
} catch (err) {
|
|
1000
1000
|
if (this.options.verbose) {
|
|
1001
|
-
console.log("Could not save cache:", err.message);
|
|
1001
|
+
if (this.options.verbose) console.log("Could not save cache:", err.message);
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
}
|
|
@@ -1053,7 +1053,7 @@ var init_atomic_optimizer = __esm({
|
|
|
1053
1053
|
}
|
|
1054
1054
|
} catch (e) {
|
|
1055
1055
|
if (this.options.verbose) {
|
|
1056
|
-
console.log("Failed to process style chain:", e);
|
|
1056
|
+
if (this.options.verbose) console.log("Failed to process style chain:", e);
|
|
1057
1057
|
}
|
|
1058
1058
|
}
|
|
1059
1059
|
}
|
|
@@ -1253,7 +1253,7 @@ ${rules}}
|
|
|
1253
1253
|
const componentClassName = `c-${cleanName}-${componentHash}`;
|
|
1254
1254
|
const selector = `.${componentClassName}`;
|
|
1255
1255
|
if (this.options.verbose) {
|
|
1256
|
-
console.log(`[AtomicOptimizer] Optimizing component: ${componentId} -> ${componentClassName}`);
|
|
1256
|
+
if (this.options.verbose) console.log(`[AtomicOptimizer] Optimizing component: ${componentId} -> ${componentClassName}`);
|
|
1257
1257
|
}
|
|
1258
1258
|
let classList = [componentClassName];
|
|
1259
1259
|
let localRules = "";
|
|
@@ -1276,14 +1276,14 @@ ${rules}}
|
|
|
1276
1276
|
this.atomicMap[`${prop}:${stringValue}`] = atomicClass;
|
|
1277
1277
|
this.stats.atomicStyles++;
|
|
1278
1278
|
if (this.options.verbose) {
|
|
1279
|
-
console.log(` [Atomic] ${kebabProp}: ${stringValue} -> .${atomicClass}`);
|
|
1279
|
+
if (this.options.verbose) console.log(` [Atomic] ${kebabProp}: ${stringValue} -> .${atomicClass}`);
|
|
1280
1280
|
}
|
|
1281
1281
|
} else {
|
|
1282
1282
|
localRules += ` ${kebabProp}: ${stringValue};
|
|
1283
1283
|
`;
|
|
1284
1284
|
this.stats.standardStyles++;
|
|
1285
1285
|
if (this.options.verbose) {
|
|
1286
|
-
console.log(` [Standard] ${kebabProp}: ${stringValue}`);
|
|
1286
|
+
if (this.options.verbose) console.log(` [Standard] ${kebabProp}: ${stringValue}`);
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
1289
1289
|
}
|
|
@@ -1355,7 +1355,7 @@ ${rules}}
|
|
|
1355
1355
|
cacheMisses: 0
|
|
1356
1356
|
};
|
|
1357
1357
|
if (this.options.verbose) {
|
|
1358
|
-
console.log("AtomicOptimizer reset");
|
|
1358
|
+
if (this.options.verbose) console.log("AtomicOptimizer reset");
|
|
1359
1359
|
}
|
|
1360
1360
|
}
|
|
1361
1361
|
getStats() {
|
|
@@ -1392,7 +1392,7 @@ ${rules}}
|
|
|
1392
1392
|
if (this.options.cache && fs4.existsSync(this.options.cachePath)) {
|
|
1393
1393
|
fs4.unlinkSync(this.options.cachePath);
|
|
1394
1394
|
if (this.options.verbose) {
|
|
1395
|
-
console.log("Cache cleared");
|
|
1395
|
+
if (this.options.verbose) console.log("Cache cleared");
|
|
1396
1396
|
}
|
|
1397
1397
|
}
|
|
1398
1398
|
}
|
package/dist/compiler/index.js
CHANGED
|
@@ -3507,13 +3507,13 @@ var AtomicOptimizer = class {
|
|
|
3507
3507
|
const data = JSON.parse(fs.readFileSync(this.options.cachePath, "utf8"));
|
|
3508
3508
|
if (data.version !== "2.0.0") {
|
|
3509
3509
|
if (this.options.verbose) {
|
|
3510
|
-
console.log("Cache version mismatch, rebuilding...");
|
|
3510
|
+
if (this.options.verbose) console.log("Cache version mismatch, rebuilding...");
|
|
3511
3511
|
}
|
|
3512
3512
|
return;
|
|
3513
3513
|
}
|
|
3514
3514
|
if (data.config?.threshold !== this.options.threshold) {
|
|
3515
3515
|
if (this.options.verbose) {
|
|
3516
|
-
console.log("Threshold changed, rebuilding cache...");
|
|
3516
|
+
if (this.options.verbose) console.log("Threshold changed, rebuilding cache...");
|
|
3517
3517
|
}
|
|
3518
3518
|
return;
|
|
3519
3519
|
}
|
|
@@ -3537,7 +3537,7 @@ var AtomicOptimizer = class {
|
|
|
3537
3537
|
}
|
|
3538
3538
|
} catch (err) {
|
|
3539
3539
|
if (this.options.verbose) {
|
|
3540
|
-
console.log("Could not load cache:", err.message);
|
|
3540
|
+
if (this.options.verbose) console.log("Could not load cache:", err.message);
|
|
3541
3541
|
}
|
|
3542
3542
|
}
|
|
3543
3543
|
}
|
|
@@ -3572,7 +3572,7 @@ var AtomicOptimizer = class {
|
|
|
3572
3572
|
}
|
|
3573
3573
|
} catch (err) {
|
|
3574
3574
|
if (this.options.verbose) {
|
|
3575
|
-
console.log("Could not save cache:", err.message);
|
|
3575
|
+
if (this.options.verbose) console.log("Could not save cache:", err.message);
|
|
3576
3576
|
}
|
|
3577
3577
|
}
|
|
3578
3578
|
}
|
|
@@ -3627,7 +3627,7 @@ var AtomicOptimizer = class {
|
|
|
3627
3627
|
}
|
|
3628
3628
|
} catch (e) {
|
|
3629
3629
|
if (this.options.verbose) {
|
|
3630
|
-
console.log("Failed to process style chain:", e);
|
|
3630
|
+
if (this.options.verbose) console.log("Failed to process style chain:", e);
|
|
3631
3631
|
}
|
|
3632
3632
|
}
|
|
3633
3633
|
}
|
|
@@ -3827,7 +3827,7 @@ ${rules}}
|
|
|
3827
3827
|
const componentClassName = `c-${cleanName}-${componentHash}`;
|
|
3828
3828
|
const selector = `.${componentClassName}`;
|
|
3829
3829
|
if (this.options.verbose) {
|
|
3830
|
-
console.log(`[AtomicOptimizer] Optimizing component: ${componentId} -> ${componentClassName}`);
|
|
3830
|
+
if (this.options.verbose) console.log(`[AtomicOptimizer] Optimizing component: ${componentId} -> ${componentClassName}`);
|
|
3831
3831
|
}
|
|
3832
3832
|
let classList = [componentClassName];
|
|
3833
3833
|
let localRules = "";
|
|
@@ -3850,14 +3850,14 @@ ${rules}}
|
|
|
3850
3850
|
this.atomicMap[`${prop}:${stringValue}`] = atomicClass;
|
|
3851
3851
|
this.stats.atomicStyles++;
|
|
3852
3852
|
if (this.options.verbose) {
|
|
3853
|
-
console.log(` [Atomic] ${kebabProp}: ${stringValue} -> .${atomicClass}`);
|
|
3853
|
+
if (this.options.verbose) console.log(` [Atomic] ${kebabProp}: ${stringValue} -> .${atomicClass}`);
|
|
3854
3854
|
}
|
|
3855
3855
|
} else {
|
|
3856
3856
|
localRules += ` ${kebabProp}: ${stringValue};
|
|
3857
3857
|
`;
|
|
3858
3858
|
this.stats.standardStyles++;
|
|
3859
3859
|
if (this.options.verbose) {
|
|
3860
|
-
console.log(` [Standard] ${kebabProp}: ${stringValue}`);
|
|
3860
|
+
if (this.options.verbose) console.log(` [Standard] ${kebabProp}: ${stringValue}`);
|
|
3861
3861
|
}
|
|
3862
3862
|
}
|
|
3863
3863
|
}
|
|
@@ -3929,7 +3929,7 @@ ${rules}}
|
|
|
3929
3929
|
cacheMisses: 0
|
|
3930
3930
|
};
|
|
3931
3931
|
if (this.options.verbose) {
|
|
3932
|
-
console.log("AtomicOptimizer reset");
|
|
3932
|
+
if (this.options.verbose) console.log("AtomicOptimizer reset");
|
|
3933
3933
|
}
|
|
3934
3934
|
}
|
|
3935
3935
|
getStats() {
|
|
@@ -3966,7 +3966,7 @@ ${rules}}
|
|
|
3966
3966
|
if (this.options.cache && fs.existsSync(this.options.cachePath)) {
|
|
3967
3967
|
fs.unlinkSync(this.options.cachePath);
|
|
3968
3968
|
if (this.options.verbose) {
|
|
3969
|
-
console.log("Cache cleared");
|
|
3969
|
+
if (this.options.verbose) console.log("Cache cleared");
|
|
3970
3970
|
}
|
|
3971
3971
|
}
|
|
3972
3972
|
}
|
package/dist/core/constants.d.ts
CHANGED
|
@@ -133,7 +133,7 @@ export declare const ENVIRONMENT_PRESETS: {
|
|
|
133
133
|
readonly atomic: {
|
|
134
134
|
readonly naming: NamingScheme;
|
|
135
135
|
readonly minify: false;
|
|
136
|
-
readonly verbose:
|
|
136
|
+
readonly verbose: false;
|
|
137
137
|
readonly cache: true;
|
|
138
138
|
};
|
|
139
139
|
readonly output: {
|
|
@@ -143,7 +143,7 @@ export declare const ENVIRONMENT_PRESETS: {
|
|
|
143
143
|
readonly debug: true;
|
|
144
144
|
readonly timeline: true;
|
|
145
145
|
readonly sourceComments: true;
|
|
146
|
-
readonly verbose:
|
|
146
|
+
readonly verbose: false;
|
|
147
147
|
};
|
|
148
148
|
readonly production: {
|
|
149
149
|
readonly atomic: {
|
package/dist/index.js
CHANGED
|
@@ -4498,13 +4498,13 @@ var AtomicOptimizer = class {
|
|
|
4498
4498
|
const data = JSON.parse(fs3.readFileSync(this.options.cachePath, "utf8"));
|
|
4499
4499
|
if (data.version !== "2.0.0") {
|
|
4500
4500
|
if (this.options.verbose) {
|
|
4501
|
-
console.log("Cache version mismatch, rebuilding...");
|
|
4501
|
+
if (this.options.verbose) console.log("Cache version mismatch, rebuilding...");
|
|
4502
4502
|
}
|
|
4503
4503
|
return;
|
|
4504
4504
|
}
|
|
4505
4505
|
if (data.config?.threshold !== this.options.threshold) {
|
|
4506
4506
|
if (this.options.verbose) {
|
|
4507
|
-
console.log("Threshold changed, rebuilding cache...");
|
|
4507
|
+
if (this.options.verbose) console.log("Threshold changed, rebuilding cache...");
|
|
4508
4508
|
}
|
|
4509
4509
|
return;
|
|
4510
4510
|
}
|
|
@@ -4528,7 +4528,7 @@ var AtomicOptimizer = class {
|
|
|
4528
4528
|
}
|
|
4529
4529
|
} catch (err) {
|
|
4530
4530
|
if (this.options.verbose) {
|
|
4531
|
-
console.log("Could not load cache:", err.message);
|
|
4531
|
+
if (this.options.verbose) console.log("Could not load cache:", err.message);
|
|
4532
4532
|
}
|
|
4533
4533
|
}
|
|
4534
4534
|
}
|
|
@@ -4563,7 +4563,7 @@ var AtomicOptimizer = class {
|
|
|
4563
4563
|
}
|
|
4564
4564
|
} catch (err) {
|
|
4565
4565
|
if (this.options.verbose) {
|
|
4566
|
-
console.log("Could not save cache:", err.message);
|
|
4566
|
+
if (this.options.verbose) console.log("Could not save cache:", err.message);
|
|
4567
4567
|
}
|
|
4568
4568
|
}
|
|
4569
4569
|
}
|
|
@@ -4618,7 +4618,7 @@ var AtomicOptimizer = class {
|
|
|
4618
4618
|
}
|
|
4619
4619
|
} catch (e) {
|
|
4620
4620
|
if (this.options.verbose) {
|
|
4621
|
-
console.log("Failed to process style chain:", e);
|
|
4621
|
+
if (this.options.verbose) console.log("Failed to process style chain:", e);
|
|
4622
4622
|
}
|
|
4623
4623
|
}
|
|
4624
4624
|
}
|
|
@@ -4818,7 +4818,7 @@ ${rules}}
|
|
|
4818
4818
|
const componentClassName = `c-${cleanName}-${componentHash}`;
|
|
4819
4819
|
const selector = `.${componentClassName}`;
|
|
4820
4820
|
if (this.options.verbose) {
|
|
4821
|
-
console.log(`[AtomicOptimizer] Optimizing component: ${componentId} -> ${componentClassName}`);
|
|
4821
|
+
if (this.options.verbose) console.log(`[AtomicOptimizer] Optimizing component: ${componentId} -> ${componentClassName}`);
|
|
4822
4822
|
}
|
|
4823
4823
|
let classList = [componentClassName];
|
|
4824
4824
|
let localRules = "";
|
|
@@ -4841,14 +4841,14 @@ ${rules}}
|
|
|
4841
4841
|
this.atomicMap[`${prop}:${stringValue}`] = atomicClass;
|
|
4842
4842
|
this.stats.atomicStyles++;
|
|
4843
4843
|
if (this.options.verbose) {
|
|
4844
|
-
console.log(` [Atomic] ${kebabProp}: ${stringValue} -> .${atomicClass}`);
|
|
4844
|
+
if (this.options.verbose) console.log(` [Atomic] ${kebabProp}: ${stringValue} -> .${atomicClass}`);
|
|
4845
4845
|
}
|
|
4846
4846
|
} else {
|
|
4847
4847
|
localRules += ` ${kebabProp}: ${stringValue};
|
|
4848
4848
|
`;
|
|
4849
4849
|
this.stats.standardStyles++;
|
|
4850
4850
|
if (this.options.verbose) {
|
|
4851
|
-
console.log(` [Standard] ${kebabProp}: ${stringValue}`);
|
|
4851
|
+
if (this.options.verbose) console.log(` [Standard] ${kebabProp}: ${stringValue}`);
|
|
4852
4852
|
}
|
|
4853
4853
|
}
|
|
4854
4854
|
}
|
|
@@ -4920,7 +4920,7 @@ ${rules}}
|
|
|
4920
4920
|
cacheMisses: 0
|
|
4921
4921
|
};
|
|
4922
4922
|
if (this.options.verbose) {
|
|
4923
|
-
console.log("AtomicOptimizer reset");
|
|
4923
|
+
if (this.options.verbose) console.log("AtomicOptimizer reset");
|
|
4924
4924
|
}
|
|
4925
4925
|
}
|
|
4926
4926
|
getStats() {
|
|
@@ -4957,7 +4957,7 @@ ${rules}}
|
|
|
4957
4957
|
if (this.options.cache && fs3.existsSync(this.options.cachePath)) {
|
|
4958
4958
|
fs3.unlinkSync(this.options.cachePath);
|
|
4959
4959
|
if (this.options.verbose) {
|
|
4960
|
-
console.log("Cache cleared");
|
|
4960
|
+
if (this.options.verbose) console.log("Cache cleared");
|
|
4961
4961
|
}
|
|
4962
4962
|
}
|
|
4963
4963
|
}
|
package/dist/plugins/vite.js
CHANGED
|
@@ -884,13 +884,13 @@ var AtomicOptimizer = class {
|
|
|
884
884
|
const data = JSON.parse(fs3.readFileSync(this.options.cachePath, "utf8"));
|
|
885
885
|
if (data.version !== "2.0.0") {
|
|
886
886
|
if (this.options.verbose) {
|
|
887
|
-
console.log("Cache version mismatch, rebuilding...");
|
|
887
|
+
if (this.options.verbose) console.log("Cache version mismatch, rebuilding...");
|
|
888
888
|
}
|
|
889
889
|
return;
|
|
890
890
|
}
|
|
891
891
|
if (data.config?.threshold !== this.options.threshold) {
|
|
892
892
|
if (this.options.verbose) {
|
|
893
|
-
console.log("Threshold changed, rebuilding cache...");
|
|
893
|
+
if (this.options.verbose) console.log("Threshold changed, rebuilding cache...");
|
|
894
894
|
}
|
|
895
895
|
return;
|
|
896
896
|
}
|
|
@@ -914,7 +914,7 @@ var AtomicOptimizer = class {
|
|
|
914
914
|
}
|
|
915
915
|
} catch (err) {
|
|
916
916
|
if (this.options.verbose) {
|
|
917
|
-
console.log("Could not load cache:", err.message);
|
|
917
|
+
if (this.options.verbose) console.log("Could not load cache:", err.message);
|
|
918
918
|
}
|
|
919
919
|
}
|
|
920
920
|
}
|
|
@@ -949,7 +949,7 @@ var AtomicOptimizer = class {
|
|
|
949
949
|
}
|
|
950
950
|
} catch (err) {
|
|
951
951
|
if (this.options.verbose) {
|
|
952
|
-
console.log("Could not save cache:", err.message);
|
|
952
|
+
if (this.options.verbose) console.log("Could not save cache:", err.message);
|
|
953
953
|
}
|
|
954
954
|
}
|
|
955
955
|
}
|
|
@@ -1004,7 +1004,7 @@ var AtomicOptimizer = class {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
} catch (e) {
|
|
1006
1006
|
if (this.options.verbose) {
|
|
1007
|
-
console.log("Failed to process style chain:", e);
|
|
1007
|
+
if (this.options.verbose) console.log("Failed to process style chain:", e);
|
|
1008
1008
|
}
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
@@ -1204,7 +1204,7 @@ ${rules}}
|
|
|
1204
1204
|
const componentClassName = `c-${cleanName}-${componentHash}`;
|
|
1205
1205
|
const selector = `.${componentClassName}`;
|
|
1206
1206
|
if (this.options.verbose) {
|
|
1207
|
-
console.log(`[AtomicOptimizer] Optimizing component: ${componentId} -> ${componentClassName}`);
|
|
1207
|
+
if (this.options.verbose) console.log(`[AtomicOptimizer] Optimizing component: ${componentId} -> ${componentClassName}`);
|
|
1208
1208
|
}
|
|
1209
1209
|
let classList = [componentClassName];
|
|
1210
1210
|
let localRules = "";
|
|
@@ -1227,14 +1227,14 @@ ${rules}}
|
|
|
1227
1227
|
this.atomicMap[`${prop}:${stringValue}`] = atomicClass;
|
|
1228
1228
|
this.stats.atomicStyles++;
|
|
1229
1229
|
if (this.options.verbose) {
|
|
1230
|
-
console.log(` [Atomic] ${kebabProp}: ${stringValue} -> .${atomicClass}`);
|
|
1230
|
+
if (this.options.verbose) console.log(` [Atomic] ${kebabProp}: ${stringValue} -> .${atomicClass}`);
|
|
1231
1231
|
}
|
|
1232
1232
|
} else {
|
|
1233
1233
|
localRules += ` ${kebabProp}: ${stringValue};
|
|
1234
1234
|
`;
|
|
1235
1235
|
this.stats.standardStyles++;
|
|
1236
1236
|
if (this.options.verbose) {
|
|
1237
|
-
console.log(` [Standard] ${kebabProp}: ${stringValue}`);
|
|
1237
|
+
if (this.options.verbose) console.log(` [Standard] ${kebabProp}: ${stringValue}`);
|
|
1238
1238
|
}
|
|
1239
1239
|
}
|
|
1240
1240
|
}
|
|
@@ -1306,7 +1306,7 @@ ${rules}}
|
|
|
1306
1306
|
cacheMisses: 0
|
|
1307
1307
|
};
|
|
1308
1308
|
if (this.options.verbose) {
|
|
1309
|
-
console.log("AtomicOptimizer reset");
|
|
1309
|
+
if (this.options.verbose) console.log("AtomicOptimizer reset");
|
|
1310
1310
|
}
|
|
1311
1311
|
}
|
|
1312
1312
|
getStats() {
|
|
@@ -1343,7 +1343,7 @@ ${rules}}
|
|
|
1343
1343
|
if (this.options.cache && fs3.existsSync(this.options.cachePath)) {
|
|
1344
1344
|
fs3.unlinkSync(this.options.cachePath);
|
|
1345
1345
|
if (this.options.verbose) {
|
|
1346
|
-
console.log("Cache cleared");
|
|
1346
|
+
if (this.options.verbose) console.log("Cache cleared");
|
|
1347
1347
|
}
|
|
1348
1348
|
}
|
|
1349
1349
|
}
|
package/package.json
CHANGED
|
@@ -172,14 +172,14 @@ export class AtomicOptimizer {
|
|
|
172
172
|
|
|
173
173
|
if (data.version !== '2.0.0') {
|
|
174
174
|
if (this.options.verbose) {
|
|
175
|
-
console.log('Cache version mismatch, rebuilding...');
|
|
175
|
+
if (this.options.verbose) console.log('Cache version mismatch, rebuilding...');
|
|
176
176
|
}
|
|
177
177
|
return;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
if (data.config?.threshold !== this.options.threshold) {
|
|
181
181
|
if (this.options.verbose) {
|
|
182
|
-
console.log('Threshold changed, rebuilding cache...');
|
|
182
|
+
if (this.options.verbose) console.log('Threshold changed, rebuilding cache...');
|
|
183
183
|
}
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
@@ -210,7 +210,7 @@ export class AtomicOptimizer {
|
|
|
210
210
|
|
|
211
211
|
} catch (err) {
|
|
212
212
|
if (this.options.verbose) {
|
|
213
|
-
console.log('Could not load cache:', (err as Error).message);
|
|
213
|
+
if (this.options.verbose) console.log('Could not load cache:', (err as Error).message);
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
}
|
|
@@ -250,7 +250,7 @@ export class AtomicOptimizer {
|
|
|
250
250
|
}
|
|
251
251
|
} catch (err) {
|
|
252
252
|
if (this.options.verbose) {
|
|
253
|
-
console.log('Could not save cache:', (err as Error).message);
|
|
253
|
+
if (this.options.verbose) console.log('Could not save cache:', (err as Error).message);
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
}
|
|
@@ -321,7 +321,7 @@ export class AtomicOptimizer {
|
|
|
321
321
|
} catch (e) {
|
|
322
322
|
// Silent fail for malformed chains
|
|
323
323
|
if (this.options.verbose) {
|
|
324
|
-
console.log('Failed to process style chain:', e);
|
|
324
|
+
if (this.options.verbose) console.log('Failed to process style chain:', e);
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
}
|
|
@@ -590,7 +590,7 @@ export class AtomicOptimizer {
|
|
|
590
590
|
const selector = `.${componentClassName}`;
|
|
591
591
|
|
|
592
592
|
if (this.options.verbose) {
|
|
593
|
-
console.log(`[AtomicOptimizer] Optimizing component: ${componentId} -> ${componentClassName}`);
|
|
593
|
+
if (this.options.verbose) console.log(`[AtomicOptimizer] Optimizing component: ${componentId} -> ${componentClassName}`);
|
|
594
594
|
}
|
|
595
595
|
|
|
596
596
|
let classList: string[] = [componentClassName];
|
|
@@ -629,7 +629,7 @@ export class AtomicOptimizer {
|
|
|
629
629
|
this.stats.atomicStyles++;
|
|
630
630
|
|
|
631
631
|
if (this.options.verbose) {
|
|
632
|
-
console.log(` [Atomic] ${kebabProp}: ${stringValue} -> .${atomicClass}`);
|
|
632
|
+
if (this.options.verbose) console.log(` [Atomic] ${kebabProp}: ${stringValue} -> .${atomicClass}`);
|
|
633
633
|
}
|
|
634
634
|
} else {
|
|
635
635
|
// It stays local to the component
|
|
@@ -637,7 +637,7 @@ export class AtomicOptimizer {
|
|
|
637
637
|
this.stats.standardStyles++;
|
|
638
638
|
|
|
639
639
|
if (this.options.verbose) {
|
|
640
|
-
console.log(` [Standard] ${kebabProp}: ${stringValue}`);
|
|
640
|
+
if (this.options.verbose) console.log(` [Standard] ${kebabProp}: ${stringValue}`);
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
}
|
|
@@ -724,7 +724,7 @@ export class AtomicOptimizer {
|
|
|
724
724
|
};
|
|
725
725
|
|
|
726
726
|
if (this.options.verbose) {
|
|
727
|
-
console.log('AtomicOptimizer reset');
|
|
727
|
+
if (this.options.verbose) console.log('AtomicOptimizer reset');
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
730
|
|
|
@@ -769,7 +769,7 @@ export class AtomicOptimizer {
|
|
|
769
769
|
if (this.options.cache && fs.existsSync(this.options.cachePath)) {
|
|
770
770
|
fs.unlinkSync(this.options.cachePath);
|
|
771
771
|
if (this.options.verbose) {
|
|
772
|
-
console.log('Cache cleared');
|
|
772
|
+
if (this.options.verbose) console.log('Cache cleared');
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
775
|
}
|
package/src/core/constants.ts
CHANGED
|
@@ -255,7 +255,7 @@ export const ENVIRONMENT_PRESETS = {
|
|
|
255
255
|
atomic: {
|
|
256
256
|
naming: 'readable' as NamingScheme,
|
|
257
257
|
minify: false,
|
|
258
|
-
verbose:
|
|
258
|
+
verbose: false,
|
|
259
259
|
cache: true
|
|
260
260
|
},
|
|
261
261
|
output: {
|
|
@@ -265,7 +265,7 @@ export const ENVIRONMENT_PRESETS = {
|
|
|
265
265
|
debug: true,
|
|
266
266
|
timeline: true,
|
|
267
267
|
sourceComments: true,
|
|
268
|
-
verbose:
|
|
268
|
+
verbose: false
|
|
269
269
|
},
|
|
270
270
|
production: {
|
|
271
271
|
atomic: {
|