yummacss 3.21.1 → 3.21.2

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.
Files changed (2) hide show
  1. package/dist/cli.mjs +1 -1
  2. package/package.json +2 -2
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{ConfigSchema as e,configName as t,extractor as n,generator as r}from"@yummacss/nitro";import{existsSync as i,mkdirSync as a,watch as o,writeFileSync as s}from"node:fs";import{dirname as c,join as l}from"node:path";import{pathToFileURL as u}from"node:url";import*as d from"fs";import f from"fs";import p,{basename as m,dirname as h,normalize as g,posix as _,relative as v,resolve as y,sep as b}from"path";import{fileURLToPath as x}from"url";import{createRequire as S}from"module";var C=Object.create,w=Object.defineProperty,T=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,D=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty,k=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),A=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=E(t),a=0,o=i.length,s;a<o;a++)s=i[a],!O.call(e,s)&&s!==n&&w(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=T(t,s))||r.enumerable});return e},ee=(e,t,n)=>(n=e==null?{}:C(D(e)),A(t||!e||!e.__esModule?w(n,`default`,{value:e,enumerable:!0}):n,e)),j=`3.21.1`;let M={};function N(){return M}function P(e){M=e}function F(e){let t=JSON.stringify(e);return M.configHash!==t}async function I(e){return{css:r(await n(e.source),e),dependencies:e.source}}const L={build:{start:`Build the styles...`,success:(e,t)=>`Built the styles in ${e} ms. (${t})`,fail:`Something went wrong—check the files and try again.`},init:{fail:`Something went wrong—try again or check the documentation.`,invalid:`Your configuration is invalid. Check the syntax and try again.`,notFound:`Your configuration was not found. Initialize a new one with the 'init' command.`,success:`Created the configuration.`},watch:{start:`Watch for file changes...`,fail:`Something went wrong—try again or check the documentation.`},common:{unknownError:`Something went wrong—try again or contact support.`}},R=`[Yumma CSS]`;function z(){process.stdout.isTTY&&process.stdout.write(`\x1B[2K\x1B[0G`)}const B={fail:e=>console.error(`${R} Error: ${e}`),info:e=>console.info(`${R} Info: ${e}`),progress:e=>(console.log(`${R}: ${e}`),{succeed:t=>{z(),console.log(`${R} Done: ${t||e}`)},fail:t=>{z(),console.error(`${R} Error: ${t||e}`)},warn:t=>{z(),console.warn(`${R} Warn: ${t||e}`)},info:t=>{z(),console.info(`${R} Info: ${t||e}`)},stop:()=>{z()}}),success:e=>console.log(`${R} Done: ${e}`),warn:e=>console.warn(`${R} Warn: ${e}`)};async function V(){let n=u(l(process.cwd(),t)).href;try{let{default:t}=await import(n);return e.parse(t)}catch{i(t)||(B.progress(L.init.notFound).fail(L.init.notFound),process.exit(1)),B.progress(L.init.invalid).fail(L.init.invalid),process.exit(1)}}async function H(e,t=!1){let n=B.progress(L.build.start),r=Date.now();try{let i=e||await V(),o=N(),l=F(i),u;if(t||l||!o.css){let e=await I(i);u=e.css,P({configHash:JSON.stringify(i),css:e.css,dependencies:e.dependencies})}else u=o.css;a(c(i.output),{recursive:!0}),s(i.output,u),n.succeed(L.build.success(Date.now()-r,i.output))}catch(e){n.fail(`${L.build.fail} ${e instanceof Error?e.message:String(e)}`),process.exit(1)}}function U(){return{filename:t,content:`import { defineConfig } from "yummacss";
2
+ import{ConfigSchema as e,configName as t,extractor as n,generator as r}from"@yummacss/nitro";import{existsSync as i,mkdirSync as a,watch as o,writeFileSync as s}from"node:fs";import{dirname as c,join as l}from"node:path";import{pathToFileURL as u}from"node:url";import*as d from"fs";import f from"fs";import p,{basename as m,dirname as h,normalize as g,posix as _,relative as v,resolve as y,sep as b}from"path";import{fileURLToPath as x}from"url";import{createRequire as S}from"module";var C=Object.create,w=Object.defineProperty,T=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,D=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty,k=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),A=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=E(t),a=0,o=i.length,s;a<o;a++)s=i[a],!O.call(e,s)&&s!==n&&w(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=T(t,s))||r.enumerable});return e},ee=(e,t,n)=>(n=e==null?{}:C(D(e)),A(t||!e||!e.__esModule?w(n,`default`,{value:e,enumerable:!0}):n,e)),j=`3.21.2`;let M={};function N(){return M}function P(e){M=e}function F(e){let t=JSON.stringify(e);return M.configHash!==t}async function I(e){return{css:r(await n(e.source),e),dependencies:e.source}}const L={build:{start:`Build the styles...`,success:(e,t)=>`Built the styles in ${e} ms. (${t})`,fail:`Something went wrong—check the files and try again.`},init:{fail:`Something went wrong—try again or check the documentation.`,invalid:`Your configuration is invalid. Check the syntax and try again.`,notFound:`Your configuration was not found. Initialize a new one with the 'init' command.`,success:`Created the configuration.`},watch:{start:`Watch for file changes...`,fail:`Something went wrong—try again or check the documentation.`},common:{unknownError:`Something went wrong—try again or contact support.`}},R=`[Yumma CSS]`;function z(){process.stdout.isTTY&&process.stdout.write(`\x1B[2K\x1B[0G`)}const B={fail:e=>console.error(`${R} Error: ${e}`),info:e=>console.info(`${R} Info: ${e}`),progress:e=>(console.log(`${R}: ${e}`),{succeed:t=>{z(),console.log(`${R} Done: ${t||e}`)},fail:t=>{z(),console.error(`${R} Error: ${t||e}`)},warn:t=>{z(),console.warn(`${R} Warn: ${t||e}`)},info:t=>{z(),console.info(`${R} Info: ${t||e}`)},stop:()=>{z()}}),success:e=>console.log(`${R} Done: ${e}`),warn:e=>console.warn(`${R} Warn: ${e}`)};async function V(){let n=u(l(process.cwd(),t)).href;try{let{default:t}=await import(n);return e.parse(t)}catch{i(t)||(B.progress(L.init.notFound).fail(L.init.notFound),process.exit(1)),B.progress(L.init.invalid).fail(L.init.invalid),process.exit(1)}}async function H(e,t=!1){let n=B.progress(L.build.start),r=Date.now();try{let i=e||await V(),o=N(),l=F(i),u;if(t||l||!o.css){let e=await I(i);u=e.css,P({configHash:JSON.stringify(i),css:e.css,dependencies:e.dependencies})}else u=o.css;a(c(i.output),{recursive:!0}),s(i.output,u),n.succeed(L.build.success(Date.now()-r,i.output))}catch(e){n.fail(`${L.build.fail} ${e instanceof Error?e.message:String(e)}`),process.exit(1)}}function U(){return{filename:t,content:`import { defineConfig } from "yummacss";
3
3
 
4
4
  export default defineConfig({
5
5
  source: [""],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yummacss",
3
- "version": "3.21.1",
3
+ "version": "3.21.2",
4
4
  "description": "An atomic CSS framework with abbreviated class names.",
5
5
  "keywords": [
6
6
  "css-framework",
@@ -29,7 +29,7 @@
29
29
  "dist"
30
30
  ],
31
31
  "dependencies": {
32
- "@yummacss/nitro": "3.21.1"
32
+ "@yummacss/nitro": "3.21.2"
33
33
  },
34
34
  "devDependencies": {
35
35
  "tinyglobby": "^0.2.15"