Comparing version 0.1.0-beta.8 to 0.1.0-beta.9
@@ -1,2 +0,2 @@ | ||
export interface Options extends CSSToTsOptions { | ||
export interface Options extends CssToTsOptions { | ||
removeSource?: boolean; | ||
@@ -7,5 +7,5 @@ pattern: string; | ||
delimitter?: string; | ||
ignore?: Array<string>; | ||
exclude?: Array<string>; | ||
} | ||
export interface CSSToTsOptions { | ||
export interface CssToTsOptions { | ||
rootDir: string; | ||
@@ -12,0 +12,0 @@ outDir: string; |
@@ -5,2 +5,2 @@ export { Arguments } from "./arguments"; | ||
export { ConvertCssToTs } from "./css-to-ts"; | ||
export { Options, CSSToTsOptions } from "./contracts"; | ||
export { Options, CssToTsOptions } from "./contracts"; |
@@ -55,6 +55,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
}) | ||
.option("ignore", { | ||
describe: "Specifies array of glob patterns to exclude matches.", | ||
.option("exclude", { | ||
describe: "Specifies an array of globs to exclude.", | ||
type: "array" | ||
}) | ||
.argv; |
@@ -32,3 +32,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
this.options.delimitter = this.options.delimitter || helpers_1.CLIDefaults.delimitter; | ||
this.options.ignore = this.options.ignore || helpers_1.CLIDefaults.ignore; | ||
this.options.exclude = this.options.exclude || helpers_1.CLIDefaults.exclude; | ||
if (this.options.watch) { | ||
@@ -60,3 +60,3 @@ this.watchCss(); | ||
new glob_1.Glob(pattern, { | ||
ignore: this.options.ignore, | ||
ignore: this.options.exclude, | ||
cwd: cwd | ||
@@ -78,3 +78,3 @@ }, (error, filesArray) => { | ||
let watcher = chokidar_1.watch(this.options.pattern, { | ||
ignored: this.options.ignore, | ||
ignored: this.options.exclude, | ||
cwd: cwd | ||
@@ -81,0 +81,0 @@ }); |
@@ -12,3 +12,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
delimitter: "-", | ||
ignore: ["**/node_modules/**"] | ||
exclude: ["**/node_modules/**"] | ||
}; | ||
@@ -15,0 +15,0 @@ function IsNodeError(error) { |
{ | ||
"name": "css-to-ts", | ||
"version": "0.1.0-beta.8", | ||
"version": "0.1.0-beta.9", | ||
"description": "css-to-ts takes css file and outputs TypeScript file with an exported string containing content of your css file.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -43,3 +43,3 @@ # css-to-ts | ||
| --cwd | string | `process.cwd()` | Specifies current working directory. | | ||
| --ignore | array | `["**/node_modules/**"]` | Array of globs to be ignored. | | ||
| --exclude | array | `["**/node_modules/**"]` | Specifies an array of globs to exclude. | | ||
@@ -46,0 +46,0 @@ ## Example |
23096