Replaced Parcel bundler with Webpack.
parent
f136f75e11
commit
a8d7cb5499
File diff suppressed because it is too large
Load Diff
|
|
@ -4,20 +4,22 @@
|
||||||
"description": "JavaScript stuff for ccm-cms",
|
"description": "JavaScript stuff for ccm-cms",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm-run-all build:*:*",
|
"build": "npm-run-all build:*",
|
||||||
"build:ccm-admin:js": "parcel build --target --dist-dir target/generated-resources/assets/@content-sections src/main/typescript/content-sections/cms-admin.ts",
|
"build:js": "webpack",
|
||||||
"build:ccm-admin:css": "sass src/main/scss/content-sections/cms-admin.scss target/generated-resources/assets/@content-sections/cms-admin.css",
|
"build:css": "npm-run-all build:css:*",
|
||||||
"build:cms-article-text:js": "parcel build --target --dist-dir target/generated-resources/assets/@content-sections src/main/typescript/content-sections/article-text-step.ts"
|
"build:css:cms-admin": "sass src/main/scss/content-sections/cms-admin.scss target/generated-resources/assets/@content-sections/cms-admin.css"
|
||||||
},
|
},
|
||||||
"author": "Jens Pelzetter",
|
"author": "Jens Pelzetter",
|
||||||
"license": "LGPL-3.0-or-later",
|
"license": "LGPL-3.0-or-later",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@parcel/transformer-typescript-tsc": "^2.0.0-beta.1",
|
"@types/jquery": "^3.5.6",
|
||||||
"@types/sortablejs": "^1.10.7",
|
"@types/sortablejs": "^1.10.7",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"parcel": "^2.0.0-beta.2",
|
|
||||||
"sass": "^1.32.12",
|
"sass": "^1.32.12",
|
||||||
"typescript": "^4.2.4"
|
"ts-loader": "^9.2.5",
|
||||||
|
"typescript": "^4.2.4",
|
||||||
|
"webpack": "^5.51.1",
|
||||||
|
"webpack-cli": "^4.8.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tiptap/core": "^2.0.0-beta.46",
|
"@tiptap/core": "^2.0.0-beta.46",
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,40 @@
|
||||||
|
{
|
||||||
|
"name": "ccm-cms",
|
||||||
|
"version": "7.0.0",
|
||||||
|
"description": "JavaScript stuff for ccm-cms",
|
||||||
|
"main": "index.js",
|
||||||
|
"scripts": {
|
||||||
|
"build": "npm-run-all build:*:*",
|
||||||
|
"build:ccm-admin:js": "parcel build --target --dist-dir target/generated-resources/assets/@content-sections src/main/typescript/content-sections/cms-admin.ts",
|
||||||
|
"build:ccm-admin:css": "sass src/main/scss/content-sections/cms-admin.scss target/generated-resources/assets/@content-sections/cms-admin.css",
|
||||||
|
"build:cms-article-text:js": "parcel build --target --dist-dir target/generated-resources/assets/@content-sections src/main/typescript/content-sections/article-text-step.ts"
|
||||||
|
},
|
||||||
|
"author": "Jens Pelzetter",
|
||||||
|
"license": "LGPL-3.0-or-later",
|
||||||
|
"devDependencies": {
|
||||||
|
"@parcel/transformer-typescript-tsc": "^2.0.0-beta.1",
|
||||||
|
"@types/sortablejs": "^1.10.7",
|
||||||
|
"npm-run-all": "^4.1.5",
|
||||||
|
"parcel": "^2.0.0-beta.2",
|
||||||
|
"sass": "^1.32.12",
|
||||||
|
"typescript": "^4.2.4"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@tiptap/core": "^2.0.0-beta.46",
|
||||||
|
"@tiptap/extension-subscript": "^2.0.0-beta.4",
|
||||||
|
"@tiptap/extension-superscript": "^2.0.0-beta.4",
|
||||||
|
"@tiptap/extension-table": "^2.0.0-beta.29",
|
||||||
|
"@tiptap/extension-table-cell": "^2.0.0-beta.14",
|
||||||
|
"@tiptap/extension-table-header": "^2.0.0-beta.16",
|
||||||
|
"@tiptap/extension-table-row": "^2.0.0-beta.14",
|
||||||
|
"@tiptap/starter-kit": "^2.0.0-beta.43",
|
||||||
|
"bootstrap": "^4.6.0",
|
||||||
|
"bootstrap-icons": "^1.5.0",
|
||||||
|
"jquery": "^3.6.0",
|
||||||
|
"popper.js": "^1.16.1",
|
||||||
|
"sortablejs": "^1.14.0"
|
||||||
|
},
|
||||||
|
"targets": {
|
||||||
|
"main": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,40 @@
|
||||||
|
{
|
||||||
|
"name": "ccm-cms",
|
||||||
|
"version": "7.0.0",
|
||||||
|
"description": "JavaScript stuff for ccm-cms",
|
||||||
|
"main": "index.js",
|
||||||
|
"scripts": {
|
||||||
|
"build": "npm-run-all build:*:*",
|
||||||
|
"build:ccm-admin:js": "parcel build --target --dist-dir target/generated-resources/assets/@content-sections src/main/typescript/content-sections/cms-admin.ts",
|
||||||
|
"build:ccm-admin:css": "sass src/main/scss/content-sections/cms-admin.scss target/generated-resources/assets/@content-sections/cms-admin.css",
|
||||||
|
"build:cms-article-text:js": "parcel build --target --dist-dir target/generated-resources/assets/@content-sections src/main/typescript/content-sections/article-text-step.ts"
|
||||||
|
},
|
||||||
|
"author": "Jens Pelzetter",
|
||||||
|
"license": "LGPL-3.0-or-later",
|
||||||
|
"devDependencies": {
|
||||||
|
"@parcel/transformer-typescript-tsc": "^2.0.0-beta.3.1",
|
||||||
|
"@types/sortablejs": "^1.10.7",
|
||||||
|
"npm-run-all": "^4.1.5",
|
||||||
|
"parcel": "^2.0.0-beta.3.1",
|
||||||
|
"sass": "^1.32.12",
|
||||||
|
"typescript": "^4.2.4"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@tiptap/core": "^2.0.0-beta.46",
|
||||||
|
"@tiptap/extension-subscript": "^2.0.0-beta.4",
|
||||||
|
"@tiptap/extension-superscript": "^2.0.0-beta.4",
|
||||||
|
"@tiptap/extension-table": "^2.0.0-beta.29",
|
||||||
|
"@tiptap/extension-table-cell": "^2.0.0-beta.14",
|
||||||
|
"@tiptap/extension-table-header": "^2.0.0-beta.16",
|
||||||
|
"@tiptap/extension-table-row": "^2.0.0-beta.14",
|
||||||
|
"@tiptap/starter-kit": "^2.0.0-beta.43",
|
||||||
|
"bootstrap": "^4.6.0",
|
||||||
|
"bootstrap-icons": "^1.5.0",
|
||||||
|
"jquery": "^3.6.0",
|
||||||
|
"popper.js": "^1.16.1",
|
||||||
|
"sortablejs": "^1.14.0"
|
||||||
|
},
|
||||||
|
"targets": {
|
||||||
|
"main": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
{
|
|
||||||
"name": "ccm-cms",
|
|
||||||
"version": "7.0.0",
|
|
||||||
"description": "JavaScript stuff for ccm-cms",
|
|
||||||
"main": "index.js",
|
|
||||||
"scripts": {
|
|
||||||
"build": "npm-run-all build:*:*",
|
|
||||||
"build:ccm-admin:js": "webpack",
|
|
||||||
"build:ccm-admin:css": "sass src/main/scss/content-sections/cms-admin.scss target/generated-resources/assets/@content-sections/cms-admin.css"
|
|
||||||
},
|
|
||||||
"author": "Jens Pelzetter",
|
|
||||||
"license": "LGPL-3.0-or-later",
|
|
||||||
"devDependencies": {
|
|
||||||
"@parcel/transformer-typescript-tsc": "^2.0.0-beta.1",
|
|
||||||
"@types/bootstrap": "^5.0.15",
|
|
||||||
"npm-run-all": "^4.1.5",
|
|
||||||
"parcel": "^2.0.0-beta.2",
|
|
||||||
"sass": "^1.32.12",
|
|
||||||
"ts-loader": "^9.2.3",
|
|
||||||
"typescript": "^4.2.4",
|
|
||||||
"webpack": "^5.38.1",
|
|
||||||
"webpack-cli": "^4.7.2"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"@tiptap/core": "^2.0.0-beta.46",
|
|
||||||
"@tiptap/starter-kit": "^2.0.0-beta.43",
|
|
||||||
"bootstrap": "^4.6.0",
|
|
||||||
"bootstrap-icons": "^1.4.1",
|
|
||||||
"jquery": "^3.6.0",
|
|
||||||
"popper.js": "^1.16.1"
|
|
||||||
},
|
|
||||||
"targets": {
|
|
||||||
"main": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
"DOM",
|
"DOM",
|
||||||
"ES2016"
|
"ES2016"
|
||||||
],
|
],
|
||||||
"module": "umd",
|
"module": "commonjs",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"outDir": "target/generated-resources/assets/@content-sections",
|
"outDir": "target/generated-resources/assets/@content-sections",
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
mode: "production",
|
mode: "production",
|
||||||
devtool: "inline-source-map",
|
devtool: "source-map",
|
||||||
entry: {
|
entry: {
|
||||||
"cms-admin": "./src/main/typescript/content-sections/cms-admin.ts",
|
"cms-admin": "./src/main/typescript/content-sections/cms-admin.ts",
|
||||||
"cms-editor": "./src/main/typescript/content-sections/cms-editor.ts"
|
"article-text-step": "./src/main/typescript/content-sections/article-text-step.ts"
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
filename: "[name].js",
|
filename: "[name].js",
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -5,21 +5,27 @@
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npm-run-all build:*:*",
|
"build": "npm-run-all build:*:*",
|
||||||
"build:ccm-admin:js": "parcel build --out-dir target/generated-resources/assets/@admin src/main/typescript/ccm-admin/ccm-admin.ts",
|
"build:js": "webpack",
|
||||||
"build:ccm-admin:css": "sass src/main/scss/ccm-admin/ccm-admin.scss target/generated-resources/assets/@admin/ccm-admin.css"
|
"build:css": "npm-run-all build:css:*",
|
||||||
|
"build:css:ccm-admin": "sass src/main/scss/ccm-admin/ccm-admin.scss target/generated-resources/assets/@admin/ccm-admin.css"
|
||||||
},
|
},
|
||||||
"author": "Jens Pelzetter",
|
"author": "Jens Pelzetter",
|
||||||
"license": "LGPL-3.0-or-later",
|
"license": "LGPL-3.0-or-later",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"parcel-bundler": "^1.12.4",
|
|
||||||
"sass": "^1.26.10",
|
"sass": "^1.26.10",
|
||||||
"typescript": "^4.0.2"
|
"ts-loader": "^9.2.5",
|
||||||
|
"typescript": "^4.0.2",
|
||||||
|
"webpack": "^5.51.1",
|
||||||
|
"webpack-cli": "^4.8.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bootstrap": "^4.5.2",
|
"bootstrap": "^4.5.2",
|
||||||
"bootstrap-icons": "^1.5.0",
|
"bootstrap-icons": "^1.5.0",
|
||||||
"jquery": "^3.5.1",
|
"jquery": "^3.5.1",
|
||||||
"popper.js": "^1.16.1"
|
"popper.js": "^1.16.1"
|
||||||
|
},
|
||||||
|
"targets": {
|
||||||
|
"main": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
module.exports = {
|
||||||
|
mode: "production",
|
||||||
|
devtool: "source-map",
|
||||||
|
entry: {
|
||||||
|
"ccm-admin": "./src/main/typescript/ccm-admin.ts",
|
||||||
|
},
|
||||||
|
output: {
|
||||||
|
filename: "[name].js",
|
||||||
|
path: __dirname + "/target/generated-resources/assets/@content-sections"
|
||||||
|
},
|
||||||
|
resolve: {
|
||||||
|
extensions: [".tsx", ".ts", ".js", ".json"]
|
||||||
|
},
|
||||||
|
module: {
|
||||||
|
rules: [
|
||||||
|
// all files with a '.ts' or '.tsx' extension will be handled by 'ts-loader'
|
||||||
|
{ test: /\.tsx?$/, use: ["ts-loader"], exclude: /node_modules/ }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue