Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Commit

Permalink
Merge pull request #147 from smooth-code/xstyled
Browse files Browse the repository at this point in the history
feat: complete rewrite with reakit & xstyled
  • Loading branch information
gregberge authored Aug 27, 2019
2 parents 4264d7f + ad28403 commit 48a23d3
Show file tree
Hide file tree
Showing 225 changed files with 20,028 additions and 19,796 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules/
dist/
.docz/
.vscode/
.vscode/
.size-snapshot.json
1 change: 0 additions & 1 deletion _redirects

This file was deleted.

4 changes: 2 additions & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ module.exports = api => {
{
replacements: [
{
original: '(.*)styled-engine$',
replacement: `$1styled-engine/${STYLED_ENGINE}`,
original: '(.*)xstyled/x$',
replacement: `$1xstyled/${STYLED_ENGINE}`,
},
],
},
Expand Down
59 changes: 0 additions & 59 deletions benchmarks/system.js

This file was deleted.

17 changes: 13 additions & 4 deletions config/rollup.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ export const getRollupConfig = ({ pwd, buildName, name }) => {
})

const globals = {
classnames: 'classNames',
polished: 'polished',
'popper.js': 'Popper',
'prop-types': 'PropTypes',
'prop-desc': 'PropDesc',
'emotion-theming': 'emotionTheming',
'@emotion/core': 'emotion',
'@emotion/styled': 'styled',
'@xstyled/styled-components': 'xstyled',
'@xstyled/emotion': 'xstyled',
react: 'React',
'react-dom': 'ReactDom',
'styled-components': 'styled',
Expand Down Expand Up @@ -73,14 +74,22 @@ export const getRollupConfig = ({ pwd, buildName, name }) => {
input,
output: { file: `${DIST_DIR}/${buildName}.cjs.js`, format: 'cjs' },
external,
plugins: [babel(getBabelOptions({ useESModules: false })), sizeSnapshot()],
plugins: [
nodeResolve(),
babel(getBabelOptions({ useESModules: false })),
sizeSnapshot(),
],
}

const esmConfig = {
input,
output: { file: `${DIST_DIR}/${buildName}.es.js`, format: 'esm' },
external,
plugins: [babel(getBabelOptions({ useESModules: true })), sizeSnapshot()],
plugins: [
nodeResolve(),
babel(getBabelOptions({ useESModules: true })),
sizeSnapshot(),
],
}

if (process.env.WATCH_MODE) {
Expand Down
30 changes: 0 additions & 30 deletions docs/GettingStarted.mdx

This file was deleted.

19 changes: 0 additions & 19 deletions docs/Home.mdx

This file was deleted.

33 changes: 0 additions & 33 deletions docs/advanced/AddVariant.mdx

This file was deleted.

40 changes: 0 additions & 40 deletions docs/advanced/CustomComponent.mdx

This file was deleted.

112 changes: 0 additions & 112 deletions docs/advanced/ExtendStyles.mdx

This file was deleted.

Loading

0 comments on commit 48a23d3

Please sign in to comment.