From 3037041a8308042e0bf2c16f85078165791de299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honor=C3=A9=20Nintunze?= Date: Sat, 12 Dec 2020 09:57:37 +0100 Subject: [PATCH] feat(types): export all types --- .cz-config.js | 17 +++-------------- src/lib/fine-mq.ts | 1 + 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/.cz-config.js b/.cz-config.js index 17b07e2..41d86bd 100644 --- a/.cz-config.js +++ b/.cz-config.js @@ -10,10 +10,6 @@ module.exports = { { value: 'feat', name: 'feat: A new feature' }, { value: 'fix', name: 'fix: A bug fix' }, { value: 'docs', name: 'docs: Documentation only changes' }, - { - value: 'ui', - name: 'ui: A change in what is displayed but not a change in behavior\n (css, typo, translation, ...)', - }, { value: 'style', name: @@ -25,8 +21,8 @@ module.exports = { 'refactor: A code change that neither really fixes a bug nor adds a feature\n (move/remove files, implementation, readability, etc)', }, { - value: 'perf', - name: 'perf: A code change that improves performance', + value: 'improvement', + name: 'improvement: A code change that improves something', }, { value: 'test', name: 'test: Adding missing tests' }, { @@ -37,14 +33,7 @@ module.exports = { { value: 'wip', name: 'WIP: Work in progress' }, ], - scopes: [ - { name: 'test' }, - { name: 'docker' }, - { name: 'gitlab' }, - { name: 'build' }, - { name: 'config' }, - { name: 'deployment' }, - ], + scopes: [{ name: 'test' }, { name: 'types' }, { name: 'lint' }, { name: 'build' }], allowTicketNumber: false, isTicketNumberRequired: false, diff --git a/src/lib/fine-mq.ts b/src/lib/fine-mq.ts index 3522771..a7d7b52 100644 --- a/src/lib/fine-mq.ts +++ b/src/lib/fine-mq.ts @@ -13,6 +13,7 @@ import { } from './types' export { aliases2mq, json2mq } from './helpers' +export * from './types' export const getMediaQueryString = (mq: Mq, aliasOrMediaQuery: string): MediaQueryToMatch => mq.aliases[aliasOrMediaQuery] || aliasOrMediaQuery