Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@guanghechen/option-helper

guanghechen71MIT1.9.8TypeScript support: included

a collection of utility functions for processing options

type utils, string utils

readme

@guanghechen/option-helper


A collection of utility functions for processing options.

Install

  • npm

    npm install --save-dev @guanghechen/option-helper
  • yarn

    yarn add --dev @guanghechen/option-helper

Usage

  • is

    Name | Description :--------------------:|:---------------------------------------------------------------- isArray | Check if the given data is a Array type isBigint | Check if the given data is a bigint type isBoolean | Check if the given data is a boolean / Boolean type isDate | Check if the given data is a Date type isFunction | Check if the given data is a Function type isInteger | Check if the given data is a Integer type isNumber | Check if the given data is a number / Number type isObject | Check if the given data is a Object type isString | Check if the given data is a string / String type isSymbol | Check if the given data is a symbol type isUndefined | Check if the given data is a undefined type isPrimitiveBoolean | Check if the given data is a boolean type isPrimitiveInteger | Check if the given data is a integer type isPrimitiveNumber | Check if the given data is a number type isPrimitiveString | Check if the given data is a string type isNonBlankString | Check if the given data is an non-blank string / String type isNotEmptyArray | Check if the given data is an not-empty Array type isNotEmptyObject | Check if the given data is an not-empty Object type isEmptyObject | Check if the given data is an empty Object type isNumberLike | Check if the given data is an number / Number or number like string type

  • string utilities

    Name | Description :--------------------:|:--------------------------------------- toCamelCase | 'test string' => 'testString' toCapitalCase | 'test string' => 'Test String' toConstantCase | 'test string' => 'TEST_STRING' toDotCase | 'test string' => 'test.string' toKebabCase | 'test string' => 'test-string' toLowerCase | 'TEST STRING' => 'test string' toPascalCase | 'test string' => 'TestString' toPathCase | 'test string' => 'test/string' toSentenceCase | 'testString' => 'Test string' toSnakeCase | 'test string' => 'test_string' toTitleCase | 'a simple test' => 'A Simple Test' toUpperCase | 'test string' => 'TEST STRING'

- `composeTextTransformers`: Compose multiple TextTransformer into one.

  ```typescript
  import {
    composeTextTransformers,
    toKebabCase,
    toTrim,
  } from '@guanghechen/option-helper'

  // function composeTextTransformers (
  //   ...transformers: ReadonlyArray<TextTransformer>
  // ): TextTransformer

  const transform = composeTextTransformers(toTrim, toKebabCase)
  const text: string = transform(' TeSt_StrinG ')
  // => 'test-string'
  ```
  • cover utilities

    Name | Description :--------------------:|:--------------------------------------- cover | - coverBoolean | - coverInteger | - coverNumber | - coverString | -

  • convert utilities

    Name | Description :--------------------:|:--------------------------------------- convertToBoolean | - convertToInteger | - convertToNumber | - convertToString | -

changelog

Changelog

0.0.0 (2022-07-27)

Added

  • ✨ feat(tool-mini-copy): support new option '--strip-ansi' to strip ansi escape codes from input contents [75062f2]

Changed

  • 🎨 improve: refactor codes & fix bugs [c388e53]
  • 🎨 improve: provide customized strip-ansi to avoid esm issues [d362cd1]

Miscellaneous

  • 📝 docs: update README [0cabb7d]
  • 📝 docs(README): fix invalid urls [e03b62a]
  • 📝 docs: update changelog [2fded19]

1.9.7 (2022-07-17)

Added

Changed

  • ⬆️ chore: upgrade devDependencies [d5c2635]
  • 🚨 style: fix lint [806cd09]
  • 🎨 feat(option-helper): add util func: 'isArrayOfT' and 'isTwoDimensionArrayOfT' [1182098]
  • ⬆️ chore: upgrade dependencies [b889df2]
  • 🎨 refactor: rename useEvent to useEventCallback & init the handlerRef on first call [f7e583e]
  • 🎨 style: format demo codes [59d1307]

Fixed

Miscellaneous

  • 📝 docs: update CHANGELOG [2c00526]
  • 📝 docs: update README [d28b106]
  • mod(mini-copy): throw error if copy/paste failed [ecccc27]
  • 📝 docs: update CHANGELOG [27b19b6]

1.9.5 (2022-06-03)

Added

  • ✨ feat(react-hooks): add useEvent and useSyncState [f648260]

Changed

  • 🎨 improve: update eslint config [cca8085]
  • ⬆️ chore: upgrade dependencies [cbf674c]

Miscellaneous

  • 📝 docs: update CHANGELOG [7cdf358]

1.9.4 (2022-04-27)

Changed

  • 🎨 improve(rollup-plugin-copy): pass source filepath instead of expanded filepath as the second parameter of `rename` [79fc521]
  • 🔧 chore: rename jest.setup.ts to jest.helper.ts [8a7e4f8]
  • ⬆️ chore: upgrade dependencies [14d3696]

Miscellaneous

  • 📝 docs(rollup-plugin-copy): update README [6d3732a]
  • 📝 docs: update CHANGELOG [a541eee]

1.9.3 (2022-04-10)

Added

  • ✅ test: update snapshots [baf1f91]

Changed

  • ⬆️ chore: ugprade dependencies [6595312]

Miscellaneous

  • 📝 docs: update CHANGELOG [0110832]

1.9.2 (2022-03-12)

Fixed

  • 🐛 fix: useReactiveRef should always pointer to the latest referred value [b0a3491]

Miscellaneous

  • 📝 docs: update CHANGELOG [93ca6ab]

1.9.1 (2022-02-23)

Added

  • ✅ test(#2): update tests [5eb2db5]
  • ✨ feat(#2): support to preserve the source structure [5c2e136]

Changed

  • 🍱 assets(#2): update demo assets [2dd133c]
  • 🍱 asset(#2): update assets [8767395]
  • 🎨 improve: revert the new option 'srcStructureRoot' [71d0578]
  • 🍱 asset: update rollup config [c03ce24]
  • 🍱 asset: additional examples in playground/rollup-plugin-copy [0d1d720]

Fixed

  • 🐛 fix(#2): fix inconsistent behavior on build and watch mode when 'rename' option is specified [7d7038e]
  • 🐛 fix(#2): fix failed tests [11c86e4]
  • 🐛 fix(#2): compatible with the previous behavior when "flatten" is set to `true` [9868e95]
  • 🐛 fix(#2): fix weird dest filepath when 'flatten' is set to false [2ee79f7]
  • 🐛 fix(#2): use micromatch to match the glob patterns [09e2237]
  • 🐛 fix(#2): fix weird behaviors [48ef3a1]
  • 🐛 fix(#2): try to expand the glob pattern to match the directories [85e31e1]

Miscellaneous

  • 📝 docs(#2): update README [de9ad5c]
  • Merge pull request #3 from ghost91-/main [8af8363]
  • 📝 docs: update CHANGELOG [4107775]

1.9.0 (2022-02-17)

Changed

  • 🍱 asset: update playground/rollup-plugin-copy [9347501]
  • 🎨 imprvoe: set stabilityThreshold for awaitWriteFinish option [a13c046]
  • 🎨 improve: retry if the read operation is failed & update tests [d111446]
  • 🍱 asset: add playground for rollup-plugin-copy [2fdb86e]

Fixed

  • 🐛 fix(#1): wait write finish before trying to read [f5133f5]
  • 🐛 fix(#issue-1): transform is not re-trigered [334551d]
  • 🐛 fix: fix weird message printing [12159ba]

Miscellaneous

  • 📝 docs: update README [0cb4b78]
  • 📝 docs: update CHANGELOG [a7e4fb7]

1.9.0-alpha.0 (2022-02-16)

Changed

  • ⚡ improve: fix bugs & merge copying operations [eeb19a3]
  • 🎨 improve: extract codes for copy single CopyItem [cfee9a9]
  • 🎨 refactor: refactor codes [fa7befe]
  • 🎨 [BREAKING] feat(rollup-plugin-copy): refactor options [9a300b8]
  • 🎨 refactor: rename types [754ffe0]
  • 🎨 refactor(rollup-plugin-copy): refactor codes [71bfea2]
  • 🎨 refactor(rollup-plugin-copy): refactor codes [26ec3ad]

Fixed

  • 🐛 fix: fix type errors [cf93f24]
  • 🐛 fix: check if renamed through comparing oldName and newName [38a928a]

Miscellaneous

  • feat: use chokidar to supprot watch mode [aefc24b]
  • 📝 docs: update README [d4d33d1]
  • 📝 docs: update CHANGELOG [9f5d3c1]

1.8.6 (2022-01-15)

Changed

  • 🎨 improve: set print width to 100 (80 is old) [3a46483]
  • ⬆️ chore: upgrade dependencies and peerDependencies [a67ef3d]

Miscellaneous

  • 📝 docs: update CHANGELOG [f3ec386]

1.8.5 (2021-12-05)

Added

  • ✨ feat: add useReactiveRef [da80d82]
  • 👷‍♂️ chore: update ci configs [67c4a89]

Changed

  • ⬆️ chore: upgrade dependencies [af9ac75]
  • 🔧 chore: github action don't support diff colors [19cc7c5]

Miscellaneous

  • 📝 docs: update badge url [3db8165]
  • 📝 docs: update CHANGELOG [7c3f93b]

1.8.4 (2021-10-28)

Added

  • 👷‍♂️ chore: update ci configs [0dab3fc]
  • ✅ test: update snapshots [d9f13ee]

Changed

  • 🔧 chore: upgrade peerDependencies [aa6d178]
  • 🔧 chore: update yarn.lock [eac3b3c]
  • ⬆️ chore: upgrade dependencies [6e9db81]

Miscellaneous

  • feat: update eslint rules [e5d7583]
  • 📝 docs: update CHANGELOG [5e57561]

0.0.0 (2021-10-28)

Added

  • 👷‍♂️ chore: update ci configs [67c4a89]

1.8.3 (2021-08-18)

Fixed

  • 🐛 fix(react-hooks): update callback when the passed one changed [fe45c03]

Miscellaneous

1.8.2 (2021-08-14)

Added

  • ✨ feat: add new sub-package '@guanghechen/react-hooks' [7724209]

Changed

  • ⬆️ chore: upgrade dependencies [4d0261c]

Miscellaneous

  • 📝 docs: update CHANGELOG [1e161a9]

1.8.1 (2021-08-06)

Added

  • ✅ test: update snapshots and types [b4f862a]
  • ✨ feat(tool-git-cipher): support new config property `sensitiveDirectories` for sub-command `encrypt` [7e37655]

Changed

  • ⬆️ chore: upgrade dependencies [4d05155]

Miscellaneous

  • 📝 docs: update READMEs [c4c7d8e]
  • 🚧 improve(blob-helper): perform clear actions after downloaded [5887f04]
  • 📝 docs: update CHANGELOG [ace2e3d]

1.8.0 (2021-07-21)

Added

  • ✨ feat: add sub-package '@guanghechen/redux-actions' (migrated from @barusu/redux-actions) [b23228f]
  • ✨ feat: add sub-package '@guanghechen/blob-helper' (migrated from @baurusu/blob-helper) [d879fe9]

1.7.1 (2021-07-07)

Miscellaneous

  • improve(plop-helper): throw error if author is not detected [87b43f0]
  • 📝 docs: update CHANGELOG [45e28b5]

1.7.0 (2021-07-03)

Changed

  • ♿ improve(tool-git-cipher): ask for confirming before empty target directory [1133b68]

Fixed

  • 🐛 fix(cipher-helper): trigger and wait for the end of the writer stream when merging multiple file streams. [70e9375]

Miscellaneous

  • improve(tool-git-cipher): add debug infos [e6917da]

1.7.0-alpha.3 (2021-07-03)

Fixed

  • 🐛 fix: create an empty sourceRootDir when run sub-command 'init' [d227ca3]

Miscellaneous

  • feat(tool-git-cipher): BREAKING change options [77fe4ee]
  • improve(tool-git-cipher): create new catalog index file if it's not existed when run sub-command 'encrypt' [a40bbea]
  • improve(cipher-helper): remove original big target file when it splited into multiple parts [328152c]
  • improve(file-helper): allow empty files [23c4620]

1.7.0-alpha.2 (2021-07-03)

Added

  • ✨ feat(tool-git-cipher): support specify max target file size [52736d9]
  • ✨ feat(cipher-helper): implement 'CipherCatalog' [7bcf91b]
  • ✨ feat(file-helper): provide new fs utility func 'collectAllFiles' [2a1a9a2]

Changed

  • 🎨 improve: use @guanghechen/cipher-helper to simplify codes [5ace87d]
  • 🚚 refactor: move 'collectAllFilesSync' from @guanghechen/commander-helper to @guanghechen/file-helper [2b0c656]
  • 🚚 refactor: move 'absoluteOfWorkspace' and 'relativeOfWorkspace' from @guanghechen/commander-helper to @guanghechen/file-helper [80d933a]

Miscellaneous

  • 🔨 chore(commander-helper): add dependencies [fec52bf]

1.7.0-alpha.1 (2021-07-02)

Changed

  • 🎨 improve(cipher-helper): support encrypt / decrypt contents from source files into Buffer [685a9a6]

Miscellaneous

  • 🔨 chore: bundle cli.js for @guanghechen/tool-git-cipher [886f12b]

1.7.0-alpha.0 (2021-07-02)

Added

  • ✨ feat: implement new sub-package '@yozora/cipher-helper' [3eb59a8]
  • ✅ test: simplify test codes [6a25607]
  • ✨ feat(file-helper): implement stream utils [3425d47]
  • ✨ feat: implements new sub-package @guanghechen/file-helper [906caa7]
  • ✅ test: update test configs [fa1a5c6]
  • ✨ feat: implements new sub-package/tool-git-cipher (migrated from @barusu/tool-git-cipher) [6edc56d]
  • ✨ feat: implements new sub-package @guanghechen/event-bus (migrated from @barusu/event-bus) [b66e1fd]
  • ✨ feat: implements new sub-package @guanghechen/commander-helper (migrated from @barusu/util-cli) [1c10b50]
  • ✨ feat: implements new sub-package @guanghechen/invariant [13eab1e]
  • ✨ feat: add @guanghechen/chalk-logger (migrated from @barusu/chalk-logger) [b343c23]
  • ✨ feat(jest-helper): add logger mock util [97005b2]

Changed

  • 🎨 improve: simplify codes with @yozora/cipher-helper [f92544a]
  • 🚚 refactor: move fs utils from @guanghechen/commander-helper to @guanghechen/file-helper [a4ea316]
  • ⬇️ chore: downgrade commander from v8.0.0 to v7.2.0 [64547c8]
  • 🎨 improve(invariant): accept null type of message [cbcf592]
  • ⬆️ chore: upgrade dependencies [4ab8a9a]

Fixed

  • 🐛 fix(jest-helper): 'reateFilepathDesensitizer' baseDir is no need to immediately follow a whitespace. [2b12d3a]

Miscellaneous

  • 📝 docs: update descriptions [2af6d2c]
  • improve(eslint-config-ts): apply rule '@typescript-eslint/no-misused-promises' [38d8512]
  • 📝 docs(chalk-logger): add demo and screenshots [abaf7fa]
  • style: fix lint errors [1d59600]
  • 📝 docs: update CHANGELOG [bee6a04]

1.6.1 (2021-06-26)

Added

  • ✅ test: update snapshots [805f3f9]

Changed

  • 🔧 chore: clip devDependencies [5e9c636]

Miscellaneous

  • 📝 docs: update CHANGELOG [42c4ef2]

1.6.0 (2021-06-26)

Added

  • ✅ test: update snapshots [409502a]

Changed

  • ⬆️ chore: upgrade dependencies [5ab55f3]
  • ⚡ improve(parse-lineno): no de-duplicate needed if there is only one interval [1dd23b3]

Removed

  • ➖ improve(rollup-config): remove dependencies [9ca1fff]

Miscellaneous

  • feat: use @rollup/plugin-typescript instead of rollup-plugin-typescript2 (the types files is no longer generated through the rollup config) [91a7c6c]
  • 📝 docs: update CHANGELOG [0a9680e]

1.5.5 (2021-06-18)

Added

  • ✨ feat(parse-lineno): support custom separator [c460cd0]

Changed

  • ⚡ improve(parse-lineno): avoid performance problems caused by repeated large intervals [266c46f]

Miscellaneous

  • 📝 docs: update CHANGELOG [e9ece23]

1.5.4 (2021-06-17)

Added

  • ✨ feat: implements new sub-package '@guanghechen/parse-lineno' [9160afb]
  • ✅ test: update snapshots [a9b9987]

Changed

  • ⬆️ chore: upgrade dependencies [b8beb51]
  • 🔧 chore: don't run 'yarn-deduplicate' in ci environment [3d9107a]
  • 🔧 chore: update yarn.lock [29787c0]

Miscellaneous

  • 📝 docs: update CHANGELOG [c0ebbf6]

1.5.3 (2021-06-13)

Changed

  • ⬆️ chore: upgrade dev dependencies [7fa4cc8]

Miscellaneous

  • 🚧 improve(eslint-config-ts): enable lint rule '@typescript-eslint/no-floating-promises' [503c1d3]
  • 📝 docs: update CHANGELOG [465cc48]

1.5.2 (2021-06-08)

Changed

  • 🔧 chore: use Typescript under the node_modules/ instead of the one vscode built-in [3e16cba]
  • 🔧 chore(jest-helper): update peer dependencies [a7ad5f2]
  • 🔧 chore: update configs [d59c5f3]
  • ⬆️ chore: upgrade dependencies [807e04b]

Miscellaneous

  • 📝 docs: update CHANGELOG [5414cf4]

1.5.1 (2021-05-21)

Miscellaneous

  • 🚧 feat(option-helper): support new utility func 'convertToInteger' and 'coverInteger' [958eb4a]
  • 📝 docs: update CHANGELOG [7adc829]

1.5.0 (2021-05-20)

Changed

  • 🎨 style: upgrade dev dependencies & lint codes [701c8fa]
  • 🔧 chore: rename default branch to 'main' instead of 'master' [d673779]
  • 🔧 chore: update lint ignore patterns [3fec6b2]

Breaking changes

  • 💥 improve: upgrade postcss to v8 [9fae3c1]

Miscellaneous

  • 🔨 chore: trigger ci on creating new release tag instead of pushing to main branch [4a98d45]
  • 📝 docs: update CHANGELOG [598787d]

1.4.1 (2021-04-03)

Miscellaneous

  • 🚧 [option-helper] feat: expose new utility func 'isDate' [9a49e36]
  • 📝 docs: update CHANGELOG [8a44ef2]

0.0.0 (2021-04-03)

Changed

  • 🔧 chore: update lint ignore patterns [3fec6b2]

1.4.0 (2021-03-27)

Added

  • ✨ feat: add new sub-package @guanghechen/utility-types [3df8c6a]

Changed

  • ⬆️ chore: upgrade dependencies [5e5182d]

Miscellaneous

  • 📝 docs: update CHANGELOG [ca21186]

1.3.1 (2021-03-20)

Fixed

  • 🐛 fix(jest-helper): misplaced the arguments of nextVersion of createPackageVersionDesensitizer [53ad338]

Miscellaneous

  • 📝 docs: udpate CHANGELOG [6ae3092]

1.3.0 (2021-03-20)

Added

  • ✅ test: update tests [5229cd3]
  • ✅ test(jest-helper): fix failed test [722f960]

Fixed

  • 🐛 fix(template-ts-package): update boilaptes [3209b00]

Miscellaneous

  • 📝 docs: update REAWDME [eef40f4]
  • 🚧 feat(jest-helper): desentizer accept potential `key` as the second parameter [76fc1ca]
  • 📝 docs: update badges [b298cd6]
  • 📝 docs: update CHANGELOG [107ee69]

1.2.1 (2021-03-19)

Added

  • ✨ feat: add new sub-package @guanghechen/jest-config [7051ad4]

Changed

  • 🔧 chore: update lint configs & lint codes [eaaec6a]

Miscellaneous

  • 🚧 feat(eslint-config): turn off options which are expensive to execute [81b930f]
  • 📝 docs: update CHANGELOG [380249c]

1.2.0 (2021-03-17)

Added

  • ✨ feat: add new sub-package @guanghechen/npm-helper [92ad2c5]
  • ✅ test(plop-helper): use @guanghechen/jest-util to simplify codes [ea7f6a8]
  • ✅ test(option-helper): add missing expect to fix lint warnings [5da1872]
  • ✅ test: fix failed tests [b328f34]

Changed

  • 🔧 chore: update pretest script [4f1d463]
  • 🎨 improve: simplify codes with @guanghechen/npm-helper [07b8ca9]

Miscellaneous

  • 🚧 feat(locate-helper): expose new utility func `locateLatestPackageJson` [b04e1c6]
  • 🚧 feat(jest-helper): expose new utility func `createConsoleMock` [02768b4]
  • 📝 docs: update CHANGELOG [5da7431]

1.1.0 (2021-03-16)

Added

  • ✅ test(template-ts-package,template-tsx-package): update jest configs & update tests [5bd8b77]
  • ✅ test(jest-helper): add tests [3816006]
  • ✨ feat: add new sub-package @guanghechen/jest-helper [e61c869]
  • ➕ chore(plop-helper): make plop as a package dependency [c6b0a58]

Changed

  • 🔧 chore: perform build in @guanghechen/rollup-config and @guanghechen/plop-helper before run test [c939cb9]
  • 🎨 improve(plop-helper): split prompts into smaller pieces & update README [89cfaed]

Fixed

  • 🐛 fix(template-tsx-package): fix bugs in package.json.hbs [9d5a703]

Miscellaneous

  • 🚧 feat(plop-helper): update due to the previous change & expose new test utility func 'runPromptsWithMock' & update tests [ef94c91]
  • :feat(option-helper): remove TextTransformerBuilder and expose composeTextTransformers instead & update tests [bf9aba0]
  • 📝 docs: update README [f390171]
  • 🚧 feat(plop-helper): support node-plop api & utility funcs for testing plop & update tests [788a47d]
  • 🚧 improve(template-ts*-package): update README.md.hbs [135f2d1]
  • 📝 style: format READMEs [3bc7ae8]
  • 📝 docs: update CHANGELOG [e72a64e]
  • 📝 docs: update CHANGELOG [085d617]

1.0.13 (2021-03-13)

Added

  • ➕ chore: add missed peerDependencies [8cfa03c]

Miscellaneous

  • 🚧 [eslint-config*] feat: update parserOptions and rules [2bdf33e]
  • 📝 docs: update READMEs [4a69754]
  • 📝 docs: update CHANGELOG [fa66e37]

1.0.12 (2021-03-12)

Changed

  • 🎨 [plop-helper] improve: deduplicate codes with the features of @guanghechen/option-helper [1099f9f]
  • 🔧 chore: update lint configs & lint codes [c00517c]

Miscellaneous

  • 🔀 Merge branch 'develop' [83e1275]
  • 🚧 [option-helper] feat: expose new utility class 'TextTransfomerBuilder' [ffe780e]
  • 🚧 [eslint-config] improve: enable sort/imports to sort imports members in default [5c85921]
  • 📝 docs: update CHANGELOG [ba22655]

1.0.11 (2021-03-11)

Added

  • ✨ feat: add new sub-package @guanghechen/template-tsx-package (migrated from @barusu-react/template-react-package) [ca108fb]
  • ✨ feat: add new sub-package @guanghechen/plop-helper [880f62f]

Changed

  • 🔧 chore: add missing devDependencies [ebf8071]
  • 🔧 chore(tsconfig): fix project path alias [bd43ad6]
  • 🎨 [rollup-config] improve: mute error [ERR_PACKAGE_PATH_NOT_EXPORTED] [d99e479]

Miscellaneous

  • 📝 docs: update READMEs [bc666b3]
  • 🚧 [template-ts-package] improve: use @guanghechen/plop-helper to deduplicate codes & rename exposed bin name to 'ghc-ts-package' [05b921a]
  • 📝 docs: update CHANGELOG [79be5f8]

1.0.10 (2021-03-09)

Added

  • ✅ [rollup-config-tsx] test: add tests [3da3389]

Changed

  • 🔧 chore: use a more elegant way to load package.json under the current sub-package being packaged [d9c8abf]

Fixed

  • 🐛 [rollup-config-tsx] fix: fix dependency conflicts [71b4267]

Miscellaneous

  • 🔀 Merge branch 'develop' [ba1adbf]
  • 📝 docs: update badges [f00ecd9]
  • 📝 [rollup-config-tsx] docs: update README [e9fc767]
  • 🚧 [rollup-config-tsx] improve: fix bugs & update options [d85c66a]
  • 🚧 [rollup-config] improve: expose new Function `resolveRollupConfigEnvs` & update README [e344f65]
  • 📝 docs: update CHANGELOG [1178073]

1.0.9 (2021-03-07)

Added

  • ✨ feat: add new sub-package @guanghechen/rollup-config-tsx (migrated from @barusu-react/rollup-config) [ecbcff6]
  • ✅ [rollup-config] tests: add tests [9883d58]

Miscellaneous

  • :harmmer: [rollup-config] chore: bundle with the exposed configs by self [7209ce6]
  • 🚧 [rollup-config] improve: suport `string[]` type of option.manifest.*dependencies [bbfe5cc]

1.0.8 (2021-03-06)

Changed

  • ⬇️ chore: downgrade postcss-url to v9.0.0 to fix conlict error [5641533]

Miscellaneous

  • 📝 docs: update CHANGELOG [4da13fb]

1.0.7 (2021-03-06)

Added

  • ✨ feat: add new sub-package @guanghechen/rollup-config-tsx (migrated from @barusu-react/rollup-config) [7dfa946]
  • ✨ feat: add new sub-package @guanghechen/postcss-modules-dts (migrated from @barusu/rollup-plugin-postcss-dts) [eabee8f]

Changed

  • 🔧 chore: no test cases yet [3dfcd6b]

Miscellaneous

  • 🔀 Merge branch 'develop' [5e5fbbf]
  • 🚧 [template-ts-package] improve: update README boilerplates [500390e]
  • 📝 docs: update CHANGELOG [b24be9c]

1.0.6 (2021-03-06)

Fixed

  • 🐛 [eslint-config-jsx] fix: fix 'Cannot find module ./rule-create-react-app' [b699d88]

1.0.5 (2021-03-06)

Miscellaneous

  • 📝 chore: add node badge [534f425]
  • 📝 docs: update badges url [1e0b157]

1.0.4 (2021-03-06)

Fixed

  • 🐛 [rollup-config-cli] fix: fix 'external is not function' [9c767d8]

Miscellaneous

  • 🔀 Merge branch 'develop' [0b46e6a]

1.0.3 (2021-03-06)

Added

  • ✨ feat: add new sub-package @guanghechen/rollup-config-cli [6d1be9c]
  • ✨ feat: add new sub-package @guanghechen/rollup-plugin-copy (migrated from @barusu/rollup-plugin-copy) [6242b67]

Changed

  • 🔧 chore: lint json files before commit [62e9cb6]
  • 🔧 chore: add script alias 'new:ts-package' [b29e99c]

Miscellaneous

  • 🔀 Merge branch 'develop' [96d9272]
  • 📝 docs: update references [4094bf2]
  • 🚧 [template-ts-package] improve: ask for description in prompt [9136e53]
  • 📝 docs: update READMEs [8d7402a]
  • 🚧 [rollup-config] improve: support new option `additionalPlugins` [e536df1]
  • 📝 docs: update badges [8493dd7]
  • 🚧 [eslint-config-ts] improve: set @typescript-eslint/method-signature-style to 'method' instead of 'property' [2575855]

1.0.2 (2021-03-04)

Added

  • ✨ feat: add new package @guanghechen/template-ts-package (migrate from @barusu/template-ts-package) [e74b600]

Miscellaneous

  • 🔀 Merge branch 'develop' [117863e]
  • 🚧 [rollup-config] improve: external peerDependencies and optionalDependencies from bundle [5baa682]
  • construction: [option-helper] improve: `cover` support validate funcs & lazy default value [e446460]

1.0.1 (2021-03-03)

Changed

  • 🔧 chore: add github actions [c5befe9]

Miscellaneous

  • 🔀 Merge branch 'develop' [cb8f17c]
  • 📝 docs: add README [127055f]
  • 🔨 chore: move rollup config to the top of the repository [cc7472b]
  • 🚧 improve: update eslint configs [916863a]

1.0.0 (2021-03-02)

Added

  • ✨ feat: add new package @guanghechen/option-helper (migrage from @barusu/util-option) [98c7f55]
  • ✨ feat: add new package @guanghechen/rollup-config (migrate from @barusu/rollup-config) [fe2d497]
  • ✨ feat: add new package @guanghechen/util-locate [090a062]
  • ✨ feat: add new package @guanghechen/eslint-config-jsx [7852431]
  • ✨ feat: add new package @guanghechen/eslint-config-ts [0f69126]
  • ✨ feat: add new package @guanghechen/eslint-config [205be3e]
  • 🎉 initialize [3464452]

Changed

  • 🎨 style: format codes [a3ca949]
  • 🚚 refactor: rename @guanghechen/util-locate to @guanghechen/locate-helper [dd1f6e1]
  • 🔧 chore: update eslint config [93308ac]
  • 🔧 chore: use prettier and format codes [3b51a6e]

Fixed

  • 🐛 [locate-helper] fix: fix bugs & add tests [6cd5817]

Miscellaneous

  • 🔀 Merge branch 'develop' [b7a36b0]
  • 📝 docs: update READMEs [6b757ad]
  • 📄 doc: add MIT LICENSE [c57fb34]
  • 📝 chore: update docs [54f7fa9]
  • 🚧 [eslint-config] feat: customize rules from eslint-config-import [db01e61]
  • 🚧 [eslint-config] improve: remove unnecessary dependencies and configuration [e0e4423]
  • 🔨 chore: config dev environment [a2c0ec6]