odoro 0.1.5 → 0.2.0
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/{build-I27VUYCK.js → build-3SPCMZXZ.js} +1 -1
- package/dist/{chunk-RSKKKNAM.js → chunk-HCU53TIK.js} +3 -1
- package/dist/cli.js +2 -2
- package/dist/index.js +1 -1
- package/dist/{package-N4PY2QRI.js → package-RDYY6ULW.js} +1 -1
- package/package.json +1 -1
- package/templates/react-ts/README.md +4 -3
|
@@ -240,7 +240,9 @@ function outputsForEntry(result, entry, outDir, root) {
|
|
|
240
240
|
return { script: void 0, styles: [] };
|
|
241
241
|
}
|
|
242
242
|
async function taillerFeuilles(result, config, html) {
|
|
243
|
-
const produits = Object.keys(result.metafile.outputs).map(
|
|
243
|
+
const produits = Object.keys(result.metafile.outputs).map(
|
|
244
|
+
(f) => resolve(config.root, f)
|
|
245
|
+
);
|
|
244
246
|
const feuilles = produits.filter((f) => f.endsWith(".css"));
|
|
245
247
|
if (feuilles.length === 0) return;
|
|
246
248
|
const sources = [html];
|
package/dist/cli.js
CHANGED
|
@@ -130,7 +130,7 @@ function rootFrom(flags, positional) {
|
|
|
130
130
|
async function run(argv) {
|
|
131
131
|
const { command, positional, flags } = parseArgs(argv);
|
|
132
132
|
if (flags["version"] === true) {
|
|
133
|
-
const manifest = await import('./package-
|
|
133
|
+
const manifest = await import('./package-RDYY6ULW.js');
|
|
134
134
|
console.log(manifest.default.version);
|
|
135
135
|
return 0;
|
|
136
136
|
}
|
|
@@ -160,7 +160,7 @@ async function run(argv) {
|
|
|
160
160
|
return new Promise(() => void 0);
|
|
161
161
|
}
|
|
162
162
|
case "build": {
|
|
163
|
-
const { buildProject, reportBuild } = await import('./build-
|
|
163
|
+
const { buildProject, reportBuild } = await import('./build-3SPCMZXZ.js');
|
|
164
164
|
const config = await loadConfig(rootFrom(flags, positional), overridesFrom(flags));
|
|
165
165
|
const output = await buildProject(config);
|
|
166
166
|
reportBuild(output, process.cwd());
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
export { defineConfig, loadConfig } from './chunk-Q35CGY2Z.js';
|
|
3
3
|
import './chunk-T6RLHSCW.js';
|
|
4
|
-
export { buildProject, reportBuild } from './chunk-
|
|
4
|
+
export { buildProject, reportBuild } from './chunk-HCU53TIK.js';
|
|
5
5
|
export { ModuleGraph, depFileName, detectSelfAccepting, optimizeDeps, scanDependencies, startDevServer } from './chunk-G5QXVBYT.js';
|
|
6
6
|
export { startPreviewServer } from './chunk-2YDI5NKV.js';
|
|
7
7
|
import './chunk-JMEHF3KN.js';
|
package/package.json
CHANGED
|
@@ -37,9 +37,10 @@ composants de la librairie, sans toucher a leur code.
|
|
|
37
37
|
Une seule feuille de style : `@odoro-cli/libs/styles.css`, a importer une fois
|
|
38
38
|
a la racine de l'application.
|
|
39
39
|
|
|
40
|
-
Elle
|
|
41
|
-
|
|
42
|
-
emploie
|
|
40
|
+
Elle ne contient que le socle — variables, preflight, animations. Les
|
|
41
|
+
utilitaires sont produits a la compilation, pour les seules classes que votre
|
|
42
|
+
code emploie : quelques dizaines de kilooctets en pratique, et toute la palette
|
|
43
|
+
disponible sans que rien ne pese.
|
|
43
44
|
|
|
44
45
|
## Rechargement a chaud
|
|
45
46
|
|