yummacss 3.22.3 → 3.22.4
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.mjs +1 -1
- 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.22.
|
|
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.22.4`;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={brand:`◪`,done:`✓`,error:`✕`,progress:`-`};function R(){process.stdout.isTTY&&process.stdout.write(`\x1B[2K\x1B[0G`)}function z(e,t,n=`stdout`){let r=` ${e} ${t}`;n===`stderr`?process.stderr.write(`${r}\n`):process.stdout.write(`${r}\n`)}function B(e){return z(L.progress,e),{succeed:e=>{R(),z(L.done,e)},fail:e=>{R(),z(L.error,e,`stderr`)},stop:()=>{R()}}}const V={header(e){process.stdout.write(`\n \x1b[1m${L.brand} Yumma CSS ${e}\x1b[22m\n\n`)},fail(e){z(L.error,e,`stderr`)},build:{start(){return B(`Extracting classes...`)},success(e,t){return`Done in ${e} ms. (${t})`},fail(e){return`Something went wrong. ${e instanceof Error?e.message:`Check your files & try again.`}`}},watch:{start(){return B(`Extracting classes...`)},success(e){return`Watching for changes. (${e})`},fail(){return`Something went wrong. Check your files & try again.`}},init:{start(){return B(`Initializing...`)},success(e){return`Created ${e}.`},fail(){return`Something went wrong. Check the docs & try again.`},notFound(){return`No config found. Run 'yummacss init' to create one.`},invalid(){return`Invalid config. Check the syntax & try again.`}}};async function H(){let n=u(l(process.cwd(),t)).href;try{let{default:t}=await import(n);return e.parse(t)}catch{i(t)||(V.fail(V.init.notFound()),process.exit(1)),V.fail(V.init.invalid()),process.exit(1)}}async function U(e,t=!1){let n=V.build.start(),r=Date.now();try{let i=e||await H(),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;if(!i.output)throw Error(`No output path specified in config.`);a(c(i.output),{recursive:!0}),s(i.output,u),n.succeed(V.build.success(Date.now()-r,i.output))}catch(e){n.fail(V.build.fail(e)),process.exit(1)}}function W(){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.22.
|
|
3
|
+
"version": "3.22.4",
|
|
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.22.
|
|
32
|
+
"@yummacss/nitro": "3.22.4"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"tinyglobby": "^0.2.15"
|