Update and clean up frontend dependencies

This commit is contained in:
SleepWalker 2016-06-01 07:59:15 +03:00
parent 6ea62bca08
commit e93488de2c
5 changed files with 61 additions and 61 deletions

View File

@ -10,9 +10,7 @@ module.exports = function(config) {
// frameworks to use // frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
// frameworks: ['mocha', 'sinon', 'chai'],
// NOTE: es5-shim был добавлен, так как phantomJS не может es5...
frameworks: ['mocha', 'sinon', 'chai', 'es5-shim'],
// list of files / patterns to load in the browser // list of files / patterns to load in the browser

View File

@ -9,7 +9,7 @@
"repository": "git@bitbucket.org:ErickSkrauch/ely.by-account.git", "repository": "git@bitbucket.org:ErickSkrauch/ely.by-account.git",
"scripts": { "scripts": {
"start": "rm -rf dist/ && webpack-dev-server --progress --colors", "start": "rm -rf dist/ && webpack-dev-server --progress --colors",
"up": "npm i && cd ./webpack && npm i && cd ../scripts && npm i", "up": "npm update && cd ./webpack && npm update && cd ../scripts && npm update",
"test": "karma start ./karma.conf.js", "test": "karma start ./karma.conf.js",
"lint": "eslint ./src", "lint": "eslint ./src",
"i18n": "cd ./scripts && ./node_modules/.bin/babel-node i18n-collect.js", "i18n": "cd ./scripts && ./node_modules/.bin/babel-node i18n-collect.js",
@ -18,45 +18,45 @@
"dependencies": { "dependencies": {
"babel-polyfill": "^6.3.14", "babel-polyfill": "^6.3.14",
"classnames": "^2.1.3", "classnames": "^2.1.3",
"history": "^1.17.0", "history": "^3.0.0",
"intl": "^1.2.2", "intl": "^1.2.2",
"intl-format-cache": "^2.0.4", "intl-format-cache": "^2.0.4",
"intl-messageformat": "^1.1.0", "intl-messageformat": "^1.1.0",
"promise.prototype.finally": "^1.0.1", "promise.prototype.finally": "^1.0.1",
"react": "^15.0.0", "react": "^15.0.0",
"react-dom": "^15.0.0", "react-dom": "^15.0.0",
"react-helmet": "^2.3.1", "react-helmet": "^3.1.0",
"react-intl": "^2.0.0", "react-intl": "^2.0.0",
"react-motion": "^0.4.0", "react-motion": "^0.4.0",
"react-redux": "^4.0.0", "react-redux": "^4.0.0",
"react-router": "^2.0.0", "react-router": "^2.0.0",
"react-router-redux": "^3.0.0", "react-router-redux": "^3.0.0",
"redux": "^3.0.4", "redux": "^3.0.4",
"redux-thunk": "^1.0.0", "redux-thunk": "^2.0.0",
"whatwg-fetch": "^0.11.0" "whatwg-fetch": "^1.0.0"
}, },
"devDependencies": { "devDependencies": {
"babel-core": "^6.0.0", "babel-core": "^6.0.0",
"babel-eslint": "^5.0.0-beta6", "babel-eslint": "^6.0.0",
"babel-loader": "^6.0.0", "babel-loader": "^6.0.0",
"babel-plugin-react-intl": "~2.0.0", "babel-plugin-react-intl": "^2.0.0",
"babel-plugin-transform-runtime": "^6.3.13", "babel-plugin-transform-runtime": "^6.3.13",
"babel-preset-airbnb": "^1.1.1", "babel-preset-airbnb": "^2.0.0",
"babel-preset-es2015": "^6.3.13", "babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.3.13", "babel-preset-react": "^6.3.13",
"babel-preset-react-hmre": "^1.0.1", "babel-preset-react-hmre": "^1.0.1",
"babel-preset-stage-0": "^6.3.13", "babel-preset-stage-0": "^6.3.13",
"babel-runtime": "^5.6.15", "babel-runtime": "^6.0.0",
"bundle-loader": "^0.5.4", "bundle-loader": "^0.5.4",
"chai": "^3.0.0", "chai": "^3.0.0",
"chokidar": "^1.2.0", "chokidar": "^1.2.0",
"css-loader": "^0.23.0", "css-loader": "^0.23.0",
"cssnano": "^3.4.0", "cssnano": "^3.4.0",
"enzyme": "^2.2.0", "enzyme": "^2.2.0",
"eslint": "^1.10.3", "eslint": "^2.11.0",
"eslint-plugin-react": "^3.13.1", "eslint-plugin-react": "^5.0.0",
"exports-loader": "^0.6.3", "exports-loader": "^0.6.3",
"extract-text-webpack-plugin": "^0.9.1", "extract-text-webpack-plugin": "^1.0.0",
"file-loader": "^0.8.5", "file-loader": "^0.8.5",
"fontgen-loader": "^0.2.1", "fontgen-loader": "^0.2.1",
"html-loader": "^0.4.3", "html-loader": "^0.4.3",
@ -65,8 +65,7 @@
"json-loader": "^0.5.4", "json-loader": "^0.5.4",
"karma": "*", "karma": "*",
"karma-chai": "*", "karma-chai": "*",
"karma-es5-shim": "*", "karma-mocha": "^1.0.0",
"karma-mocha": "^0.2.1",
"karma-nyan-reporter": "^0.2.3", "karma-nyan-reporter": "^0.2.3",
"karma-phantomjs-launcher": "*", "karma-phantomjs-launcher": "*",
"karma-sinon": "^1.0.4", "karma-sinon": "^1.0.4",
@ -77,7 +76,7 @@
"mocha": "^2.2.5", "mocha": "^2.2.5",
"node-sass": "^3.4.2", "node-sass": "^3.4.2",
"phantomjs-prebuilt": "^2.0.0", "phantomjs-prebuilt": "^2.0.0",
"postcss-loader": "^0.8.0", "postcss-loader": "^0.9.0",
"postcss-url": "^5.1.1", "postcss-url": "^5.1.1",
"raw-loader": "^0.5.1", "raw-loader": "^0.5.1",
"react-addons-test-utils": "^15.0.2", "react-addons-test-utils": "^15.0.2",

View File

@ -1,5 +1,4 @@
import 'babel-polyfill'; import 'polyfills';
import 'promise.prototype.finally';
import React from 'react'; import React from 'react';
import ReactDOM from 'react-dom'; import ReactDOM from 'react-dom';

2
src/polyfills.js Normal file
View File

@ -0,0 +1,2 @@
import 'babel-polyfill';
import 'promise.prototype.finally';

View File

@ -1,3 +1,5 @@
import 'polyfills';
// require all modules ending in "_test" from the // require all modules ending in "_test" from the
// current directory and all subdirectories // current directory and all subdirectories
var testsContext = require.context(".", true, /\.test\.jsx?$/); var testsContext = require.context(".", true, /\.test\.jsx?$/);