-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: maintain all dev dependencies and build process
- Loading branch information
1 parent
dcbe4fd
commit 66c2c38
Showing
22 changed files
with
10,040 additions
and
7,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 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 @@ | ||
_ |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn commitlint --edit $1 |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn build && yarn lint && yarn test |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn build && yarn types && yarn lint && yarn test-build |
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 |
---|---|---|
@@ -1 +1 @@ | ||
v14.15.3 | ||
v15.14.0 |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
nodeLinker: node-modules | ||
|
||
plugins: | ||
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs | ||
spec: "@yarnpkg/plugin-interactive-tools" | ||
|
||
yarnPath: .yarn/releases/yarn-2.4.2.cjs |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,51 @@ | ||
import babel from 'rollup-plugin-babel'; | ||
import commonjs from '@rollup/plugin-commonjs'; | ||
import resolve from '@rollup/plugin-node-resolve'; | ||
import babel from '@rollup/plugin-babel'; | ||
import typescript from '@rollup/plugin-typescript'; | ||
import size from 'rollup-plugin-size'; | ||
import { terser } from 'rollup-plugin-terser'; | ||
import typescript from 'rollup-plugin-typescript2'; | ||
import ts from 'typescript'; | ||
|
||
import pkg from './package.json'; | ||
|
||
const external = Object.keys(pkg.peerDependencies); | ||
const external = Object.keys(pkg.peerDependencies).concat(/@babel\/runtime/); | ||
|
||
const extensions = ['.js', '.tsx']; | ||
|
||
const plugins = [ | ||
typescript({ | ||
useTsconfigDeclarationDir: true, | ||
tsconfigOverride: { | ||
typescript: ts, | ||
compilerOptions: { | ||
module: 'es2015', | ||
}, | ||
}, | ||
}), | ||
const sharedPlugins = [ | ||
typescript(), | ||
babel({ | ||
babelHelpers: 'runtime', | ||
exclude: 'node_modules/**', | ||
extensions, | ||
}), | ||
resolve({ | ||
mainFields: ['module', 'main', 'umd'], | ||
extensions, | ||
}), | ||
size(), | ||
]; | ||
|
||
const exports = [ | ||
{ | ||
format: 'cjs', | ||
file: pkg.main, | ||
plugins: plugins.concat([commonjs(), terser()]), | ||
}, | ||
{ | ||
format: 'umd', | ||
file: pkg.umd, | ||
plugins: plugins.concat([commonjs(), terser()]), | ||
}, | ||
{ format: 'es', file: pkg.module, plugins }, | ||
const formats = [ | ||
{ format: 'umd', file: pkg.umd, plugins: sharedPlugins.concat([terser({ format: { comments: false } })]) }, | ||
{ format: 'cjs', file: pkg.main, plugins: sharedPlugins }, | ||
{ format: 'es', file: pkg.module, plugins: sharedPlugins }, | ||
]; | ||
|
||
const globals = { | ||
react: 'React', | ||
'react-router': 'ReactRouter', | ||
}; | ||
|
||
export default exports.map((item) => ({ | ||
export default formats.map(({ plugins, file, format }) => ({ | ||
input: 'src/index.tsx', | ||
plugins: item.plugins, | ||
plugins, | ||
external, | ||
output: { | ||
exports: 'named', | ||
file: item.file, | ||
format: item.format, | ||
name: 'use-react-router-breadcrumbs', | ||
globals, | ||
sourcemap: true, | ||
file, | ||
format, | ||
name: 'react-router-breadcrumbs-hoc', | ||
globals: format !== 'umd' | ||
? globals | ||
: { | ||
...globals, | ||
'@babel/runtime/helpers/toConsumableArray': '_toConsumableArray', | ||
'@babel/runtime/helpers/defineProperty': '_defineProperty', | ||
'@babel/runtime/helpers/objectWithoutProperties': '_objectWithoutProperties', | ||
}, | ||
}, | ||
})); |
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
Oops, something went wrong.