Update and thin dependencies

This commit is contained in:
Timothy Warren 2018-04-20 11:47:34 -04:00
parent ceb28c34ca
commit 2d3fd925b4
5 changed files with 307 additions and 495 deletions

View File

@ -1,4 +1,4 @@
import App from '../src/App'; import { App } from '../src/App';
import { render } from 'inferno'; import { render } from 'inferno';
it('renders without crashing', () => { it('renders without crashing', () => {

View File

@ -1,15 +1 @@
'use strict'; '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);
}

View File

@ -3,7 +3,7 @@
"version": "0.2.0", "version": "0.2.0",
"private": true, "private": true,
"dependencies": { "dependencies": {
"@stdlib/stdlib": "^0.0.35", "@stdlib/stdlib": "^0.0.36",
"dotenv": "5.0.1", "dotenv": "5.0.1",
"dotenv-expand": "4.2.0", "dotenv-expand": "4.2.0",
"electron-log": "^2.2.14", "electron-log": "^2.2.14",
@ -26,9 +26,8 @@
"babel-loader": "^7.1.4", "babel-loader": "^7.1.4",
"babel-preset-inferno-app": "^7.1.0", "babel-preset-inferno-app": "^7.1.0",
"babel-runtime": "6.26.0", "babel-runtime": "6.26.0",
"bootstrap": "^4",
"case-sensitive-paths-webpack-plugin": "^2.1.2", "case-sensitive-paths-webpack-plugin": "^2.1.2",
"chalk": "2.3.2", "chalk": "^2.4.0",
"css-loader": "^0.28.11", "css-loader": "^0.28.11",
"electron": "^1.8.4", "electron": "^1.8.4",
"electron-builder": "^20.8.1", "electron-builder": "^20.8.1",
@ -36,9 +35,9 @@
"eslint-config-happiness": "^10.2.1", "eslint-config-happiness": "^10.2.1",
"eslint-config-inferno-app": "^6.2.0", "eslint-config-inferno-app": "^6.2.0",
"eslint-loader": "2.0.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-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-jsx-a11y": "6.0.3",
"eslint-plugin-node": "^6.0.1", "eslint-plugin-node": "^6.0.1",
"eslint-plugin-promise": "^3.7.0", "eslint-plugin-promise": "^3.7.0",
@ -50,11 +49,8 @@
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"husky": "^0.14.3", "husky": "^0.14.3",
"jest": "^22.4.3", "jest": "^22.4.3",
"jquery": "^3.3.1",
"object-assign": "4.1.1",
"postcss-flexbugs-fixes": "3.3.0", "postcss-flexbugs-fixes": "3.3.0",
"postcss-loader": "^2.1.3", "postcss-loader": "^2.1.3",
"promise": "8.0.1",
"raf": "3.4.0", "raf": "3.4.0",
"style-loader": "^0.20.3", "style-loader": "^0.20.3",
"sw-precache-webpack-plugin": "^0.11.5", "sw-precache-webpack-plugin": "^0.11.5",
@ -92,16 +88,15 @@
"testEnvironment": "node", "testEnvironment": "node",
"testURL": "http://localhost", "testURL": "http://localhost",
"transform": { "transform": {
"^.+\\.(js|jsx|mjs)$": "<rootDir>/node_modules/babel-jest", "^.+\\.(js|jsx)$": "<rootDir>/node_modules/babel-jest",
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js", "^.+\\.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": [ "transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs)$" "[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$"
], ],
"moduleFileExtensions": [ "moduleFileExtensions": [
"web.js", "web.js",
"mjs",
"js", "js",
"json", "json",
"web.jsx", "web.jsx",

View File

@ -5,6 +5,8 @@ process.env.BABEL_ENV = 'test';
process.env.NODE_ENV = 'test'; process.env.NODE_ENV = 'test';
process.env.PUBLIC_URL = ''; process.env.PUBLIC_URL = '';
require('raf').polyfill(global);
// Makes the script crash on unhandled rejections instead of silently // Makes the script crash on unhandled rejections instead of silently
// ignoring them. In the future, promise rejections that are not handled will // ignoring them. In the future, promise rejections that are not handled will
// terminate the Node.js process with a non-zero exit code. // terminate the Node.js process with a non-zero exit code.

765
yarn.lock

File diff suppressed because it is too large Load Diff