Skip to content

Commit

Permalink
Feature: Reintroduce config flag. (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
Martynas Žilinskas authored Dec 18, 2019
1 parent 4629f03 commit 9f111cb
Show file tree
Hide file tree
Showing 6 changed files with 2,290 additions and 960 deletions.
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,18 @@ $ scss-bundle -h

Config file properties can be overridden with CLI flags.

| CLI Flag | Bundler options | Type | Description | Values | Default |
| --------------------------------------- | ------------------------ | -------- | -------------------------------------------------------------------------------- | ------------------------------------------ | ------- |
| -p, --project \<path\> | | string | Project location where `scss-bundle.config.json` and `node_modules` are located. | | _cwd_ |
| -e, --entryFile \<path\> <sup>`*`</sup> | entryFile <sup>`*`</sup> | string | Bundle entry file location. | | |
| -o, --outFile \<path\> <sup>`*`</sup> | outFile <sup>`*`</sup> | string | Bundle output location. | | |
| --rootDir \<path\> | rootDir | string | Specifies the root directory of input files. | | |
| -w, --watch [boolean] | watch | boolean | Watch files for changes. Works with `rootDir`. | | |
| --ignoreImports \<list\> | ignoreImports | string[] | Ignore resolving import content by matching a regular expression. | | |
| --includePaths \<list\> | includePaths | string[] | Include paths for resolving imports. | | |
| --dedupeGlobs \<list\> | dedupeGlobs | string[] | Files that will be emitted in a bundle once. | | |
| --logLevel \<level\> | logLevel | string | Console log level. | silent, error, warning, info, debug, trace | info |
| CLI Flag | Bundler options | Type | Description | Values | Default |
| --------------------------------------- | ------------------------ | -------- | ----------------------------------------------------------------- | ------------------------------------------ | ------- |
| -c, --config \<path\> | | string | Configuration file location. | | |
| -p, --project \<path\> | project | string | Project location where `node_modules` is located. | | |
| -e, --entryFile \<path\> <sup>`*`</sup> | entryFile <sup>`*`</sup> | string | Bundle entry file location. | | |
| -o, --outFile \<path\> <sup>`*`</sup> | outFile <sup>`*`</sup> | string | Bundle output location. | | |
| --rootDir \<path\> | rootDir | string | Specifies the root directory of input files. | | |
| -w, --watch [boolean] | watch | boolean | Watch files for changes. Works with `rootDir`. | | |
| --ignoreImports \<list\> | ignoreImports | string[] | Ignore resolving import content by matching a regular expression. | | |
| --includePaths \<list\> | includePaths | string[] | Include paths for resolving imports. | | |
| --dedupeGlobs \<list\> | dedupeGlobs | string[] | Files that will be emitted in a bundle once. | | |
| --logLevel \<level\> | logLevel | string | Console log level. | silent, error, warning, info, debug, trace | info |

`*` - Required

Expand Down
Loading

0 comments on commit 9f111cb

Please sign in to comment.