Build cleanup
This commit is contained in:
parent
749666dc3c
commit
ff1d15eb5a
8
.babelrc
8
.babelrc
|
@ -1,8 +0,0 @@
|
||||||
{
|
|
||||||
"presets": [
|
|
||||||
"@babel/preset-env"
|
|
||||||
],
|
|
||||||
"plugins": [
|
|
||||||
"@babel/plugin-proposal-class-properties"
|
|
||||||
]
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
16
package.json
16
package.json
|
@ -3,6 +3,7 @@
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"description": "Core functions, classes and components for RecogitoJS",
|
"description": "Core functions, classes and components for RecogitoJS",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
|
"sideEffects": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "./node_modules/.bin/mocha --require @babel/register",
|
"test": "./node_modules/.bin/mocha --require @babel/register",
|
||||||
"build": "webpack --mode=production"
|
"build": "webpack --mode=production"
|
||||||
|
@ -21,21 +22,6 @@
|
||||||
"url": "https://github.com/recogito/recogito-client-core/issues"
|
"url": "https://github.com/recogito/recogito-client-core/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/recogito/recogito-client-core/wiki",
|
"homepage": "https://github.com/recogito/recogito-client-core/wiki",
|
||||||
"devDependencies": {
|
|
||||||
"@babel/core": "^7.14.3",
|
|
||||||
"@babel/plugin-proposal-class-properties": "^7.13.0",
|
|
||||||
"@babel/preset-env": "^7.14.4",
|
|
||||||
"@babel/preset-react": "^7.13.13",
|
|
||||||
"@babel/register": "^7.13.16",
|
|
||||||
"babel-loader": "^8.0.6",
|
|
||||||
"chai": "^4.2.0",
|
|
||||||
"css-loader": "^5.2.4",
|
|
||||||
"mocha": "^7.1.1",
|
|
||||||
"node-sass": "^5.0.0",
|
|
||||||
"sass-loader": "^10.2.0",
|
|
||||||
"webpack": "^4.46.0",
|
|
||||||
"webpack-cli": "^4.7.0"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"downshift": "^5.4.6",
|
"downshift": "^5.4.6",
|
||||||
"fast-deep-equal": "^3.1.3",
|
"fast-deep-equal": "^3.1.3",
|
||||||
|
|
|
@ -1,43 +0,0 @@
|
||||||
const path = require('path');
|
|
||||||
const fs = require('fs');
|
|
||||||
|
|
||||||
const APP_DIR = fs.realpathSync(process.cwd());
|
|
||||||
|
|
||||||
const resolveAppPath = relativePath => path.resolve(APP_DIR, relativePath);
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
entry: resolveAppPath('src'),
|
|
||||||
performance: {
|
|
||||||
hints: false
|
|
||||||
},
|
|
||||||
resolve: {
|
|
||||||
extensions: ['.js', '.jsx'],
|
|
||||||
alias: {
|
|
||||||
"react": "preact/compat",
|
|
||||||
"react-dom": "preact/compat"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
module: {
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
test: /\.(js|jsx)$/,
|
|
||||||
use: {
|
|
||||||
loader: 'babel-loader' ,
|
|
||||||
options: {
|
|
||||||
"presets": [
|
|
||||||
"@babel/preset-env",
|
|
||||||
"@babel/preset-react"
|
|
||||||
],
|
|
||||||
"plugins": [
|
|
||||||
[
|
|
||||||
"@babel/plugin-proposal-class-properties"
|
|
||||||
]
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{ test: /\.css$/, use: [ 'style-loader', 'css-loader'] },
|
|
||||||
{ test: /\.scss$/, use: [ 'style-loader', 'css-loader', 'sass-loader' ] }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue