Merge pull request #4030 from tchak/upgrade-javascript-dependencies
Upgrade javascript dependencies
This commit is contained in:
commit
0ad14283c5
8 changed files with 970 additions and 548 deletions
|
@ -1,7 +1,7 @@
|
||||||
import '../shared/polyfills';
|
import '../shared/polyfills';
|
||||||
import Turbolinks from 'turbolinks';
|
import Turbolinks from 'turbolinks';
|
||||||
import Rails from 'rails-ujs';
|
import Rails from '@rails/ujs';
|
||||||
import * as ActiveStorage from 'activestorage';
|
import * as ActiveStorage from '@rails/activestorage';
|
||||||
import jQuery from 'jquery';
|
import jQuery from 'jquery';
|
||||||
|
|
||||||
import '../shared/activestorage/ujs';
|
import '../shared/activestorage/ujs';
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
import '../shared/polyfills';
|
import '../shared/polyfills';
|
||||||
import Turbolinks from 'turbolinks';
|
import Turbolinks from 'turbolinks';
|
||||||
import Rails from 'rails-ujs';
|
import Rails from '@rails/ujs';
|
||||||
import * as ActiveStorage from 'activestorage';
|
import * as ActiveStorage from '@rails/activestorage';
|
||||||
|
import '@rails/actiontext';
|
||||||
import Chartkick from 'chartkick';
|
import Chartkick from 'chartkick';
|
||||||
import Highcharts from 'highcharts';
|
import Highcharts from 'highcharts';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { DirectUpload } from 'activestorage';
|
import { DirectUpload } from '@rails/activestorage';
|
||||||
import ProgressBar from './progress-bar';
|
import ProgressBar from './progress-bar';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import Rails from 'rails-ujs';
|
import Rails from '@rails/ujs';
|
||||||
import jQuery from 'jquery';
|
import jQuery from 'jquery';
|
||||||
import { delegate } from '@utils';
|
import { delegate } from '@utils';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import Rails from 'rails-ujs';
|
import Rails from '@rails/ujs';
|
||||||
import $ from 'jquery';
|
import $ from 'jquery';
|
||||||
import debounce from 'debounce';
|
import debounce from 'debounce';
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,7 @@ module.exports = function(api) {
|
||||||
{
|
{
|
||||||
forceAllTransforms: true,
|
forceAllTransforms: true,
|
||||||
useBuiltIns: 'entry',
|
useBuiltIns: 'entry',
|
||||||
|
corejs: 2,
|
||||||
modules: false,
|
modules: false,
|
||||||
exclude: ['transform-typeof-symbol']
|
exclude: ['transform-typeof-symbol']
|
||||||
}
|
}
|
||||||
|
|
28
package.json
28
package.json
|
@ -1,26 +1,28 @@
|
||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/preset-react": "^7.0.0",
|
"@babel/preset-react": "^7.0.0",
|
||||||
"@fortawesome/fontawesome-svg-core": "^1.2.18",
|
"@fortawesome/fontawesome-svg-core": "^1.2.19",
|
||||||
"@fortawesome/free-solid-svg-icons": "^5.8.2",
|
"@fortawesome/free-solid-svg-icons": "^5.9.0",
|
||||||
"@fortawesome/react-fontawesome": "^0.1.4",
|
"@fortawesome/react-fontawesome": "^0.1.4",
|
||||||
"@rails/webpacker": "4.0.2",
|
"@rails/actiontext": "^6.0.0-alpha",
|
||||||
"@sentry/browser": "^5.2.1",
|
"@rails/activestorage": "^6.0.0-alpha",
|
||||||
|
"@rails/ujs": "^6.0.0-alpha",
|
||||||
|
"@rails/webpacker": "4.0.7",
|
||||||
|
"@sentry/browser": "^5.4.3",
|
||||||
"@turf/area": "^6.0.1",
|
"@turf/area": "^6.0.1",
|
||||||
"activestorage": "^5.2.3",
|
|
||||||
"autocomplete.js": "^0.36.0",
|
"autocomplete.js": "^0.36.0",
|
||||||
"babel-plugin-macros": "^2.5.1",
|
"babel-plugin-macros": "^2.6.1",
|
||||||
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
||||||
"chartkick": "^3.0.2",
|
"chartkick": "^3.0.2",
|
||||||
|
"core-js": "^2.0.0",
|
||||||
"debounce": "^1.2.0",
|
"debounce": "^1.2.0",
|
||||||
"dom4": "^2.1.4",
|
"dom4": "^2.1.5",
|
||||||
"highcharts": "^6.1.2",
|
"highcharts": "^6.1.2",
|
||||||
"intersection-observer": "^0.7.0",
|
"intersection-observer": "^0.7.0",
|
||||||
"jquery": "^3.4.1",
|
"jquery": "^3.4.1",
|
||||||
"leaflet": "^1.4.0",
|
"leaflet": "^1.4.0",
|
||||||
"leaflet-freedraw": "^2.10.0",
|
"leaflet-freedraw": "^2.10.0",
|
||||||
"prop-types": "^15.7.2",
|
"prop-types": "^15.7.2",
|
||||||
"rails-ujs": "^5.2.3",
|
|
||||||
"ramda": "=0.24.1",
|
"ramda": "=0.24.1",
|
||||||
"react": "^16.8.6",
|
"react": "^16.8.6",
|
||||||
"react-dom": "^16.8.6",
|
"react-dom": "^16.8.6",
|
||||||
|
@ -32,15 +34,15 @@
|
||||||
"turbolinks": "^5.2.0"
|
"turbolinks": "^5.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-eslint": "^10.0.1",
|
"babel-eslint": "^10.0.2",
|
||||||
"eclint": "^2.8.1",
|
"eclint": "^2.8.1",
|
||||||
"eslint": "^5.16.0",
|
"eslint": "^5.16.0",
|
||||||
"eslint-config-prettier": "^4.2.0",
|
"eslint-config-prettier": "^4.2.0",
|
||||||
"eslint-plugin-prettier": "^3.1.0",
|
"eslint-plugin-prettier": "^3.1.0",
|
||||||
"eslint-plugin-react": "^7.13.0",
|
"eslint-plugin-react": "^7.14.2",
|
||||||
"eslint-plugin-react-hooks": "^1.6.0",
|
"eslint-plugin-react-hooks": "^1.6.1",
|
||||||
"prettier": "^1.17.1",
|
"prettier": "^1.18.2",
|
||||||
"webpack-dev-server": "^3.3.1"
|
"webpack-dev-server": "^3.7.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint:ec": "eclint check $({ git ls-files ; find vendor -type f ; echo 'db/schema.rb' ; } | sort | uniq -u)",
|
"lint:ec": "eclint check $({ git ls-files ; find vendor -type f ; echo 'db/schema.rb' ; } | sort | uniq -u)",
|
||||||
|
|
Loading…
Reference in a new issue