Skip to content

Commit 0f38a2b

Browse files
committed
refactor: refactor, decrease dependencies (tbd)
1 parent 1519500 commit 0f38a2b

22 files changed

+192
-840
lines changed

package.json

+19-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
},
4040
"devDependencies": {
4141
"@babel/core": "^7.5.5",
42+
"@babel/plugin-transform-modules-commonjs": "^7.8.3",
4243
"@babel/polyfill": "^7.4.4",
4344
"@babel/preset-env": "^7.5.5",
4445
"@babel/preset-react": "^7.0.0",
@@ -72,6 +73,23 @@
7273
"jest": {
7374
"setupFiles": [
7475
"./test/setup-jest.js"
75-
]
76+
],
77+
"moduleFileExtensions": [
78+
"js",
79+
"jsx",
80+
"mjs"
81+
],
82+
"transform": {
83+
"^.+\\.(m?)js$": "babel-jest"
84+
},
85+
"moduleNameMapper": {
86+
"^vue$": "<rootDir>/node_modules/vue",
87+
"jquery$": "<rootDir>/node_modules/jquery/dist/jquery.min.js",
88+
"^bootstrapjs$": "<rootDir>/node_modules/bootstrap/dist/js/bootstrap.min.js",
89+
"^select2js$": "<rootDir>/node_modules/select2/dist/js/select2.min.js",
90+
"^shepherd.js$": "<rootDir>/node_modules/shepherd.js/dist/js/shepherd.esm.min.js",
91+
"^lodash$": "<rootDir>/node_modules/lodash/lodash.min.js",
92+
"^backbone$": "<rootDir>/node_modules/backbone/backbone-min.js"
93+
}
7694
}
7795
}

src/api/api.py

-236
This file was deleted.

src/api/example.xml

-119
This file was deleted.

src/api/inputData.xml

-1
This file was deleted.

0 commit comments

Comments
 (0)