Update and thin dependencies
This commit is contained in:
parent
ceb28c34ca
commit
2d3fd925b4
@ -1,4 +1,4 @@
|
||||
import App from '../src/App';
|
||||
import { App } from '../src/App';
|
||||
import { render } from 'inferno';
|
||||
|
||||
it('renders without crashing', () => {
|
||||
|
@ -1,15 +1 @@
|
||||
'use strict';
|
||||
|
||||
/* if (typeof Promise === 'undefined') {
|
||||
// Rejection tracking prevents a common issue where Inferno gets into an
|
||||
// inconsistent state due to an error, but it gets swallowed by a Promise,
|
||||
// and the user has no idea what causes Inferno's erratic future behavior.
|
||||
require('promise/lib/rejection-tracking').enable();
|
||||
window.Promise = require('promise/lib/es6-extensions.js');
|
||||
} */
|
||||
|
||||
// In tests, polyfill requestAnimationFrame since jsdom doesn't provide it yet.
|
||||
// We don't polyfill it in the browser--this is user's responsibility.
|
||||
if (process.env.NODE_ENV === 'test') {
|
||||
require('raf').polyfill(global);
|
||||
}
|
||||
|
19
package.json
19
package.json
@ -3,7 +3,7 @@
|
||||
"version": "0.2.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@stdlib/stdlib": "^0.0.35",
|
||||
"@stdlib/stdlib": "^0.0.36",
|
||||
"dotenv": "5.0.1",
|
||||
"dotenv-expand": "4.2.0",
|
||||
"electron-log": "^2.2.14",
|
||||
@ -26,9 +26,8 @@
|
||||
"babel-loader": "^7.1.4",
|
||||
"babel-preset-inferno-app": "^7.1.0",
|
||||
"babel-runtime": "6.26.0",
|
||||
"bootstrap": "^4",
|
||||
"case-sensitive-paths-webpack-plugin": "^2.1.2",
|
||||
"chalk": "2.3.2",
|
||||
"chalk": "^2.4.0",
|
||||
"css-loader": "^0.28.11",
|
||||
"electron": "^1.8.4",
|
||||
"electron-builder": "^20.8.1",
|
||||
@ -36,9 +35,9 @@
|
||||
"eslint-config-happiness": "^10.2.1",
|
||||
"eslint-config-inferno-app": "^6.2.0",
|
||||
"eslint-loader": "2.0.0",
|
||||
"eslint-plugin-flowtype": "2.46.1",
|
||||
"eslint-plugin-flowtype": "^2.46.3",
|
||||
"eslint-plugin-import": "^2.10.0",
|
||||
"eslint-plugin-inferno": "7.7.0",
|
||||
"eslint-plugin-inferno": "^7.8.0",
|
||||
"eslint-plugin-jsx-a11y": "6.0.3",
|
||||
"eslint-plugin-node": "^6.0.1",
|
||||
"eslint-plugin-promise": "^3.7.0",
|
||||
@ -50,11 +49,8 @@
|
||||
"html-webpack-plugin": "^3.2.0",
|
||||
"husky": "^0.14.3",
|
||||
"jest": "^22.4.3",
|
||||
"jquery": "^3.3.1",
|
||||
"object-assign": "4.1.1",
|
||||
"postcss-flexbugs-fixes": "3.3.0",
|
||||
"postcss-loader": "^2.1.3",
|
||||
"promise": "8.0.1",
|
||||
"raf": "3.4.0",
|
||||
"style-loader": "^0.20.3",
|
||||
"sw-precache-webpack-plugin": "^0.11.5",
|
||||
@ -92,16 +88,15 @@
|
||||
"testEnvironment": "node",
|
||||
"testURL": "http://localhost",
|
||||
"transform": {
|
||||
"^.+\\.(js|jsx|mjs)$": "<rootDir>/node_modules/babel-jest",
|
||||
"^.+\\.(js|jsx)$": "<rootDir>/node_modules/babel-jest",
|
||||
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
|
||||
"^(?!.*\\.(js|jsx|mjs|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
|
||||
"^(?!.*\\.(js|jsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
|
||||
},
|
||||
"transformIgnorePatterns": [
|
||||
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs)$"
|
||||
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$"
|
||||
],
|
||||
"moduleFileExtensions": [
|
||||
"web.js",
|
||||
"mjs",
|
||||
"js",
|
||||
"json",
|
||||
"web.jsx",
|
||||
|
@ -5,6 +5,8 @@ process.env.BABEL_ENV = 'test';
|
||||
process.env.NODE_ENV = 'test';
|
||||
process.env.PUBLIC_URL = '';
|
||||
|
||||
require('raf').polyfill(global);
|
||||
|
||||
// Makes the script crash on unhandled rejections instead of silently
|
||||
// ignoring them. In the future, promise rejections that are not handled will
|
||||
// terminate the Node.js process with a non-zero exit code.
|
||||
|
Loading…
Reference in New Issue
Block a user