exexcepturi
Version:
css-to-ts takes css file and outputs TypeScript file with an exported string containing content of your css file.
59 lines (58 loc) • 1.66 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const yargs = require("yargs");
function GetVersion() {
let packageJson = require("../package.json");
return packageJson.version || "";
}
exports.Arguments = yargs
.help("h", "Show help")
.alias("h", "help")
.version(() => {
return `CurrentVersion: ${GetVersion()}`;
})
.alias("v", "version")
.option("rootDir", {
describe: "Specifies the root directory of input file / files",
type: "string"
})
.require("rootDir", "rootDir is required")
.option("o", {
alias: "outDir",
describe: "Redirect output or structure to the file or directory."
})
.require("outDir", "outDir is required")
.option("pattern", {
describe: "Files glob pattern.",
type: "string"
})
.require("pattern", "pattern is required")
.option("w", {
alias: "watch",
describe: "Watch file or files structure.",
type: "boolean"
})
.option("prefix", {
describe: "Specifies prefix of an output file.",
type: "string"
})
.option("suffix", {
describe: "Specifies suffix of an output file.",
type: "string"
})
.option("removeSource", {
describe: "Specifies should the source CSS file should be removed.",
type: "boolean"
})
.option("header", {
describe: "Specifies header comment in generated TS file.",
type: "string"
})
.option("cwd", {
describe: "Specifies current working diretory.",
type: "string"
})
.options("delimitter", {
describe: "Specifies delimitter for prefix and suffix.",
type: "string"
})
.argv;