mirror of
https://github.com/dzeiocom/libs.git
synced 2025-04-22 19:02:14 +00:00
Moved from Webpack to Parcel
Signed-off-by: Florian Bouillon <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
50d28076bf
commit
e29eafd2d2
@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"presets": [
|
|
||||||
"@babel/preset-env"
|
|
||||||
]
|
|
||||||
}
|
|
@ -12,18 +12,13 @@
|
|||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.11.4",
|
"parcel": "^1.12.4",
|
||||||
"@babel/preset-env": "^7.11.0",
|
|
||||||
"babel-loader": "^8.1.0",
|
|
||||||
"ts-loader": "^8.0.3",
|
|
||||||
"ts-node": "^9.0.0",
|
"ts-node": "^9.0.0",
|
||||||
"typescript": "^4.0.3",
|
"typescript": "^4.0.3"
|
||||||
"webpack": "^5.10.0",
|
|
||||||
"webpack-cli": "^4.2.0"
|
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepublishOnly": "yarn build",
|
"prepublishOnly": "yarn build",
|
||||||
"build": "webpack --mode=\"production\" && tsc",
|
"build": "parcel build src/browser.ts --out-file browser.js --experimental-scope-hoisting && tsc",
|
||||||
"test": "tsc --noEmit"
|
"test": "tsc --noEmit"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
entry: './src/index',
|
|
||||||
output: {
|
|
||||||
path: __dirname,
|
|
||||||
filename: './dist/browser.js',
|
|
||||||
},
|
|
||||||
resolve: {
|
|
||||||
extensions: ['.js', '.ts'],
|
|
||||||
},
|
|
||||||
module: {
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
test: /\.ts$/, use: ['babel-loader', 'ts-loader'], exclude: /node_modules/
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"presets": [
|
|
||||||
"@babel/preset-env"
|
|
||||||
]
|
|
||||||
}
|
|
@ -15,20 +15,15 @@
|
|||||||
"ansi-colors": "^4.1.1"
|
"ansi-colors": "^4.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.10.3",
|
|
||||||
"@babel/preset-env": "^7.10.3",
|
|
||||||
"@typescript-eslint/eslint-plugin": "^4.5.0",
|
"@typescript-eslint/eslint-plugin": "^4.5.0",
|
||||||
"@typescript-eslint/parser": "^4.5.0",
|
"@typescript-eslint/parser": "^4.5.0",
|
||||||
"babel-loader": "^8.1.0",
|
|
||||||
"eslint": "^7.4.0",
|
"eslint": "^7.4.0",
|
||||||
"ts-loader": "^8.0.6",
|
"parcel": "^1.12.4",
|
||||||
"typescript": "^4.0.3",
|
"typescript": "^4.0.3"
|
||||||
"webpack": "^5.10.0",
|
|
||||||
"webpack-cli": "^4.2.0"
|
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepublishOnly": "yarn build",
|
"prepublishOnly": "yarn build",
|
||||||
"build": "webpack --mode=\"production\" && tsc",
|
"build": "parcel build src/index.ts --out-file browser.js --experimental-scope-hoisting && tsc",
|
||||||
"test": "ts-node test"
|
"test": "ts-node test"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../tsconfig.base.json",
|
"extends": "../../tsconfig.base.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "dist"
|
"outDir": "dist",
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"src/Logger.ts"
|
"src/Logger.ts"
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "./tsconfig.json",
|
|
||||||
"files": [
|
|
||||||
"test/index.ts"
|
|
||||||
]
|
|
||||||
}
|
|
@ -1,17 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
entry: './src/index',
|
|
||||||
output: {
|
|
||||||
path: __dirname,
|
|
||||||
filename: './dist/browser.js',
|
|
||||||
},
|
|
||||||
resolve: {
|
|
||||||
extensions: ['.js', '.ts'],
|
|
||||||
},
|
|
||||||
module: {
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
test: /\.ts$/, use: ['babel-loader', 'ts-loader'], exclude: /node_modules/
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"presets": [
|
|
||||||
["@babel/preset-env", {
|
|
||||||
"targets": {
|
|
||||||
"node": "current"
|
|
||||||
}
|
|
||||||
}],
|
|
||||||
"@babel/preset-typescript"
|
|
||||||
]
|
|
||||||
}
|
|
@ -12,23 +12,16 @@
|
|||||||
"main": "./dist/ObjectUtil.js",
|
"main": "./dist/ObjectUtil.js",
|
||||||
"types": "./dist/ObjectUtil.d.ts",
|
"types": "./dist/ObjectUtil.d.ts",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.11.4",
|
|
||||||
"@babel/preset-env": "^7.11.0",
|
|
||||||
"@babel/preset-typescript": "^7.10.4",
|
|
||||||
"@types/chai": "^4.2.12",
|
"@types/chai": "^4.2.12",
|
||||||
"@types/jest": "^26.0.10",
|
"@types/jest": "^26.0.10",
|
||||||
"babel-loader": "^8.1.0",
|
|
||||||
"codecov": "^3.7.2",
|
|
||||||
"jest": "^26.4.2",
|
"jest": "^26.4.2",
|
||||||
"ts-loader": "^8.0.3",
|
"parcel": "^1.12.4",
|
||||||
"ts-node": "^9.0.0",
|
"ts-node": "^9.0.0",
|
||||||
"typescript": "^4.0.2",
|
"typescript": "^4.0.2"
|
||||||
"webpack": "^5.10.0",
|
|
||||||
"webpack-cli": "^4.2.0"
|
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepublishOnly": "yarn build",
|
"prepublishOnly": "yarn build",
|
||||||
"build": "webpack --mode=\"production\" && tsc",
|
"build": "parcel build src/index.ts --out-file browser.js --experimental-scope-hoisting && tsc",
|
||||||
"test": "jest --coverage"
|
"test": "jest --coverage"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
entry: './src/index',
|
|
||||||
output: {
|
|
||||||
path: __dirname,
|
|
||||||
filename: './dist/browser.js',
|
|
||||||
},
|
|
||||||
resolve: {
|
|
||||||
extensions: ['.js', '.ts'],
|
|
||||||
},
|
|
||||||
module: {
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
test: /\.ts$/, use: ['babel-loader', 'ts-loader'], exclude: /node_modules/
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"presets": [
|
|
||||||
["@babel/preset-env", {
|
|
||||||
"targets": {
|
|
||||||
"node": "current"
|
|
||||||
}
|
|
||||||
}],
|
|
||||||
"@babel/preset-typescript"
|
|
||||||
]
|
|
||||||
}
|
|
@ -9,24 +9,17 @@
|
|||||||
"main": "./dist/URLManager.js",
|
"main": "./dist/URLManager.js",
|
||||||
"types": "./dist/URLManager.d.ts",
|
"types": "./dist/URLManager.d.ts",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.12.9",
|
|
||||||
"@babel/preset-env": "^7.11.0",
|
|
||||||
"@babel/preset-typescript": "^7.10.4",
|
|
||||||
"@types/chai": "^4.2.12",
|
"@types/chai": "^4.2.12",
|
||||||
"@types/jest": "^26.0.10",
|
"@types/jest": "^26.0.10",
|
||||||
"babel-loader": "^8.1.0",
|
|
||||||
"codecov": "^3.7.2",
|
|
||||||
"jest": "^26.4.2",
|
"jest": "^26.4.2",
|
||||||
|
"parcel": "^1.12.4",
|
||||||
"ts-jest": "^26.4.4",
|
"ts-jest": "^26.4.4",
|
||||||
"ts-loader": "^8.0.3",
|
|
||||||
"ts-node": "^9.0.0",
|
"ts-node": "^9.0.0",
|
||||||
"typescript": "^4.0.2",
|
"typescript": "^4.0.2"
|
||||||
"webpack": "^5.10.0",
|
|
||||||
"webpack-cli": "^4.2.0"
|
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepublishOnly": "yarn build",
|
"prepublishOnly": "yarn build",
|
||||||
"build": "webpack --mode=\"production\" && tsc",
|
"build": "parcel build src/index.ts --out-file browser.js --experimental-scope-hoisting && tsc",
|
||||||
"test": "jest --coverage"
|
"test": "jest --coverage"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
entry: './src/index',
|
|
||||||
output: {
|
|
||||||
path: __dirname,
|
|
||||||
filename: './dist/browser.js',
|
|
||||||
},
|
|
||||||
resolve: {
|
|
||||||
extensions: ['.js', '.ts'],
|
|
||||||
},
|
|
||||||
module: {
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
test: /\.ts$/, use: ['babel-loader', 'ts-loader'], exclude: /node_modules/
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user