windicss-analysis
Advanced tools
Comparing version 0.0.22 to 0.1.0
@@ -7,3 +7,3 @@ "use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _chunkXPEJTJ24js = require('./chunk-XPEJTJ24.js'); | ||
var _chunk7UO4TO5Djs = require('./chunk-7UO4TO5D.js'); | ||
@@ -15,3 +15,3 @@ // node/cli.ts | ||
var cli = _cac2.default.call(void 0, "windicss-analysis"); | ||
cli.help().version(_chunkXPEJTJ24js.version).option("--port <port>", "Port", {default: 8113}).option("--open", "Open in browser", {default: true}).option("--json [filepath]", "Output analysis result file in JSON").option("--html [dir]", "Output analysis result in static web app"); | ||
cli.help().version(_chunk7UO4TO5Djs.version).option("--port <port>", "Port", {default: 8113}).option("--open", "Open in browser", {default: true}).option("--json [filepath]", "Output analysis result file in JSON").option("--html [dir]", "Output analysis result in static web app"); | ||
var parsed = cli.parse(); | ||
@@ -25,3 +25,3 @@ async function run() { | ||
parsed.options.html = _path.resolve.call(void 0, root, "windicss-analysis-report"); | ||
await _chunkXPEJTJ24js.generateBuild.call(void 0, { | ||
await _chunk7UO4TO5Djs.generateBuild.call(void 0, { | ||
root, | ||
@@ -33,5 +33,5 @@ outDir: parsed.options.html | ||
parsed.options.json = "windicss-analysis-report.json"; | ||
await _fs.promises.writeFile(parsed.options.json, JSON.stringify((await _chunkXPEJTJ24js.runAnalysis.call(void 0, {root})).result, null, 2), "utf-8"); | ||
await _fs.promises.writeFile(parsed.options.json, JSON.stringify((await _chunk7UO4TO5Djs.runAnalysis.call(void 0, {root})).result, null, 2), "utf-8"); | ||
} else { | ||
await _chunkXPEJTJ24js.startServer.call(void 0, _chunkXPEJTJ24js.__assign.call(void 0, _chunkXPEJTJ24js.__assign.call(void 0, {}, parsed.options), { | ||
await _chunk7UO4TO5Djs.startServer.call(void 0, _chunk7UO4TO5Djs.__assign.call(void 0, _chunk7UO4TO5Djs.__assign.call(void 0, {}, parsed.options), { | ||
root: _path.resolve.call(void 0, cli.args[0] || process.cwd()) | ||
@@ -38,0 +38,0 @@ })); |
@@ -15,3 +15,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkXPEJTJ24js = require('./chunk-XPEJTJ24.js'); | ||
var _chunk7UO4TO5Djs = require('./chunk-7UO4TO5D.js'); | ||
@@ -31,2 +31,2 @@ | ||
exports.ApiMiddleware = _chunkXPEJTJ24js.ApiMiddleware; exports.countElement = _chunkXPEJTJ24js.countElement; exports.defaultRules = _chunkXPEJTJ24js.defaultRules; exports.generateBuild = _chunkXPEJTJ24js.generateBuild; exports.getFileExt = _chunkXPEJTJ24js.getFileExt; exports.matchRule = _chunkXPEJTJ24js.matchRule; exports.registerRegExpToJSON = _chunkXPEJTJ24js.registerRegExpToJSON; exports.runAnalysis = _chunkXPEJTJ24js.runAnalysis; exports.startServer = _chunkXPEJTJ24js.startServer; exports.timeout = _chunkXPEJTJ24js.timeout; exports.toArray = _chunkXPEJTJ24js.toArray; exports.tryPort = _chunkXPEJTJ24js.tryPort; exports.uniq = _chunkXPEJTJ24js.uniq; | ||
exports.ApiMiddleware = _chunk7UO4TO5Djs.ApiMiddleware; exports.countElement = _chunk7UO4TO5Djs.countElement; exports.defaultRules = _chunk7UO4TO5Djs.defaultRules; exports.generateBuild = _chunk7UO4TO5Djs.generateBuild; exports.getFileExt = _chunk7UO4TO5Djs.getFileExt; exports.matchRule = _chunk7UO4TO5Djs.matchRule; exports.registerRegExpToJSON = _chunk7UO4TO5Djs.registerRegExpToJSON; exports.runAnalysis = _chunk7UO4TO5Djs.runAnalysis; exports.startServer = _chunk7UO4TO5Djs.startServer; exports.timeout = _chunk7UO4TO5Djs.timeout; exports.toArray = _chunk7UO4TO5Djs.toArray; exports.tryPort = _chunk7UO4TO5Djs.tryPort; exports.uniq = _chunk7UO4TO5Djs.uniq; |
{ | ||
"name": "windicss-analysis", | ||
"description": "Analyser for Windi CSS", | ||
"version": "0.0.22", | ||
"version": "0.1.0", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "module": "dist/index.mjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
584091