Remove webcomponent module, it must be part of mindplot.

This commit is contained in:
Paulo Gustavo Veiga 2021-12-02 12:52:49 -08:00
parent 74cc302316
commit 63f8ad7555
11 changed files with 0 additions and 190 deletions

View File

@ -1,3 +0,0 @@
lib/
node_module/

View File

@ -1,11 +0,0 @@
# `webcomponent`
> TODO: description
## Usage
```
import webcomponent from 'webcomponent';
// TODO: DEMONSTRATE API
```

View File

@ -1,7 +0,0 @@
'use strict';
import webcomponent from '..';
describe('webcomponent', () => {
it('needs tests');
});

View File

@ -1,50 +0,0 @@
{
"name": "@wisemapping/webcomponent",
"version": "0.0.1",
"description": "webcomponent Wisemapping",
"author": "Ezequiel-Vega <vegaezequiel51@gmail.com>",
"homepage": "https://www.wisemapping.com",
"license": "MIT",
"main": "dist/webcomponent.js",
"private": false,
"directories": {
"lib": "lib",
"test": "__tests__"
},
"files": [
"lib"
],
"publishConfig": {
"registry": "https://registry.yarnpkg.com"
},
"repository": {
"type": "git",
"url": "git@bitbucket.org:wisemapping/wisemapping-frontend.git"
},
"scripts": {
"start": "webpack serve --config webpack.dev.js",
"build": "webpack --config webpack.prod.js"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^4.31.0",
"@typescript-eslint/parser": "^4.31.0",
"babel-loader": "^8.2.2",
"clean-webpack-plugin": "^4.0.0",
"html-webpack-plugin": "^5.3.2",
"prettier": "^2.3.2",
"ts-loader": "^9.2.5",
"typescript": "^4.4.2",
"webpack": "^5.52.0",
"webpack-cli": "^4.8.0",
"webpack-merge": "^5.8.0",
"webpack-server": "^0.1.2"
},
"dependencies": {
"@wisemapping/mindplot": "^0.0.1",
"@wisemapping/core-js": "^0.0.1",
"@wisemapping/web2d": "^0.0.1",
"mootools": "1.4.5",
"react": "^17.0.2",
"react-dom": "^17.0.2"
}
}

View File

@ -1,11 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div id="root"></div>
</body>
</html>

View File

@ -1,10 +0,0 @@
import React from 'react';
import Mindplot from '@wisemapping/web2d';
const App = (): React.ReactElement => {
const mindplot = Mindplot();
console.log(mindplot);
return <div>Webcomponent</div>;
};
export default App;

View File

@ -1,6 +0,0 @@
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import 'mootools';
ReactDOM.render(<App />, document.getElementById('root'));

View File

@ -1,16 +0,0 @@
{
"compilerOptions": {
"outDir": "./lib/",
"sourceMap": true,
"noImplicitAny": false,
"types": ["node"],
"moduleResolution": "node",
"module": "es6",
"target": "es6",
"jsx": "react",
"allowJs": true,
"esModuleInterop": true
},
"include": ["./src/**/*"],
"exclude": ["node_modules"]
}

View File

@ -1,40 +0,0 @@
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
/** @type {import('webpack').Configuration} */
module.exports = {
entry: './src/index.tsx',
output: {
path: path.resolve(__dirname, 'lib'),
filename: 'webcomponent.js',
publicPath: '/',
},
module: {
rules: [
{
use: 'babel-loader',
test: /.(js|jsx)$/,
exclude: /node_modules/,
},
{
use: 'ts-loader',
test: /\.(ts|tsx)$/,
exclude: /node_modules/,
},
{
type: 'asset',
test: /\.(png|svg|jpg|jpeg|gif)$/i,
},
],
},
resolve: {
extensions: ['.ts', '.tsx', '.js', '.jsx', '.json'],
},
plugins: [
new CleanWebpackPlugin(),
new HtmlWebpackPlugin({
template: './public/index.html',
}),
],
};

View File

@ -1,20 +0,0 @@
const path = require('path');
const { HotModuleReplacementPlugin } = require('webpack');
const { merge } = require('webpack-merge');
const common = require('./webpack.common');
/** @type {import('webpack').Configuration} */
const devConfig = {
mode: 'development',
devServer: {
contentBase: path.join(__dirname, 'lib'),
compress: true,
port: 8080,
hot: true,
},
target: 'web',
plugins: [new HotModuleReplacementPlugin()],
devtool: 'eval-source-map',
};
module.exports = merge(common, devConfig);

View File

@ -1,16 +0,0 @@
const { merge } = require('webpack-merge');
const common = require('./webpack.common');
/** @type {import('webpack').Configuration} */
const prodConfig = {
mode: 'production',
devtool: 'source-map',
optimization: {
splitChunks: {
chunks: 'all',
minSize: 3000000,
},
},
};
module.exports = merge(common, prodConfig);