Clean up build config files

This commit is contained in:
Paulo Gustavo Veiga 2021-12-18 14:55:01 -08:00
parent c3091d5e1d
commit 048104efde
9 changed files with 13 additions and 23 deletions

View File

@ -1,7 +1,7 @@
{ {
"compilerOptions": { "compilerOptions": {
"baseUrl": ".", "baseUrl": ".",
"module": "commonjs", "module": "ES6",
}, },
"exclude": ["node_modules"] "exclude": ["node_modules"]
} }

View File

@ -1,13 +1,10 @@
{ {
"name": "@wisemapping/core-js", "name": "@wisemapping/core-js",
"version": "0.0.1", "version": "0.4.0",
"description": "core-js", "description": "WiseMapping - Core Common Libraries",
"license": "ISC", "homepage": "http://www.wisemapping.org/",
"license": "MIT",
"main": "dist/core.js", "main": "dist/core.js",
"directories": {
"lib": "src",
"test": "__tests__"
},
"files": [ "files": [
"src" "src"
], ],

View File

@ -3,9 +3,7 @@
"baseUrl": ".", "baseUrl": ".",
"module": "ES6", "module": "ES6",
"paths": { "paths": {
"@libraries/*": ["../../libraries/*"], "@libraries/*": ["../../libraries/*"] }
"@wisemapping/web2d": ["../web2d/*"]
}
}, },
"exclude": ["node_modules"] "exclude": ["node_modules"]
} }

View File

@ -32,7 +32,7 @@
}, },
"dependencies": { "dependencies": {
"@wisemapping/core-js": "^0.0.1", "@wisemapping/core-js": "^0.0.1",
"@wisemapping/web2d": "^0.0.1", "@wisemapping/web2d": "^0.4.0",
"jest": "^27.4.3", "jest": "^27.4.3",
"jquery": "^3.6.0", "jquery": "^3.6.0",
"lodash": "^4.17.21" "lodash": "^4.17.21"

View File

@ -26,7 +26,6 @@ module.exports = {
resolve: { resolve: {
alias: { alias: {
'@libraries': path.resolve(__dirname, '../../libraries/'), '@libraries': path.resolve(__dirname, '../../libraries/'),
'@wisemapping/web2d': path.resolve(__dirname, '../web2d/'),
}, },
extensions: ['.js', '.json'], extensions: ['.js', '.json'],
}, },

View File

@ -1,7 +1,7 @@
{ {
"compilerOptions": { "compilerOptions": {
"baseUrl": ".", "baseUrl": ".",
"module": "commonjs", "module": "ES6",
}, },
"exclude": ["node_modules"] "exclude": ["node_modules"]
} }

View File

@ -1,21 +1,17 @@
{ {
"name": "@wisemapping/web2d", "name": "@wisemapping/web2d",
"version": "0.0.1", "version": "0.4.0",
"description": "WiseMapping - Web2D Render Library", "description": "WiseMapping - Web2D Render Library",
"homepage": "http://www.wisemapping.org/", "homepage": "http://www.wisemapping.org/",
"license": "ISC", "license": "MIT",
"main": "dist/main.js", "main": "dist/web2d.js",
"directories": {
"src": "src",
"test": "__tests__"
},
"files": [ "files": [
"src" "src"
], ],
"private": false,
"publishConfig": { "publishConfig": {
"registry": "https://registry.yarnpkg.com" "registry": "https://registry.yarnpkg.com"
}, },
"private": false,
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git@bitbucket.org:wisemapping/wisemapping-frontend.git" "url": "git@bitbucket.org:wisemapping/wisemapping-frontend.git"

View File

@ -5,7 +5,7 @@ const { CleanWebpackPlugin } = require('clean-webpack-plugin');
module.exports = { module.exports = {
output: { output: {
path: path.resolve(__dirname, 'dist'), path: path.resolve(__dirname, 'dist'),
filename: '[name].js', filename: 'web2d.js',
publicPath: '', publicPath: '',
library: { library: {
type: 'umd', type: 'umd',