mirror of
https://github.com/zhigang1992/styled-components.git
synced 2026-04-29 09:45:54 +08:00
Move to a mono-repo structure
wip Add gitignore and edit rollup config Update gitignore Wip WIP Get rid of older json files and use js files to extend across pkgs later Make test:native work again, thanks to @SimenB No haste and get integration test to work Update husky Update package.json Update travis and appveyor Add lint script Update sandbox Update yarn version Move eslint into sc package Remove unnecessary files Update lint-staged Update CONTRIBUTING.md Update version in lerna.json Update contributing Update scripts Update contributing Update contributing Update contributing.md and publish script Update contributing v4.1.4-alpha.0 Update package json Update lerna version v4.1.4-alpha.0 v4.1.4-alpha.1 Independent version for sandbox and styled-components Yarn instead of npm Add readme to styled-components package to show up on npm Publish - styled-components@4.1.4-alpha.2 Update prepublisOnly and contributing Update gitignore Publish - styled-components@4.1.4-alpha.3 Test without readme Remove readme Publish - styled-components@4.1.4-alpha.4 Copy readme prepublishOnly Publish - styled-components@4.1.4-alpha.5
This commit is contained in:
3
scripts/jest/config.base.js
Normal file
3
scripts/jest/config.base.js
Normal file
@@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
rootDir: '../../packages/styled-components',
|
||||
};
|
||||
6
scripts/jest/config.integration.js
Normal file
6
scripts/jest/config.integration.js
Normal file
@@ -0,0 +1,6 @@
|
||||
const baseConfig = require('./config.base');
|
||||
|
||||
module.exports = Object.assign({}, baseConfig, {
|
||||
testRegex: './integration-test/.*.js$',
|
||||
testURL: 'http://localhost',
|
||||
});
|
||||
10
scripts/jest/config.main.js
Normal file
10
scripts/jest/config.main.js
Normal file
@@ -0,0 +1,10 @@
|
||||
const baseConfig = require('./config.base');
|
||||
|
||||
module.exports = Object.assign({}, baseConfig, {
|
||||
testURL: 'http://localhost',
|
||||
clearMocks: true,
|
||||
roots: ['<rootDir>/src/'],
|
||||
setupFiles: ['raf/polyfill', '<rootDir>/src/test/globals.js'],
|
||||
setupTestFrameworkScriptFile: '<rootDir>/test-utils/setupTestFramework.js',
|
||||
testPathIgnorePatterns: ['<rootDir>/src/native', '<rootDir>/src/primitives'],
|
||||
});
|
||||
13
scripts/jest/config.native.js
Normal file
13
scripts/jest/config.native.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const baseConfig = require('./config.base');
|
||||
|
||||
const copy = Object.assign({}, baseConfig);
|
||||
|
||||
// react-native preset brings its own haste implementation
|
||||
delete copy.haste;
|
||||
|
||||
module.exports = Object.assign(copy, {
|
||||
testRegex: 'src/native/test/.*.js$',
|
||||
preset: 'react-native',
|
||||
testURL: 'http://localhost',
|
||||
testEnvironment: 'jsdom',
|
||||
});
|
||||
9
scripts/jest/config.primitives.js
Normal file
9
scripts/jest/config.primitives.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const baseConfig = require('./config.base');
|
||||
|
||||
module.exports = Object.assign({}, baseConfig, {
|
||||
testRegex: 'src/primitives/test/.*.js$',
|
||||
moduleFileExtensions: ['ios.js', 'js'],
|
||||
preset: 'react-native',
|
||||
testURL: 'http://localhost',
|
||||
testEnvironment: 'jsdom',
|
||||
});
|
||||
Reference in New Issue
Block a user