@master/css 2.0.0-rc.14 → 2.0.0-rc.15
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/bin/index.bundle.js +1 -33
- package/dist/bin/index.d.ts +1 -11
- package/package.json +1 -1
package/dist/bin/index.bundle.js
CHANGED
|
@@ -1,33 +1 @@
|
|
|
1
|
-
|
|
2
|
-
"use strict";var l=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var f=l((q,h)=>{h.exports=`/** @type {import('@master/css').Config} */
|
|
3
|
-
export default {
|
|
4
|
-
styles: {},
|
|
5
|
-
rules: {},
|
|
6
|
-
variables: {},
|
|
7
|
-
semantics: {},
|
|
8
|
-
mediaQueries: {},
|
|
9
|
-
animations: {},
|
|
10
|
-
selectors: {},
|
|
11
|
-
functions: {}
|
|
12
|
-
}`});var d=l((w,C)=>{C.exports=`import type { Config } from '@master/css'
|
|
13
|
-
|
|
14
|
-
export default {
|
|
15
|
-
styles: {},
|
|
16
|
-
rules: {},
|
|
17
|
-
variables: {},
|
|
18
|
-
semantics: {},
|
|
19
|
-
mediaQueries: {},
|
|
20
|
-
animations: {},
|
|
21
|
-
selectors: {},
|
|
22
|
-
functions: {}
|
|
23
|
-
} as Config`});var y=l((E,T)=>{T.exports=`/** @type {import('@master/css').Config} */
|
|
24
|
-
module.exports = {
|
|
25
|
-
styles: {},
|
|
26
|
-
rules: {},
|
|
27
|
-
variables: {},
|
|
28
|
-
semantics: {},
|
|
29
|
-
mediaQueries: {},
|
|
30
|
-
animations: {},
|
|
31
|
-
selectors: {},
|
|
32
|
-
functions: {}
|
|
33
|
-
}`});var{Command:v}=require("commander"),S=require("path"),r=require("fs"),n=require("@techor/log"),{readJSONFileSync:g}=require("@techor/fs"),p=g(S.resolve(__dirname,"../../package.json")),i=new v,x=f(),j=d(),_=y();i.name(p.name).description(p.description).version(p.version||"0.0.0");i.command("init").description("Initialize definition files for Master CSS").option("-o, --override","Override existing definition file").option("--esm","ES Module .mjs").option("--ts","TypeScript .ts").option("--cjs","CommonJS .js").action(async function(t){let{esm:e,ts:s,cjs:a}=t;if(!e&&!s&&!a)if(r.existsSync("tsconfig.json"))s=!0;else{let{type:o}=g("./package.json")||{};o==="module"?e=!0:a=!0}let c=(o,u)=>{let m=r.existsSync(S.join(process.cwd(),o));m?m&&t.override?(r.writeFileSync(o,u),n.ok`**${o}** file is overridden`):n.x`**${o}** file already exists`:(r.writeFileSync(o,u),n.ok`**${o}** file is created`)};e&&c("master.css.mjs",x),s&&c("master.css.ts",j),a&&c("master.css.js",_)});i.command("render").description("Scans HTML and injects generated CSS rules").argument("<source paths>","The path in glob patterns of the source of the HTML file").option("-c --config <path>","The source path of the Master CSS configuration","master.css.*").option("-a --analyze","Analyze injected CSS and HTML size ( brotli ) without writing to file").action(async function(t,e){try{await require("@master/css-renderer/actions/main")(t,e)}catch(s){s.code==="ERR_MODULE_NOT_FOUND"?n.i`Please run **npm** **install** **@master/css-renderer** first`:console.error(s)}});i.command("extract").argument("[source paths]","The glob pattern path to extract sources").option("-w, --watch","Watch file changed and generate CSS rules.").option("-o, --output <path>","Specify your CSS file output path").option("-v, --verbose <level>","Verbose logging 0~N","1").option("--no-export","Print only CSS results.").option("--options <path>","Specify your extractor options sources","master.css-extractor.*").action(async function(t,e){try{await require("@master/css-extractor/actions/main")(t,e)}catch(s){s.code==="ERR_MODULE_NOT_FOUND"?n.i`Please run **npm** **install** **@master/css-extractor** first`:console.error(s)}});i.parse();
|
|
1
|
+
"use strict";var r=require("child_process");try{(0,r.execSync)("mastercss",{stdio:"inherit"})}catch{console.error('Command not found. Try installing "@master/css-cli" first.')}
|
package/dist/bin/index.d.ts
CHANGED
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
declare const Command: any;
|
|
3
|
-
declare const path: any;
|
|
4
|
-
declare const fs: any;
|
|
5
|
-
declare const log: any;
|
|
6
|
-
declare const readJSONFileSync: any;
|
|
7
|
-
declare const pkg: any;
|
|
8
|
-
declare const program: any;
|
|
9
|
-
declare const CONFIG_ESM_TEXT: any;
|
|
10
|
-
declare const CONFIG_TS_TEXT: any;
|
|
11
|
-
declare const CONFIG_TEXT: any;
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@master/css","scripts":{"build":"techor pack --declare
|
|
1
|
+
{"name":"@master/css","scripts":{"build":"techor pack --declare","dev":"pnpm run build --watch","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"license":"MIT","description":"The CSS language and framework for rapidly building modern and high-performance websites","author":"Aoyue Design LLC.","funding":"https://css.master.co/docs/donate","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/css"},"keywords":["style","styles","html","variants","virtual","virtual-css","utility","css","ui","lightweight","class","webpack","plugin","integration","vite","parcel","build-tools","mastercss"],"sideEffects":false,"main":"./dist/index.bundle.js","jsnext:main":"./dist/index.bundle.mjs","esnext":"./dist/index.bundle.mjs","module":"./dist/index.bundle.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.bundle.js","import":"./dist/index.bundle.mjs","types":"./dist/index.d.ts"}},"bin":"./dist/bin/index.bundle.js","files":["dist"],"publishConfig":{"access":"public"},"dependencies":{"@master/normal.css":"^2.0.0-rc.15"},"devDependencies":{"@techor/extend":"^2.6.5","css-shared":"^2.0.0-rc.15","csstype":"^3.1.2"},"version":"2.0.0-rc.15"}
|