mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
upgrade to babel6, ref #413
This commit is contained in:
parent
5699ee9a0c
commit
34960cb662
27
package.json
27
package.json
@ -73,17 +73,21 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"autoprefixer-loader": "^3.1.0",
|
||||
"babel": "^5.8.29",
|
||||
"babel-core": "^5.8.29",
|
||||
"babel-jest": "^5.3.0",
|
||||
"babel-loader": "^5.3.2",
|
||||
"babel-cli": "^6.2.0",
|
||||
"babel-core": "^6.2.1",
|
||||
"babel-jest": "^6.0.1",
|
||||
"babel-loader": "^6.2.0",
|
||||
"babel-plugin-add-module-exports": "^0.1.1",
|
||||
"babel-preset-es2015": "^6.1.18",
|
||||
"babel-preset-react": "^6.1.18",
|
||||
"babel-preset-stage-0": "^6.1.18",
|
||||
"busboy": "^0.2.9",
|
||||
"chalk": "^1.1.0",
|
||||
"clipboard": "^1.5.5",
|
||||
"css-loader": "^0.23.0",
|
||||
"eslint": "^1.1.0",
|
||||
"eslint-config-airbnb": "^1.0.0",
|
||||
"eslint-plugin-babel": "^2.1.1",
|
||||
"eslint-plugin-babel": "^3.0.0",
|
||||
"eslint-plugin-markdown-antd": "0.0.0",
|
||||
"eslint-plugin-react": "^3.3.1",
|
||||
"expect.js": "~0.3.1",
|
||||
@ -123,6 +127,7 @@
|
||||
"beta": "sh ./scripts/publish.sh --tag beta"
|
||||
},
|
||||
"jest": {
|
||||
"testRunner": "<rootDir>/node_modules/jest-cli/src/testRunners/jasmine/jasmine2",
|
||||
"moduleFileExtensions": [
|
||||
"js",
|
||||
"jsx",
|
||||
@ -141,5 +146,15 @@
|
||||
},
|
||||
"pre-commit": [
|
||||
"lint"
|
||||
]
|
||||
],
|
||||
"babel": {
|
||||
"presets": [
|
||||
"es2015",
|
||||
"react",
|
||||
"stage-0"
|
||||
],
|
||||
"plugins": [
|
||||
"add-module-exports"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ jest.dontMock('../components/popover/index');
|
||||
const Popover = require('../components/popover/index');
|
||||
|
||||
describe('Popover', function() {
|
||||
it.only('should show overlay when trigger is clicked', () => {
|
||||
it('should show overlay when trigger is clicked', () => {
|
||||
const popover = TestUtils.renderIntoDocument(
|
||||
<Popover overlay="console.log('hello world')" title="code" trigger="click">
|
||||
<a href="#">show me your code</a>
|
||||
|
@ -23,7 +23,11 @@ module.exports = {
|
||||
loaders: [{
|
||||
test: /\.jsx?$/,
|
||||
exclude: /node_modules/,
|
||||
loader: 'babel'
|
||||
loader: 'babel',
|
||||
query: {
|
||||
presets: ['es2015', 'react', 'stage-0'],
|
||||
plugins: ['add-module-exports'],
|
||||
}
|
||||
}, {
|
||||
test: /\.json$/,
|
||||
loader: 'json-loader'
|
||||
|
Loading…
Reference in New Issue
Block a user