@maxelms/create-plugin-cli 1.1.25-master.1 → 1.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/templates/angular-micro-app/.eslintrc.js +3 -0
- package/templates/angular-micro-app/README.md +5 -0
- package/templates/angular-micro-app/examples/main.css +2 -0
- package/templates/angular-micro-app/examples/main.js +2 -0
- package/templates/angular-micro-app/examples/main.js.LICENSE.txt +52 -0
- package/templates/angular-micro-app/examples/playground.html +1 -0
- package/templates/angular-micro-app/examples/react-dom.production.min.js +2 -0
- package/templates/angular-micro-app/examples/react-dom.production.min.js.LICENSE.txt +8 -0
- package/templates/angular-micro-app/examples/react.production.min.js +2 -0
- package/templates/angular-micro-app/examples/react.production.min.js.LICENSE.txt +8 -0
- package/templates/angular-micro-app/examples/vue.runtime.global.js +9054 -0
- package/templates/angular-micro-app/examples/zone.umd.min.js +2 -0
- package/templates/angular-micro-app/examples/zone.umd.min.js.LICENSE.txt +29 -0
- package/templates/angular-micro-app/manifest.json.tpl +3 -0
- package/templates/angular-micro-app/package.json.tpl +40 -0
- package/templates/angular-micro-app/pnpm-lock.yaml +7998 -0
- package/templates/angular-micro-app/public/configuration.json +34 -0
- package/templates/angular-micro-app/public/index.html.tpl +15 -0
- package/templates/angular-micro-app/src/about.component.ts +42 -0
- package/templates/angular-micro-app/src/app-routing.module.ts +12 -0
- package/templates/angular-micro-app/src/app.component.css +22 -0
- package/templates/angular-micro-app/src/app.component.html +304 -0
- package/templates/angular-micro-app/src/app.component.ts +42 -0
- package/templates/angular-micro-app/src/app.module.ts +27 -0
- package/templates/angular-micro-app/src/contact.component.ts +42 -0
- package/templates/angular-micro-app/src/home.component.ts +42 -0
- package/templates/angular-micro-app/src/index.ts +54 -0
- package/templates/angular-micro-app/src/props.service.ts +18 -0
- package/templates/angular-micro-app/src/single-spa-props.ts +7 -0
- package/templates/angular-micro-app/tsconfig.json +25 -0
- package/templates/angular-micro-app/webpack.config.js +112 -0
- package/templates/angular-micro-button/.eslintrc.js +3 -0
- package/templates/angular-micro-button/README.md +5 -0
- package/templates/angular-micro-button/manifest.json.tpl +3 -0
- package/templates/angular-micro-button/package.json.tpl +39 -0
- package/templates/angular-micro-button/pnpm-lock.yaml +7977 -0
- package/templates/angular-micro-button/public/configuration.json +34 -0
- package/templates/angular-micro-button/public/index.html.tpl +15 -0
- package/templates/angular-micro-button/src/app.component.css +10 -0
- package/templates/angular-micro-button/src/app.component.html +2 -0
- package/templates/angular-micro-button/src/app.component.ts.tpl +38 -0
- package/templates/angular-micro-button/src/app.module.ts +27 -0
- package/templates/angular-micro-button/src/components/content.component.css +116 -0
- package/templates/angular-micro-button/src/components/content.component.html +3 -0
- package/templates/angular-micro-button/src/components/content.component.ts +16 -0
- package/templates/angular-micro-button/src/index.ts.tpl +107 -0
- package/templates/angular-micro-button/src/master-props.ts +7 -0
- package/templates/angular-micro-button/tsconfig.json +25 -0
- package/templates/angular-micro-button/webpack.config.js +112 -0
- package/templates/angular-micro-field/.eslintrc.js +3 -0
- package/templates/angular-micro-field/README.md +5 -0
- package/templates/angular-micro-field/examples/main.css +2 -0
- package/templates/angular-micro-field/examples/main.js +2 -0
- package/templates/angular-micro-field/examples/main.js.LICENSE.txt +52 -0
- package/templates/angular-micro-field/examples/playground.html +1 -0
- package/templates/angular-micro-field/examples/react-dom.production.min.js +2 -0
- package/templates/angular-micro-field/examples/react-dom.production.min.js.LICENSE.txt +8 -0
- package/templates/angular-micro-field/examples/react.production.min.js +2 -0
- package/templates/angular-micro-field/examples/react.production.min.js.LICENSE.txt +8 -0
- package/templates/angular-micro-field/examples/vue.runtime.global.js +9054 -0
- package/templates/angular-micro-field/examples/zone.umd.min.js +2 -0
- package/templates/angular-micro-field/examples/zone.umd.min.js.LICENSE.txt +29 -0
- package/templates/angular-micro-field/manifest.json.tpl +3 -0
- package/templates/angular-micro-field/package.json.tpl +39 -0
- package/templates/angular-micro-field/pnpm-lock.yaml +7977 -0
- package/templates/angular-micro-field/public/configuration.json +34 -0
- package/templates/angular-micro-field/public/index.html.tpl +15 -0
- package/templates/angular-micro-field/src/app.component.css +10 -0
- package/templates/angular-micro-field/src/app.component.html +8 -0
- package/templates/angular-micro-field/src/app.component.ts.tpl +60 -0
- package/templates/angular-micro-field/src/app.module.ts +14 -0
- package/templates/angular-micro-field/src/components/content.component.css +116 -0
- package/templates/angular-micro-field/src/components/content.component.html +10 -0
- package/templates/angular-micro-field/src/components/content.component.ts +21 -0
- package/templates/angular-micro-field/src/index.ts.tpl +101 -0
- package/templates/angular-micro-field/src/master-props.ts +7 -0
- package/templates/angular-micro-field/tsconfig.json +25 -0
- package/templates/angular-micro-field/webpack.config.js +112 -0
- package/templates/angular-micro-plugin/package.json.tpl +2 -2
- package/templates/react-micro-app/package.json.tpl +6 -0
- package/templates/react-micro-button/package.json.tpl +5 -0
- package/templates/react-micro-button/src/index.tsx +1 -0
- package/templates/react-micro-field/package.json.tpl +5 -0
- package/templates/react-micro-field-umi/package.json.tpl +5 -0
- package/templates/react-micro-plugin/package.json.tpl +5 -0
- package/templates/react-micro-plugin-umi/package.json.tpl +5 -0
- package/templates/vue3-micro-button/package.json.tpl +1 -1
- package/templates/vue3-micro-field/package.json.tpl +1 -1
- package/templates/vue3-micro-plugin/package.json.tpl +1 -1
- package/templates/vue3vite-micro-button/package.json.tpl +1 -1
- package/templates/vue3vite-micro-plugin/package.json.tpl +1 -1
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
const path = require('path')
|
|
2
|
+
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
|
3
|
+
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
|
4
|
+
const { AngularWebpackPlugin } = require('@ngtools/webpack')
|
|
5
|
+
|
|
6
|
+
const isProduction = process.env.NODE_ENV == 'production'
|
|
7
|
+
|
|
8
|
+
const config = {
|
|
9
|
+
entry: {
|
|
10
|
+
index: './src/index.ts',
|
|
11
|
+
},
|
|
12
|
+
output: {
|
|
13
|
+
publicPath: '',
|
|
14
|
+
path: path.resolve(__dirname, 'dist'),
|
|
15
|
+
filename: isProduction
|
|
16
|
+
? '[name].[contenthash].bundle.js'
|
|
17
|
+
: '[name].bundle.js',
|
|
18
|
+
},
|
|
19
|
+
devServer: {
|
|
20
|
+
open: ['/', '/playground.html'],
|
|
21
|
+
host: 'localhost',
|
|
22
|
+
port: 8080,
|
|
23
|
+
headers: {
|
|
24
|
+
'Access-Control-Allow-Origin': '*',
|
|
25
|
+
},
|
|
26
|
+
proxy: {
|
|
27
|
+
'/api/': {
|
|
28
|
+
target: 'https://max-ai.maxelms.com/',
|
|
29
|
+
changeOrigin: true,
|
|
30
|
+
cookieDomainRewrite: '',
|
|
31
|
+
},
|
|
32
|
+
'/app/api/': {
|
|
33
|
+
target: 'https://max-ai.maxelms.com/',
|
|
34
|
+
changeOrigin: true,
|
|
35
|
+
cookieDomainRewrite: '',
|
|
36
|
+
},
|
|
37
|
+
'/app-admin/api/': {
|
|
38
|
+
target: 'https://max-ai.maxelms.com/',
|
|
39
|
+
changeOrigin: true,
|
|
40
|
+
cookieDomainRewrite: '',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
static: [{
|
|
44
|
+
directory: path.join(__dirname, 'examples/'),
|
|
45
|
+
}, {
|
|
46
|
+
directory: path.join(__dirname, 'public/'),
|
|
47
|
+
}],
|
|
48
|
+
},
|
|
49
|
+
plugins: [
|
|
50
|
+
new HtmlWebpackPlugin({
|
|
51
|
+
inject: true,
|
|
52
|
+
template: 'public/index.html',
|
|
53
|
+
chunks: ['index'],
|
|
54
|
+
filename: 'index.html',
|
|
55
|
+
}),
|
|
56
|
+
new CopyWebpackPlugin({
|
|
57
|
+
patterns: [
|
|
58
|
+
{
|
|
59
|
+
from: 'public',
|
|
60
|
+
globOptions: {
|
|
61
|
+
dot: true,
|
|
62
|
+
gitignore: true,
|
|
63
|
+
ignore: ['**/public/index.html', '**/public/configuration.html'],
|
|
64
|
+
},
|
|
65
|
+
noErrorOnMissing: true,
|
|
66
|
+
},
|
|
67
|
+
{ from: 'README.md' },
|
|
68
|
+
{ from: 'manifest.json' },
|
|
69
|
+
],
|
|
70
|
+
}),
|
|
71
|
+
new AngularWebpackPlugin({
|
|
72
|
+
tsconfig: './tsconfig.json',
|
|
73
|
+
jitMode: true,
|
|
74
|
+
}),
|
|
75
|
+
],
|
|
76
|
+
module: {
|
|
77
|
+
rules: [
|
|
78
|
+
{
|
|
79
|
+
test: /\.ts$/,
|
|
80
|
+
loader: '@ngtools/webpack',
|
|
81
|
+
exclude: /node_modules/,
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
test: /\.html$/,
|
|
85
|
+
use: 'raw-loader',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
test: /\.css$/,
|
|
89
|
+
use: ['to-string-loader', 'css-loader'],
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
test: /\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i,
|
|
93
|
+
type: 'asset',
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
resolve: {
|
|
98
|
+
extensions: ['.ts', '.js'],
|
|
99
|
+
alias: {
|
|
100
|
+
'@': path.resolve('src'),
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
module.exports = () => {
|
|
106
|
+
if (isProduction) {
|
|
107
|
+
config.mode = 'production'
|
|
108
|
+
} else {
|
|
109
|
+
config.mode = 'development'
|
|
110
|
+
}
|
|
111
|
+
return config
|
|
112
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "<%= pluginName %>",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"start": "webpack serve --mode development",
|
|
6
|
+
"build": "webpack --mode production && maxelms-plugin-cli -c"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"@angular/common": "13.0.0",
|
|
10
|
+
"@angular/core": "13.0.0",
|
|
11
|
+
"@angular/platform-browser": "13.0.0",
|
|
12
|
+
"@angular/platform-browser-dynamic": "13.0.0",
|
|
13
|
+
"@max-kit/eslint": "0.0.3-op-maxelms.0",
|
|
14
|
+
"@maxelms/create-plugin-cli": "1.1.24",
|
|
15
|
+
"@maxelms/create-pulgin-api": "1.0.0",
|
|
16
|
+
"@ngtools/webpack": "13",
|
|
17
|
+
"css-loader": "7.1.2",
|
|
18
|
+
"raw-loader": "4.0.2",
|
|
19
|
+
"rxjs": "7.0.0",
|
|
20
|
+
"single-spa": "4.0.0",
|
|
21
|
+
"single-spa-angular": "4.3.1",
|
|
22
|
+
"to-string-loader": "1.2.0"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@angular-devkit/build-angular": "13.0.0",
|
|
26
|
+
"@angular/compiler": "13.0.0",
|
|
27
|
+
"@angular/compiler-cli": "13.0.0",
|
|
28
|
+
"copy-webpack-plugin": "11.0.0",
|
|
29
|
+
"html-webpack-plugin": "5.5.0",
|
|
30
|
+
"ts-loader": "9.3.1",
|
|
31
|
+
"typescript": "4.4.4",
|
|
32
|
+
"webpack": "5.75.0",
|
|
33
|
+
"webpack-cli": "5.0.0",
|
|
34
|
+
"webpack-dev-server": "4.15.0"
|
|
35
|
+
},
|
|
36
|
+
"resolutions": {
|
|
37
|
+
"@types/node": "18.16.19"
|
|
38
|
+
}
|
|
39
|
+
}
|