Skip to content

Commit

Permalink
build!: update create-react-styleguide to 8x
Browse files Browse the repository at this point in the history
  • Loading branch information
kris-ellery committed Mar 3, 2022
1 parent 7b0c97d commit d1cbe4e
Show file tree
Hide file tree
Showing 8 changed files with 4,047 additions and 2,246 deletions.
3 changes: 1 addition & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/coverage
/es
/lib
/dist
/styleguide
jest.config.js
styleguide.config.js
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/coverage
/es
/lib
/dist
/styleguide
node_modules
.idea
Expand Down
18 changes: 9 additions & 9 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// eslint-disable-next-line zillow/import/no-extraneous-dependencies
const { babelConfig } = require('create-react-styleguide');

if (process.env.DEBUG) {
// eslint-disable-next-line no-console
console.log('baseConfig object:', JSON.stringify(babelConfig, null, 4));
}

module.exports = {
presets: [['zillow', { modules: false }]],
env: {
cjs: {
presets: ['zillow'],
},
test: {
presets: ['zillow'],
},
},
...babelConfig,
};
15 changes: 10 additions & 5 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
const { createJestConfig } = require('create-react-styleguide');
// eslint-disable-next-line zillow/import/no-extraneous-dependencies
const { jestConfig } = require('create-react-styleguide');

module.exports = createJestConfig({
/* your own config shallowly merged */
setupFilesAfterEnv: ['jest-styled-components'],
});
if (process.env.DEBUG) {
// eslint-disable-next-line no-console
console.log('jestConfig object:', JSON.stringify(jestConfig, null, 4));
}

module.exports = {
...jestConfig,
};
Loading

0 comments on commit d1cbe4e

Please sign in to comment.