@pandacss/node 0.0.0-dev-20221126124930 → 0.0.0-dev-20221126165718

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/index.js CHANGED
@@ -1555,6 +1555,16 @@ function scaffoldCompleteMessage() {
1555
1555
  `\u{1F43C} ${pickRandom(randomWords)}! \u2728`
1556
1556
  );
1557
1557
  }
1558
+ function watchMessage() {
1559
+ return import_outdent23.outdent`
1560
+ Watching for file changes...
1561
+ `;
1562
+ }
1563
+ function buildCompleteMessage(ctx) {
1564
+ return import_outdent23.outdent`
1565
+ Successfully extracted CSS from ${ctx.files.length} file(s) ✨
1566
+ `;
1567
+ }
1558
1568
 
1559
1569
  // src/artifacts.ts
1560
1570
  async function emitArtifacts(ctx) {
@@ -2061,6 +2071,9 @@ async function execCommand(cmd, cwd) {
2061
2071
  }
2062
2072
  }
2063
2073
 
2074
+ // src/generate.ts
2075
+ var import_logger8 = require("@pandacss/logger");
2076
+
2064
2077
  // src/watch.ts
2065
2078
  var import_logger7 = require("@pandacss/logger");
2066
2079
  var import_chokidar = __toESM(require("chokidar"));
@@ -2142,6 +2155,7 @@ process.on("uncaughtException", (err) => {
2142
2155
  async function generate5(config, configPath) {
2143
2156
  const ctx = await loadConfigAndCreateContext({ config, configPath });
2144
2157
  await emitAndExtract(ctx);
2158
+ import_logger8.logger.info(buildCompleteMessage(ctx));
2145
2159
  if (ctx.watch) {
2146
2160
  process.stdin.on("end", () => process.exit());
2147
2161
  await watch(ctx, {
@@ -2155,11 +2169,12 @@ async function generate5(config, configPath) {
2155
2169
  return writeFileChunk(ctx, file);
2156
2170
  }
2157
2171
  });
2172
+ import_logger8.logger.info(watchMessage());
2158
2173
  }
2159
2174
  }
2160
2175
 
2161
2176
  // src/scaffold.ts
2162
- var import_logger8 = require("@pandacss/logger");
2177
+ var import_logger9 = require("@pandacss/logger");
2163
2178
  var import_fs_extra4 = require("fs-extra");
2164
2179
  var import_look_it_up3 = require("look-it-up");
2165
2180
  var import_outdent24 = require("outdent");
@@ -2172,9 +2187,9 @@ async function setupConfig(cwd, { force }) {
2172
2187
  const cmd = pm === "npm" ? "npm run" : pm;
2173
2188
  const isTs = (0, import_look_it_up3.lookItUpSync)("tsconfig.json", cwd);
2174
2189
  const file = isTs ? "panda.config.ts" : "panda.config.mjs";
2175
- import_logger8.logger.info({ type: "init", msg: `creating panda config file: ${(0, import_logger8.quote)(file)}` });
2190
+ import_logger9.logger.info({ type: "init", msg: `creating panda config file: ${(0, import_logger9.quote)(file)}` });
2176
2191
  if (!force && configFile) {
2177
- import_logger8.logger.warn("config exists", configExistsMessage(cmd));
2192
+ import_logger9.logger.warn("config exists", configExistsMessage(cmd));
2178
2193
  } else {
2179
2194
  const content = import_outdent24.outdent`
2180
2195
  import { defineConfig } from "css-panda"
@@ -2197,11 +2212,11 @@ async function setupConfig(cwd, { force }) {
2197
2212
  })
2198
2213
  `;
2199
2214
  await (0, import_fs_extra4.writeFile)((0, import_path7.join)(cwd, file), content);
2200
- import_logger8.logger.log(thankYouMessage());
2215
+ import_logger9.logger.log(thankYouMessage());
2201
2216
  }
2202
2217
  }
2203
2218
  async function setupPostcss(cwd) {
2204
- import_logger8.logger.info({ type: "init", msg: `creating postcss config file: ${(0, import_logger8.quote)("postcss.config.cjs")}` });
2219
+ import_logger9.logger.info({ type: "init", msg: `creating postcss config file: ${(0, import_logger9.quote)("postcss.config.cjs")}` });
2205
2220
  const content = import_outdent24.outdent`
2206
2221
  module.exports = {
2207
2222
  plugins: {
package/dist/index.mjs CHANGED
@@ -1510,6 +1510,16 @@ function scaffoldCompleteMessage() {
1510
1510
  `\u{1F43C} ${pickRandom(randomWords)}! \u2728`
1511
1511
  );
1512
1512
  }
1513
+ function watchMessage() {
1514
+ return outdent23`
1515
+ Watching for file changes...
1516
+ `;
1517
+ }
1518
+ function buildCompleteMessage(ctx) {
1519
+ return outdent23`
1520
+ Successfully extracted CSS from ${ctx.files.length} file(s) ✨
1521
+ `;
1522
+ }
1513
1523
 
1514
1524
  // src/artifacts.ts
1515
1525
  async function emitArtifacts(ctx) {
@@ -2022,6 +2032,9 @@ async function execCommand(cmd, cwd) {
2022
2032
  }
2023
2033
  }
2024
2034
 
2035
+ // src/generate.ts
2036
+ import { logger as logger8 } from "@pandacss/logger";
2037
+
2025
2038
  // src/watch.ts
2026
2039
  import { logger as logger7 } from "@pandacss/logger";
2027
2040
  import chokidar from "chokidar";
@@ -2103,6 +2116,7 @@ process.on("uncaughtException", (err) => {
2103
2116
  async function generate5(config, configPath) {
2104
2117
  const ctx = await loadConfigAndCreateContext({ config, configPath });
2105
2118
  await emitAndExtract(ctx);
2119
+ logger8.info(buildCompleteMessage(ctx));
2106
2120
  if (ctx.watch) {
2107
2121
  process.stdin.on("end", () => process.exit());
2108
2122
  await watch(ctx, {
@@ -2116,11 +2130,12 @@ async function generate5(config, configPath) {
2116
2130
  return writeFileChunk(ctx, file);
2117
2131
  }
2118
2132
  });
2133
+ logger8.info(watchMessage());
2119
2134
  }
2120
2135
  }
2121
2136
 
2122
2137
  // src/scaffold.ts
2123
- import { logger as logger8, quote as quote3 } from "@pandacss/logger";
2138
+ import { logger as logger9, quote as quote3 } from "@pandacss/logger";
2124
2139
  import { writeFile as writeFile2 } from "fs-extra";
2125
2140
  import { lookItUpSync as lookItUpSync3 } from "look-it-up";
2126
2141
  import { outdent as outdent24 } from "outdent";
@@ -2133,9 +2148,9 @@ async function setupConfig(cwd, { force }) {
2133
2148
  const cmd = pm === "npm" ? "npm run" : pm;
2134
2149
  const isTs = lookItUpSync3("tsconfig.json", cwd);
2135
2150
  const file = isTs ? "panda.config.ts" : "panda.config.mjs";
2136
- logger8.info({ type: "init", msg: `creating panda config file: ${quote3(file)}` });
2151
+ logger9.info({ type: "init", msg: `creating panda config file: ${quote3(file)}` });
2137
2152
  if (!force && configFile) {
2138
- logger8.warn("config exists", configExistsMessage(cmd));
2153
+ logger9.warn("config exists", configExistsMessage(cmd));
2139
2154
  } else {
2140
2155
  const content = outdent24`
2141
2156
  import { defineConfig } from "css-panda"
@@ -2158,11 +2173,11 @@ async function setupConfig(cwd, { force }) {
2158
2173
  })
2159
2174
  `;
2160
2175
  await writeFile2(join4(cwd, file), content);
2161
- logger8.log(thankYouMessage());
2176
+ logger9.log(thankYouMessage());
2162
2177
  }
2163
2178
  }
2164
2179
  async function setupPostcss(cwd) {
2165
- logger8.info({ type: "init", msg: `creating postcss config file: ${quote3("postcss.config.cjs")}` });
2180
+ logger9.info({ type: "init", msg: `creating postcss config file: ${quote3("postcss.config.cjs")}` });
2166
2181
  const content = outdent24`
2167
2182
  module.exports = {
2168
2183
  plugins: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/node",
3
- "version": "0.0.0-dev-20221126124930",
3
+ "version": "0.0.0-dev-20221126165718",
4
4
  "description": "The core css panda library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -30,15 +30,15 @@
30
30
  "telejson": "6.0.8",
31
31
  "ts-pattern": "4.0.6",
32
32
  "ts-morph": "17.0.1",
33
- "@pandacss/types": "0.0.0-dev-20221126124930",
34
- "@pandacss/is-valid-prop": "0.0.0-dev-20221126124930",
35
- "@pandacss/error": "0.0.0-dev-20221126124930",
36
- "@pandacss/parser": "0.0.0-dev-20221126124930",
37
- "@pandacss/shared": "0.0.0-dev-20221126124930",
38
- "@pandacss/token-dictionary": "0.0.0-dev-20221126124930",
39
- "@pandacss/logger": "0.0.0-dev-20221126124930",
40
- "@pandacss/core": "0.0.0-dev-20221126124930",
41
- "@pandacss/config": "0.0.0-dev-20221126124930"
33
+ "@pandacss/types": "0.0.0-dev-20221126165718",
34
+ "@pandacss/is-valid-prop": "0.0.0-dev-20221126165718",
35
+ "@pandacss/error": "0.0.0-dev-20221126165718",
36
+ "@pandacss/parser": "0.0.0-dev-20221126165718",
37
+ "@pandacss/shared": "0.0.0-dev-20221126165718",
38
+ "@pandacss/token-dictionary": "0.0.0-dev-20221126165718",
39
+ "@pandacss/logger": "0.0.0-dev-20221126165718",
40
+ "@pandacss/core": "0.0.0-dev-20221126165718",
41
+ "@pandacss/config": "0.0.0-dev-20221126165718"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/fs-extra": "9.0.13",
@@ -46,7 +46,7 @@
46
46
  "@types/glob-parent": "^5.1.1",
47
47
  "@types/pluralize": "0.0.29",
48
48
  "@types/lodash.merge": "4.6.7",
49
- "@pandacss/fixture": "0.0.0-dev-20221126124930"
49
+ "@pandacss/fixture": "0.0.0-dev-20221126165718"
50
50
  },
51
51
  "scripts": {
52
52
  "build": "tsup src/index.ts --format=cjs,esm --shims --dts",