Skip to content

Commit 0fbdc00

Browse files
committed
Updating the calendar header to use React
1 parent 36cf5f0 commit 0fbdc00

28 files changed

+13149
-4134
lines changed

.babelrc

Lines changed: 0 additions & 8 deletions
This file was deleted.

.babelrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
presets: [
3+
"@babel/preset-env"
4+
],
5+
plugins: [
6+
'@wordpress/babel-plugin-import-jsx-pragma',
7+
'@babel/plugin-transform-react-jsx',
8+
]
9+
}

.prettierrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Import the default config file and expose it in the project root.
2+
// Useful for editor integrations.
3+
module.exports = require('@wordpress/prettier-config');

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,5 @@ script:
9898
$( npm bin )/wp-scripts test-e2e --config=./tests/e2e/jest.config.js
9999
bash bin/phpcs-diff.sh
100100
npm run lint
101+
npm run test-jest
101102
fi

blocks/dist/custom-status.build.js

Lines changed: 319 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jest.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
testMatch: ["<rootDir>/tests/jest/**/**.test.js"], // finds test
3+
moduleNameMapper: {
4+
"^.+\\.(css|less|scss)$": "babel-jest"
5+
},
6+
preset: '@wordpress/jest-preset-default',
7+
};

0 commit comments

Comments
 (0)