@mongodb-js/compass-indexes 4.21.0 → 4.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -69
- package/dist/browser.js +2 -0
- package/dist/browser.js.LICENSE.txt +22 -0
- package/dist/index.css +449 -0
- package/dist/index.html +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.LICENSE.txt +188 -0
- package/package.json +72 -112
- package/.babelrc.js +0 -24
- package/.browserslistrc +0 -1
- package/.depcheckrc +0 -17
- package/lib/index.js +0 -21
@@ -0,0 +1,188 @@
|
|
1
|
+
/*
|
2
|
+
object-assign
|
3
|
+
(c) Sindre Sorhus
|
4
|
+
@license MIT
|
5
|
+
*/
|
6
|
+
|
7
|
+
/*!
|
8
|
+
Copyright (c) 2017 Jed Watson.
|
9
|
+
Licensed under the MIT License (MIT), see
|
10
|
+
http://jedwatson.github.io/react-select
|
11
|
+
*/
|
12
|
+
|
13
|
+
/*!
|
14
|
+
Copyright (c) 2018 Jed Watson.
|
15
|
+
Licensed under the MIT License (MIT), see
|
16
|
+
http://jedwatson.github.io/classnames
|
17
|
+
*/
|
18
|
+
|
19
|
+
/*!
|
20
|
+
* Copyright 2010 LearnBoost <dev@learnboost.com>
|
21
|
+
*
|
22
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
23
|
+
* you may not use this file except in compliance with the License.
|
24
|
+
* You may obtain a copy of the License at
|
25
|
+
*
|
26
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
27
|
+
*
|
28
|
+
* Unless required by applicable law or agreed to in writing, software
|
29
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
30
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
31
|
+
* See the License for the specific language governing permissions and
|
32
|
+
* limitations under the License.
|
33
|
+
*/
|
34
|
+
|
35
|
+
/*!
|
36
|
+
* Copyright (c) 2015, Salesforce.com, Inc.
|
37
|
+
* All rights reserved.
|
38
|
+
*
|
39
|
+
* Redistribution and use in source and binary forms, with or without
|
40
|
+
* modification, are permitted provided that the following conditions are met:
|
41
|
+
*
|
42
|
+
* 1. Redistributions of source code must retain the above copyright notice,
|
43
|
+
* this list of conditions and the following disclaimer.
|
44
|
+
*
|
45
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
46
|
+
* this list of conditions and the following disclaimer in the documentation
|
47
|
+
* and/or other materials provided with the distribution.
|
48
|
+
*
|
49
|
+
* 3. Neither the name of Salesforce.com nor the names of its contributors may
|
50
|
+
* be used to endorse or promote products derived from this software without
|
51
|
+
* specific prior written permission.
|
52
|
+
*
|
53
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
54
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
55
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
56
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
57
|
+
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
58
|
+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
59
|
+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
60
|
+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
61
|
+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
62
|
+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
63
|
+
* POSSIBILITY OF SUCH DAMAGE.
|
64
|
+
*/
|
65
|
+
|
66
|
+
/*!
|
67
|
+
* Copyright (c) 2018, Salesforce.com, Inc.
|
68
|
+
* All rights reserved.
|
69
|
+
*
|
70
|
+
* Redistribution and use in source and binary forms, with or without
|
71
|
+
* modification, are permitted provided that the following conditions are met:
|
72
|
+
*
|
73
|
+
* 1. Redistributions of source code must retain the above copyright notice,
|
74
|
+
* this list of conditions and the following disclaimer.
|
75
|
+
*
|
76
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
77
|
+
* this list of conditions and the following disclaimer in the documentation
|
78
|
+
* and/or other materials provided with the distribution.
|
79
|
+
*
|
80
|
+
* 3. Neither the name of Salesforce.com nor the names of its contributors may
|
81
|
+
* be used to endorse or promote products derived from this software without
|
82
|
+
* specific prior written permission.
|
83
|
+
*
|
84
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
85
|
+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
86
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
87
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
88
|
+
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
89
|
+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
90
|
+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
91
|
+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
92
|
+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
93
|
+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
94
|
+
* POSSIBILITY OF SUCH DAMAGE.
|
95
|
+
*/
|
96
|
+
|
97
|
+
/*!
|
98
|
+
* Programatically add the following
|
99
|
+
*/
|
100
|
+
|
101
|
+
/*!
|
102
|
+
* mime-db
|
103
|
+
* Copyright(c) 2014 Jonathan Ong
|
104
|
+
* MIT Licensed
|
105
|
+
*/
|
106
|
+
|
107
|
+
/*!
|
108
|
+
* mime-types
|
109
|
+
* Copyright(c) 2014 Jonathan Ong
|
110
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
111
|
+
* MIT Licensed
|
112
|
+
*/
|
113
|
+
|
114
|
+
/*!
|
115
|
+
* focus-trap 6.5.1
|
116
|
+
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
117
|
+
*/
|
118
|
+
|
119
|
+
/*!
|
120
|
+
* tabbable 5.2.0
|
121
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
122
|
+
*/
|
123
|
+
|
124
|
+
/*! @preserve
|
125
|
+
* numeral.js
|
126
|
+
* version : 2.0.6
|
127
|
+
* author : Adam Draper
|
128
|
+
* license : MIT
|
129
|
+
* http://adamwdraper.github.com/Numeral-js/
|
130
|
+
*/
|
131
|
+
|
132
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
133
|
+
|
134
|
+
/**
|
135
|
+
* @license
|
136
|
+
* Lodash <https://lodash.com/>
|
137
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
138
|
+
* Released under MIT license <https://lodash.com/license>
|
139
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
140
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
141
|
+
*/
|
142
|
+
|
143
|
+
/** @license React v0.19.1
|
144
|
+
* scheduler.production.min.js
|
145
|
+
*
|
146
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
147
|
+
*
|
148
|
+
* This source code is licensed under the MIT license found in the
|
149
|
+
* LICENSE file in the root directory of this source tree.
|
150
|
+
*/
|
151
|
+
|
152
|
+
/** @license React v16.13.1
|
153
|
+
* react-is.production.min.js
|
154
|
+
*
|
155
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
156
|
+
*
|
157
|
+
* This source code is licensed under the MIT license found in the
|
158
|
+
* LICENSE file in the root directory of this source tree.
|
159
|
+
*/
|
160
|
+
|
161
|
+
/** @license React v16.14.0
|
162
|
+
* react-dom.production.min.js
|
163
|
+
*
|
164
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
165
|
+
*
|
166
|
+
* This source code is licensed under the MIT license found in the
|
167
|
+
* LICENSE file in the root directory of this source tree.
|
168
|
+
*/
|
169
|
+
|
170
|
+
/** @license React v16.14.0
|
171
|
+
* react.production.min.js
|
172
|
+
*
|
173
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
174
|
+
*
|
175
|
+
* This source code is licensed under the MIT license found in the
|
176
|
+
* LICENSE file in the root directory of this source tree.
|
177
|
+
*/
|
178
|
+
|
179
|
+
/** @license React v17.0.2
|
180
|
+
* react-is.production.min.js
|
181
|
+
*
|
182
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
183
|
+
*
|
184
|
+
* This source code is licensed under the MIT license found in the
|
185
|
+
* LICENSE file in the root directory of this source tree.
|
186
|
+
*/
|
187
|
+
|
188
|
+
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
|
package/package.json
CHANGED
@@ -1,42 +1,68 @@
|
|
1
1
|
{
|
2
2
|
"name": "@mongodb-js/compass-indexes",
|
3
3
|
"productName": "Compass Indexes plugin",
|
4
|
-
"
|
5
|
-
"
|
6
|
-
"
|
7
|
-
|
4
|
+
"description": "Collection index management for Compass",
|
5
|
+
"version": "4.24.0",
|
6
|
+
"author": {
|
7
|
+
"name": "MongoDB Inc",
|
8
|
+
"email": "compass@mongodb.com"
|
9
|
+
},
|
10
|
+
"publishConfig": {
|
11
|
+
"access": "public"
|
12
|
+
},
|
13
|
+
"repository": {
|
14
|
+
"type": "git",
|
15
|
+
"url": "https://github.com/mongodb-js/compass.git"
|
16
|
+
},
|
17
|
+
"license": "SSPL",
|
18
|
+
"homepage": "https://github.com/mongodb-js/compass",
|
19
|
+
"bugs": {
|
20
|
+
"url": "https://jira.mongodb.org/projects/COMPASS/issues",
|
21
|
+
"email": "compass@mongodb.com"
|
22
|
+
},
|
23
|
+
"files": [
|
24
|
+
"dist"
|
25
|
+
],
|
26
|
+
"main": "dist/index.js",
|
27
|
+
"compass:main": "src/index.js",
|
8
28
|
"exports": {
|
9
|
-
"
|
10
|
-
"
|
29
|
+
"require": "./dist/index.js",
|
30
|
+
"browser": "./dist/browser.js"
|
31
|
+
},
|
32
|
+
"compass:exports": {
|
33
|
+
".": "./src/index.js"
|
11
34
|
},
|
35
|
+
"types": "./dist/index.d.ts",
|
12
36
|
"scripts": {
|
13
|
-
"clean": "rimraf lib",
|
14
|
-
"precompile": "npm run clean",
|
15
|
-
"compile": "cross-env NODE_ENV=production webpack --config ./config/webpack.prod.config.js",
|
16
|
-
"start": "webpack-dev-server --config ./config/webpack.dev.config.js",
|
17
|
-
"start:watch": "npm run clean && webpack --config ./config/webpack.watch.config.js",
|
18
|
-
"test": "cross-env NODE_ENV=test mocha-webpack \"./src/**/*.spec.js\"",
|
19
|
-
"test:watch": "cross-env NODE_ENV=test mocha-webpack \"./src/**/*.spec.js\" --watch",
|
20
|
-
"test:karma": "xvfb-maybe cross-env NODE_ENV=test karma start",
|
21
|
-
"cover": "nyc npm run test",
|
22
|
-
"test-check-ci": "npm run cover && npm run test:karma && npm run compile && npm run check",
|
23
|
-
"check": "npm run lint && npm run depcheck",
|
24
37
|
"prepublishOnly": "npm run compile",
|
25
|
-
"
|
38
|
+
"compile": "npm run webpack -- --mode production",
|
39
|
+
"prewebpack": "rimraf ./dist",
|
40
|
+
"webpack": "webpack-compass",
|
41
|
+
"start": "npm run webpack serve -- --mode development",
|
42
|
+
"analyze": "npm run webpack -- --mode production --analyze",
|
43
|
+
"typecheck": "tsc --noEmit",
|
44
|
+
"eslint": "eslint",
|
45
|
+
"prettier": "prettier",
|
46
|
+
"lint": "npm run eslint . && npm run prettier -- --check .",
|
26
47
|
"depcheck": "depcheck",
|
27
|
-
"
|
28
|
-
"
|
48
|
+
"check": "npm run typecheck && npm run lint && npm run depcheck",
|
49
|
+
"check-ci": "npm run check",
|
50
|
+
"test": "mocha",
|
51
|
+
"test-electron": "xvfb-maybe electron-mocha --no-sandbox",
|
52
|
+
"test-cov": "nyc -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
|
53
|
+
"test-watch": "npm run test -- --watch",
|
54
|
+
"test-ci": "npm run test-cov",
|
55
|
+
"test-ci-electron": "npm run test-electron",
|
56
|
+
"reformat": "npm run prettier -- --write ."
|
29
57
|
},
|
30
|
-
"license": "SSPL",
|
31
58
|
"peerDependencies": {
|
32
|
-
"@
|
33
|
-
"@mongodb-js/compass-
|
34
|
-
"@mongodb-js/compass-deployment-awareness": "^11.19.0",
|
59
|
+
"@mongodb-js/compass-components": "^0.14.0",
|
60
|
+
"@mongodb-js/compass-deployment-awareness": "^11.22.0",
|
35
61
|
"bson": "^4.4.1",
|
36
62
|
"debug": "4.3.0",
|
37
|
-
"hadron-react-buttons": "^5.
|
38
|
-
"hadron-react-components": "^5.
|
39
|
-
"mongodb-index-model": "^3.
|
63
|
+
"hadron-react-buttons": "^5.8.0",
|
64
|
+
"hadron-react-components": "^5.14.0",
|
65
|
+
"mongodb-index-model": "^3.10.0",
|
40
66
|
"prop-types": "^15.7.2",
|
41
67
|
"react": "^16.14.0",
|
42
68
|
"react-dom": "^16.14.0",
|
@@ -47,118 +73,52 @@
|
|
47
73
|
"redux-thunk": "^2.3.0"
|
48
74
|
},
|
49
75
|
"devDependencies": {
|
50
|
-
"@
|
51
|
-
"@
|
52
|
-
"@
|
53
|
-
"@
|
54
|
-
"@
|
55
|
-
"@
|
56
|
-
"@
|
57
|
-
"@hot-loader/react-dom": "^16.9.0",
|
58
|
-
"@mongodb-js/compass-components": "^0.11.0",
|
59
|
-
"@mongodb-js/compass-deployment-awareness": "^11.19.0",
|
60
|
-
"@mongodb-js/compass-field-store": "^7.19.0",
|
61
|
-
"autoprefixer": "^9.4.6",
|
62
|
-
"babel-loader": "^8.2.2",
|
76
|
+
"@mongodb-js/compass-components": "^0.14.0",
|
77
|
+
"@mongodb-js/compass-deployment-awareness": "^11.22.0",
|
78
|
+
"@mongodb-js/eslint-config-compass": "^0.8.0",
|
79
|
+
"@mongodb-js/mocha-config-compass": "^0.10.0",
|
80
|
+
"@mongodb-js/prettier-config-compass": "^0.5.0",
|
81
|
+
"@mongodb-js/tsconfig-compass": "^0.6.0",
|
82
|
+
"@mongodb-js/webpack-config-compass": "^0.8.0",
|
63
83
|
"bson": "^4.4.1",
|
64
84
|
"chai": "^4.2.0",
|
65
|
-
"chai-enzyme": "1.0.0-beta.1",
|
66
85
|
"classnames": "^2.2.6",
|
67
|
-
"core-js": "^3.12.1",
|
68
|
-
"cross-env": "^7.0.0",
|
69
|
-
"css-loader": "^4.3.0",
|
70
86
|
"debug": "4.3.0",
|
71
87
|
"depcheck": "^1.4.1",
|
72
88
|
"electron": "^13.5.1",
|
73
89
|
"enzyme": "^3.11.0",
|
74
|
-
"enzyme-adapter-react-16": "^1.15.2",
|
75
90
|
"eslint": "^7.25.0",
|
76
|
-
"
|
77
|
-
"
|
78
|
-
"
|
79
|
-
"
|
80
|
-
"
|
81
|
-
"
|
82
|
-
"
|
83
|
-
"hadron-react-buttons": "^5.7.0",
|
84
|
-
"hadron-react-components": "^5.11.0",
|
85
|
-
"html-webpack-plugin": "^3.2.0",
|
86
|
-
"ignore-loader": "^0.1.2",
|
87
|
-
"istanbul-instrumenter-loader": "^3.0.1",
|
88
|
-
"jsdom": "^16.7.0",
|
89
|
-
"jsdom-global": "^3.0.2",
|
90
|
-
"karma": "^6.3.4",
|
91
|
-
"karma-chai": "^0.1.0",
|
92
|
-
"karma-chai-sinon": "^0.1.5",
|
93
|
-
"karma-electron": "^7.0.0",
|
94
|
-
"karma-mocha": "^1.3.0",
|
95
|
-
"karma-mocha-reporter": "^2.2.5",
|
96
|
-
"karma-sinon": "^1.0.5",
|
97
|
-
"karma-sourcemap-loader": "^0.3.8",
|
98
|
-
"karma-webpack": "^4.0.2",
|
99
|
-
"less": "^3.11.1",
|
100
|
-
"less-loader": "^7.3.0",
|
101
|
-
"mocha": "^7.0.1",
|
102
|
-
"mocha-webpack": "^2.0.0-beta.0",
|
103
|
-
"mongodb-connection-model": "^21.13.0",
|
104
|
-
"mongodb-data-service": "^21.17.0",
|
105
|
-
"mongodb-index-model": "^3.9.0",
|
106
|
-
"mongodb-reflux-store": "^0.0.1",
|
107
|
-
"node-loader": "^0.6.0",
|
108
|
-
"nyc": "^15.0.0",
|
109
|
-
"peer-deps-externals-webpack-plugin": "^1.0.4",
|
110
|
-
"postcss-loader": "^2.1.6",
|
91
|
+
"hadron-app": "^4.22.0",
|
92
|
+
"hadron-app-registry": "^8.11.0",
|
93
|
+
"hadron-react-buttons": "^5.8.0",
|
94
|
+
"hadron-react-components": "^5.14.0",
|
95
|
+
"mocha": "^8.4.0",
|
96
|
+
"mongodb-index-model": "^3.10.0",
|
97
|
+
"nyc": "^15.1.0",
|
111
98
|
"prop-types": "^15.7.2",
|
112
99
|
"react": "^16.14.0",
|
113
100
|
"react-dom": "^16.14.0",
|
114
|
-
"react-hot-loader": "^4.13.0",
|
115
101
|
"react-redux": "^5.0.6",
|
116
102
|
"react-select-plus": "^1.2.0",
|
117
103
|
"redux": "^4.1.2",
|
118
104
|
"redux-thunk": "^2.3.0",
|
119
105
|
"reflux-state-mixin": "github:mongodb-js/reflux-state-mixin",
|
120
|
-
"
|
121
|
-
"
|
122
|
-
"semver": "^5.4.1",
|
123
|
-
"shebang-loader": "^0.0.1",
|
124
|
-
"sinon": "^8.1.1",
|
125
|
-
"sinon-chai": "^3.4.0",
|
126
|
-
"style-loader": "^2.0.0",
|
127
|
-
"url-loader": "^3.0.0",
|
128
|
-
"webpack": "^4.46.0",
|
129
|
-
"webpack-bundle-analyzer": "^3.6.0",
|
130
|
-
"webpack-cli": "^3.3.12",
|
131
|
-
"webpack-dev-server": "^3.11.2",
|
132
|
-
"webpack-merge": "^4.2.2",
|
133
|
-
"webpack-node-externals": "^3.0.0",
|
106
|
+
"rimraf": "^3.0.2",
|
107
|
+
"sinon": "^9.2.3",
|
134
108
|
"xvfb-maybe": "^0.2.1"
|
135
109
|
},
|
136
110
|
"dependencies": {
|
137
|
-
"@mongodb-js/compass-logging": "^0.
|
138
|
-
"@mongodb-js/mongodb-redux-common": "^1.
|
111
|
+
"@mongodb-js/compass-logging": "^0.11.0",
|
112
|
+
"@mongodb-js/mongodb-redux-common": "^1.11.0",
|
139
113
|
"lodash.contains": "^2.4.3",
|
140
114
|
"lodash.isundefined": "^3.0.1",
|
141
115
|
"lodash.map": "^4.6.0",
|
142
116
|
"lodash.max": "^4.0.1",
|
143
117
|
"lodash.pick": "^4.4.0",
|
144
118
|
"lodash.pluck": "^3.1.2",
|
145
|
-
"lodash.sortby": "^4.7.0",
|
146
|
-
"lodash.sortbyorder": "^3.4.4",
|
147
|
-
"lodash.trim": "^4.5.1",
|
148
|
-
"lodash.zipobject": "^4.1.3",
|
149
|
-
"mongodb-ns": "^2.3.0",
|
150
119
|
"numeral": "^2.0.6",
|
151
120
|
"react-bootstrap": "^0.32.1",
|
152
121
|
"reflux": "^0.4.1"
|
153
122
|
},
|
154
|
-
"
|
155
|
-
"bugs": {
|
156
|
-
"url": "https://jira.mongodb.org/projects/COMPASS/issues",
|
157
|
-
"email": "compass@mongodb.com"
|
158
|
-
},
|
159
|
-
"repository": {
|
160
|
-
"type": "git",
|
161
|
-
"url": "https://github.com/mongodb-js/compass.git"
|
162
|
-
},
|
163
|
-
"gitHead": "2bb63cdb1d4e825f280c0d2af14b7298c5769490"
|
123
|
+
"gitHead": "2c4149184e87b8340851590663287b914d7ee63e"
|
164
124
|
}
|
package/.babelrc.js
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
module.exports = (api) => {
|
2
|
-
api.cache.using(() => process.env.NODE_ENV);
|
3
|
-
|
4
|
-
return {
|
5
|
-
presets: [
|
6
|
-
[
|
7
|
-
require.resolve('@babel/preset-env'),
|
8
|
-
{
|
9
|
-
modules: api.env('test') ? 'commonjs' : false,
|
10
|
-
useBuiltIns: 'usage',
|
11
|
-
corejs: { version: '3.12', proposals: true }
|
12
|
-
}
|
13
|
-
],
|
14
|
-
require.resolve('@babel/preset-react')
|
15
|
-
],
|
16
|
-
plugins: [
|
17
|
-
require.resolve('@babel/plugin-syntax-dynamic-import'),
|
18
|
-
[require.resolve('@babel/plugin-proposal-decorators'), { legacy: true }],
|
19
|
-
// TODO: Replace with 'fast-refresh'
|
20
|
-
// https://github.com/gaearon/react-hot-loader#moving-towards-next-step
|
21
|
-
api.env('development') && require.resolve('react-hot-loader/babel')
|
22
|
-
].filter(Boolean)
|
23
|
-
};
|
24
|
-
}
|
package/.browserslistrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Electron >= 6
|
package/.depcheckrc
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
ignores: [
|
2
|
-
"lodash.sortbyorder",
|
3
|
-
"lodash.trim",
|
4
|
-
"lodash.zipobject",
|
5
|
-
"@babel/cli",
|
6
|
-
"@babel/register",
|
7
|
-
"core-js",
|
8
|
-
"font-awesome",
|
9
|
-
"hadron-react-bson",
|
10
|
-
"karma-electron",
|
11
|
-
"karma-sourcemap-loader",
|
12
|
-
"karma-webpack",
|
13
|
-
"resolve",
|
14
|
-
"webpack-bundle-analyzer",
|
15
|
-
"webpack-cli",
|
16
|
-
"mongodb-compass"
|
17
|
-
]
|