4.1.0 • Published 7 months ago

conventional-changelog-preset-loader v4.1.0

Weekly downloads
1,546,585
License
MIT
Repository
github
Last release
7 months ago

conventional-changelog-preset-loader

NPM version Node version Dependencies status Build status Coverage status

Configuration preset loader for conventional-changelog.

Usage

Install:

# yarn
yarn add -D conventional-changelog-preset-loader
# pnpm
pnpm add -D conventional-changelog-preset-loader
# npm
npm i -D conventional-changelog-preset-loader

Import loadPreset function from the package and use it to load the preset:

const { loadPreset } = require('conventional-changelog-preset-loader')

loadPreset('angular').then((config) => {
  // do something with config object
})

By default it uses import to load preset. If you want to use require instead, you can create own loader with createPresetLoader function:

const { createPresetLoader } = require('conventional-changelog-preset-loader')

const loadPreset = createPresetLoader(require)

Preset package resolution

Firstly, loader will try prepend conventional-changelog to the preset name and load it.

For example:

  • angular => conventional-changelog-angular
  • angular/preset/path => conventional-changelog-angular/preset/path
  • @scope/angular => @scope/conventional-changelog-angular
  • @scope/angular/preset/path => @scope/conventional-changelog-angular/preset/path

If it fails, it will try to load preset using name as is.

Preset exports

Preset package should have default export which is a async (returns Promise) or sync function that accepts optional options object and returns the config object:

export default function createPreset(options) {
  return {
    // config
  }
}

Preset options

To pass options to the preset, loadPreset function accepts object with name property as first argument:

const { loadPreset } = require('conventional-changelog-preset-loader')

loadPreset({
  name: 'angular',
  ...presetOptions
}).then((config) => {
  // do something with config object
})

License

MIT © Steve Mao

conventional-recommended-bumpeasy-select-rnreact-native-bluetooth2killi8n-react-native-fast-imageairscanairscan-examplereact-native-esc-pos-sahaab@borisovart/atol-kkt-module@frxf/frxfdeneme323112@ntt_app/react-native-custom-notificationreact-native-covid-sdk@jttechnic/interpreterreact-native-printer-brothersreact-native-shekhar-bridge-testcogoportutils@oiti/documentoscopy-react-nativequoc-test@infinitebrahmanuniverse/nolb-convluminos-ui-core@everything-registry/sub-chunk-1377jawwy-sdkjawwy_gamification_releasemock-changelogreact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgreact-native-jawwy_sample@geeky-apo/react-native-advanced-clipboardl2forlernahong1-utilskhaled-salem-custom-componentslazy-bee-uijamuskalimjordy-frijters-test-libmiracle-webpack-tree-shakingjrennsoh88-react-native-scroll-indicatorinterval-changelog-generatornative-date-picker-modulenative-modal-damage-vehiclenative-kakao-loginnative-google-loginnative-apple-loginnew-awesome-4321luojia-cli-devnpm_qwertynpm_one_12_34_1_npm_one_1_2_3npm_one_2_2jawwy_library_newjawy_library_v1gamification-jawwy-libraryframework_test_library_sixdee_new_jawwyzzzxxxyyy321123easyplayer-myfluent.adflow.reactnativesdkfluent.adflow.reactnativesdk-alphagaurav-react-native-loopgitex-flowgriffin-ui-libraryfirebase-sign-in-with-ethereumfixed_form_builderfawaterak-online-paymentfawatrak-online-paymentframework_test_library_sixdeeframework_test_library_sixdee_newframework_test_library_sixdee_new_newgenz-native-elementsgh-monoproject-clifmslgamification-integration-new@parallelnft/web3modalpyreswap-sdkraact-native-arunramya151project-wajs-dvreac-native-arun-ramya-testreact-native-app-bubblereact-native-app-integrity-checksumreact-native-azure-communication-servicesreact-native-basic-appreact-native-basic-screenreact-native-biometric-authenticatereact-native-auth-service-clientreact-native-aventonfacetec-aventonreact-native-badge-controlreact-native-awesome-android-123react-native-awesome-android-123-zeotapreact-native-awesome-module-latestreact-native-awesome-module-tworeact-native-animate-textreact-native-android-video-player-viewreact-native-bleccs-componentsreact-native-dimensions-layoutreact-native-bubble-chartreact-native-bridge-packagereact-native-bluetooth-device-detectreact-native-contact-listreact-native-ctp-odpreact-native-fedlight-dsm
4.1.0

7 months ago

4.0.0

7 months ago

3.0.0

10 months ago

2.3.4

4 years ago

2.3.0

4 years ago

2.2.0

5 years ago

2.1.1

5 years ago

2.0.2

5 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago