@master/css
Advanced tools
Comparing version 2.0.0-rc.14 to 2.0.0-rc.15
@@ -1,33 +0,1 @@ | ||
#!/usr/bin/env node | ||
"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} */ | ||
export default { | ||
styles: {}, | ||
rules: {}, | ||
variables: {}, | ||
semantics: {}, | ||
mediaQueries: {}, | ||
animations: {}, | ||
selectors: {}, | ||
functions: {} | ||
}`});var d=l((w,C)=>{C.exports=`import type { Config } from '@master/css' | ||
export default { | ||
styles: {}, | ||
rules: {}, | ||
variables: {}, | ||
semantics: {}, | ||
mediaQueries: {}, | ||
animations: {}, | ||
selectors: {}, | ||
functions: {} | ||
} as Config`});var y=l((E,T)=>{T.exports=`/** @type {import('@master/css').Config} */ | ||
module.exports = { | ||
styles: {}, | ||
rules: {}, | ||
variables: {}, | ||
semantics: {}, | ||
mediaQueries: {}, | ||
animations: {}, | ||
selectors: {}, | ||
functions: {} | ||
}`});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(); | ||
"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.')} |
@@ -1,11 +0,1 @@ | ||
#!/usr/bin/env node | ||
declare const Command: any; | ||
declare const path: any; | ||
declare const fs: any; | ||
declare const log: any; | ||
declare const readJSONFileSync: any; | ||
declare const pkg: any; | ||
declare const program: any; | ||
declare const CONFIG_ESM_TEXT: any; | ||
declare const CONFIG_TS_TEXT: any; | ||
declare const CONFIG_TEXT: any; | ||
export {}; |
@@ -1,1 +0,1 @@ | ||
{"name":"@master/css","scripts":{"build":"techor pack --declare --external @master/css-renderer @master/css-extractor","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":{"@master/css":"./dist/bin/index.bundle.js","mcss":"./dist/bin/index.bundle.js","mastercss":"./dist/bin/index.bundle.js"},"files":["dist"],"publishConfig":{"access":"public"},"dependencies":{"@master/normal.css":"^2.0.0-rc.14","@techor/fs":"^2.5.24","@techor/log":"^2.5.24","commander":"^11.0.0"},"devDependencies":{"@techor/extend":"^2.5.24","@techor/pack":"^2.5.24","@types/jest":"^29.5.11","css-shared":"^2.0.0-rc.14","csstype":"^3.1.2","puppeteer":"^21.0.1","vite":"^4.2.1"},"version":"2.0.0-rc.14"} | ||
{"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"} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1
3
1
0
176029
2027
1
- Removed@techor/fs@^2.5.24
- Removed@techor/log@^2.5.24
- Removedcommander@^11.0.0
- Removed@techor/fs@2.6.7(transitive)
- Removed@techor/log@2.6.7(transitive)
- Removedcommander@11.1.0(transitive)