Skip to content

Commit

Permalink
fix: move to pika for bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
shrugs committed Jul 21, 2020
1 parent f1eee9d commit 4952f70
Show file tree
Hide file tree
Showing 5 changed files with 1,767 additions and 65 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# production
/build
/dist
/pkg

# misc
.DS_Store
Expand Down
35 changes: 27 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
},
"scripts": {
"start": "start-storybook -p 9009 -s public --ci",
"build": "yarn build:types && yarn build:ts",
"build:ts": "NODE_ENV=production yarn babel src -d dist --extensions '.ts,.tsx,.js,.jsx' --source-maps inline",
"build:types": "tsc -P ./tsconfig.lib.json --emitDeclarationOnly",
"build": "yarn pika build",
"build:storybook": "build-storybook -s public -o build --quiet",
"test": "react-scripts test",
"eject": "react-scripts eject",
"lint": "yarn eslint 'src/**/*.{js,jsx,ts,tsx,json,mdx}'",
"release": "auto shipit"
"version": "npm version `auto version` -m 'Bump version to: %s [skip ci]'",
"publish": "npm publish && git push --follow-tags --set-upstream origin $branch",
"release": "auto changelog && npm run version && npm publish pkg --access public && auto release"
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx,json,mdx}": [
Expand All @@ -26,9 +26,6 @@
"@react-aria/focus": "^3.0.2",
"@react-aria/interactions": "^3.0.2",
"@react-aria/utils": "^3.0.2",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"classnames": "^2.2.6",
"husky": "^4.2.5",
"lint-staged": "^10.2.11",
Expand Down Expand Up @@ -56,7 +53,10 @@
"@auto-it/conventional-commits": "^9.47.1",
"@auto-it/first-time-contributor": "^9.47.1",
"@auto-it/released": "^9.47.1",
"@babel/cli": "^7.10.5",
"@pika/pack": "^0.5.0",
"@pika/plugin-build-node": "^0.9.2",
"@pika/plugin-build-web": "^0.9.2",
"@pika/plugin-ts-standard-pkg": "^0.9.2",
"@react-types/button": "^3.0.2",
"@storybook/addon-a11y": "^5.3.19",
"@storybook/addon-actions": "^5.3.19",
Expand All @@ -67,6 +67,9 @@
"@storybook/addons": "^5.3.19",
"@storybook/preset-create-react-app": "^3.1.3",
"@storybook/react": "^5.3.19",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"@types/classnames": "^2.2.10",
"@types/jest": "^24.0.0",
"@types/node": "^12.0.0",
Expand Down Expand Up @@ -98,5 +101,21 @@
"first-time-contributor",
"released"
]
},
"@pika/pack": {
"pipeline": [
[
"@pika/plugin-ts-standard-pkg",
{
"tsconfig": "tsconfig.lib.json"
}
],
[
"@pika/plugin-build-node"
],
[
"@pika/plugin-build-web"
]
]
}
}
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WithClassName as _WithClassName } from './utils/WithClassName';
// import { WithClassName as _WithClassName } from './utils/WithClassName';

export { BranchingButton } from './components/BranchingButton/BranchingButton';
export { Button } from './components/Button/Button';
Expand All @@ -25,7 +25,7 @@ export {
// Utils
//

export type WithClassName = _WithClassName;
// export type WithClassName = _WithClassName;
export { cn } from './utils/cn';
export { mergeProps } from './utils/mergeProps';
export { usePaintFonts } from './utils/usePaintFonts';
6 changes: 4 additions & 2 deletions tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"target": "es2020",
"module": "esnext",
"declaration": true,
"noEmit": false,
"declaration": true
"strict": true
}
}
Loading

0 comments on commit 4952f70

Please sign in to comment.