-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build!: update
create-react-styleguide
to 8x
- Loading branch information
1 parent
7b0c97d
commit d1cbe4e
Showing
8 changed files
with
4,047 additions
and
2,246 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
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 |
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,6 +1,5 @@ | ||
/coverage | ||
/es | ||
/lib | ||
/dist | ||
/styleguide | ||
node_modules | ||
.idea | ||
|
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,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, | ||
}; |
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,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, | ||
}; |
Oops, something went wrong.