@kithinji/pod 1.0.7 → 1.0.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/dist/main.js +13 -7
- package/dist/main.js.map +2 -2
- package/dist/types/plugins/css/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/main.ts +1 -1
- package/src/plugins/css/index.ts +13 -6
package/dist/main.js
CHANGED
|
@@ -2881,18 +2881,24 @@ function stylePlugin(store) {
|
|
|
2881
2881
|
const allRules = styleRules.flat();
|
|
2882
2882
|
const uniqueRules = [...new Set(allRules)];
|
|
2883
2883
|
const cssOutput = uniqueRules.join("\n");
|
|
2884
|
-
|
|
2885
|
-
"public/index.css",
|
|
2886
|
-
`html {
|
|
2884
|
+
let output = `html {
|
|
2887
2885
|
box-sizing: border-box;
|
|
2888
2886
|
}
|
|
2889
2887
|
|
|
2890
2888
|
*, *::before, *::after {
|
|
2891
2889
|
box-sizing: inherit;
|
|
2892
2890
|
}
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2891
|
+
|
|
2892
|
+
body {
|
|
2893
|
+
margin: 0;
|
|
2894
|
+
display: flex;
|
|
2895
|
+
place-items: center;
|
|
2896
|
+
min-width: 320px;
|
|
2897
|
+
min-height: 100vh;
|
|
2898
|
+
}
|
|
2899
|
+
|
|
2900
|
+
${cssOutput}`;
|
|
2901
|
+
fs4.writeFileSync("public/index.css", output);
|
|
2896
2902
|
});
|
|
2897
2903
|
}
|
|
2898
2904
|
};
|
|
@@ -4502,7 +4508,7 @@ function printNextSteps(projectName, env, services) {
|
|
|
4502
4508
|
|
|
4503
4509
|
// src/main.ts
|
|
4504
4510
|
var program = new Command();
|
|
4505
|
-
program.name("pod").description("Pod cli tool").version("1.0.
|
|
4511
|
+
program.name("pod").description("Pod cli tool").version("1.0.9");
|
|
4506
4512
|
program.command("new <name>").description("Start a new Pod Project").action(async (name) => {
|
|
4507
4513
|
await addNew(name);
|
|
4508
4514
|
const appDir = path13.resolve(process.cwd(), name);
|