Skip to content

Commit

Permalink
deps: remove useless dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
benjycui committed Mar 31, 2016
1 parent d75c0d0 commit 2a3febf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 174 deletions.
6 changes: 3 additions & 3 deletions components/date-picker/demo/locale.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ title: 国际化
````jsx
import { DatePicker } from 'antd';
import enUS from 'antd/lib/date-picker/locale/en_US';
import assign from 'object-assign';

const App = React.createClass({
getInitialState() {
return {
locale: assign({}, enUS, {
locale: {
...enUS,
timezoneOffset: 0 * 60,
firstDayOfWeek: 0,
minimalDaysInFirstWeek: 1,
})
}
};
},
render() {
Expand Down
142 changes: 0 additions & 142 deletions nico.js

This file was deleted.

23 changes: 2 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
"devDependencies": {
"antd-md-loader": "0.1.0-beta.18",
"atool-build": "^0.5.0",
"autoprefixer": "^6.3.5",
"babel-cli": "^6.2.0",
"babel-core": "^6.2.1",
"babel-eslint": "^6.0.0-beta.6",
Expand All @@ -83,39 +82,26 @@
"babel-preset-react": "^6.1.18",
"babel-preset-react-hmre": "^1.1.0",
"babel-preset-stage-0": "^6.1.18",
"busboy": "^0.2.9",
"chalk": "^1.1.0",
"css-loader": "^0.23.0",
"cz-conventional-changelog": "^1.1.5",
"dom-scroll-into-view": "^1.1.0",
"dora": "^0.3.1",
"dora-plugin-hmr": "^0.5.0",
"dora-plugin-webpack": "^0.6.2",
"enquire.js": "^2.1.1",
"es3ify-loader": "^0.1.0",
"eslint": "^2.2.0",
"eslint-config-airbnb": "^6.0.1",
"eslint-plugin-babel": "^3.0.0",
"eslint-plugin-markdown": "*",
"eslint-plugin-react": "^4.0.0",
"eslint-tinker": "^0.3.1",
"extract-text-webpack-plugin": "^1.0.1",
"gh-pages": "^0.11.0",
"highlight.js": "^9.2.0",
"history": "^1.17.0",
"instantclick": "^3.1.0",
"jest-cli": "~0.8.0",
"json-loader": "^0.5.1",
"jsonp": "^0.2.0",
"less": "~2.6.0",
"less-loader": "^2.2.0",
"lesshint": "^1.2.1",
"lodash": "^4.1.0",
"mark-twain": "^0.2.0-beta.4",
"mkdirp": "~0.5.1",
"nico-jsx": "~0.9.0",
"object-assign": "~4.0.1",
"postcss-loader": "^0.8.0",
"pre-commit": "1.x",
"querystring": "^0.2.0",
"ramda": "^0.19.1",
Expand All @@ -129,14 +115,9 @@
"react-router": "^2.0.0",
"react-stateless-wrapper": "~1.0.2",
"react-sublime-video": "0.1.0-beta",
"recast": "^0.11.2",
"reqwest": "~2.0.5",
"semver": "^5.1.0",
"values.js": "^1.0.3",
"webpack": "^1.10.1",
"webpack-babel-jest": "^1.0.0",
"webpack-dev-middleware": "^1.5.1",
"webpack-hot-middleware": "^2.6.4"
"webpack-babel-jest": "^1.0.4"
},
"scripts": {
"babel": "babel components index.js --out-dir lib",
Expand Down Expand Up @@ -194,4 +175,4 @@
"path": "./node_modules/cz-conventional-changelog"
}
}
}
}
8 changes: 0 additions & 8 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
var autoprefixer = require('autoprefixer');

module.exports = function(webpackConfig) {
if (process.env.ANTD === 'WEBSITE') {
webpackConfig.entry = {
Expand Down Expand Up @@ -34,11 +32,5 @@ module.exports = function(webpackConfig) {
webpackConfig.output.libraryTarget = 'umd';
}

webpackConfig.postcss = [
autoprefixer({
browsers: ['last 2 versions', 'Firefox ESR', '> 1%', 'ie >= 8']
})
];

return webpackConfig;
};

0 comments on commit 2a3febf

Please sign in to comment.