-
-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract rollup plugins and base config to top level
- Loading branch information
davidcetinkaya
committed
Dec 6, 2021
1 parent
65b334e
commit ad82d8c
Showing
15 changed files
with
365 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import babel from '@rollup/plugin-babel' | ||
import typescript from 'rollup-plugin-typescript2' | ||
import resolve from '@rollup/plugin-node-resolve' | ||
import { terser } from 'rollup-plugin-terser' | ||
import localTypescript from 'typescript' | ||
|
||
const CONFIG_BABEL = { | ||
extensions: ['.js', '.jsx', '.ts', '.tsx'], | ||
exclude: 'node_modules/**', | ||
babelHelpers: 'bundled', | ||
} | ||
|
||
const CONFIG_TYPESCRIPT = { | ||
tsconfig: 'tsconfig.json', | ||
typescript: localTypescript, | ||
} | ||
|
||
const kebabCaseToPascalCase = (string = '') => { | ||
return string.replace(/(^\w|-\w)/g, (replaceString) => | ||
replaceString.replace(/-/, '').toUpperCase(), | ||
) | ||
} | ||
|
||
export { | ||
CONFIG_BABEL, | ||
CONFIG_TYPESCRIPT, | ||
babel, | ||
typescript, | ||
resolve, | ||
terser, | ||
kebabCaseToPascalCase, | ||
} |
Oops, something went wrong.