signalk-ais-navionics-converter 1.0.1 → 1.0.3
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/.babelrc +24 -0
- package/README.md +30 -18
- package/ais-encoder.js +543 -66
- package/index.js +337 -155
- package/package.json +26 -3
- package/public/main.js +310 -0
- package/public/remoteEntry.js +514 -0
- package/public/src_components_PluginConfigurationPanel_jsx.js +22 -0
- package/public/vendors-node_modules_react_index_js.js +76 -0
- package/src/components/PluginConfigurationPanel.jsx +864 -0
- package/src/index.js +0 -0
- package/webpack.config.js +55 -0
- package/.github/workflows/npm-publish.yml +0 -21
package/src/index.js
ADDED
|
File without changes
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
const { ModuleFederationPlugin } = require('webpack').container;
|
|
3
|
+
const { WatchIgnorePlugin } = require('webpack');
|
|
4
|
+
require('@signalk/server-admin-ui-dependencies');
|
|
5
|
+
const packageJson = require('./package.json');
|
|
6
|
+
|
|
7
|
+
console.log(packageJson.name.replace(/[-@/]/g, '_'));
|
|
8
|
+
|
|
9
|
+
module.exports = {
|
|
10
|
+
entry: './src/index',
|
|
11
|
+
mode: 'development',
|
|
12
|
+
output: {
|
|
13
|
+
path: path.resolve(__dirname, 'public')
|
|
14
|
+
},
|
|
15
|
+
module: {
|
|
16
|
+
rules: [
|
|
17
|
+
{
|
|
18
|
+
test: /\.jsx?$/,
|
|
19
|
+
loader: 'babel-loader',
|
|
20
|
+
exclude: /node_modules/,
|
|
21
|
+
options: {
|
|
22
|
+
presets: ['@babel/preset-react']
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
test: /\.css$/,
|
|
27
|
+
use: [
|
|
28
|
+
'style-loader',
|
|
29
|
+
'css-loader'
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
test: /\.(png|svg|jpg|gif)$/,
|
|
34
|
+
loader: 'file-loader',
|
|
35
|
+
options: {
|
|
36
|
+
name: '[path][name].[ext]'
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
plugins: [
|
|
42
|
+
new ModuleFederationPlugin({
|
|
43
|
+
name: packageJson.name.replace(/[-@/]/g, '_'),
|
|
44
|
+
library: { type: 'var', name: packageJson.name.replace(/[-@/]/g, '_') },
|
|
45
|
+
filename: 'remoteEntry.js',
|
|
46
|
+
exposes: {
|
|
47
|
+
'./PluginConfigurationPanel': './src/components/PluginConfigurationPanel.jsx'
|
|
48
|
+
},
|
|
49
|
+
shared: [{ react: { singleton: true } }]
|
|
50
|
+
}),
|
|
51
|
+
new WatchIgnorePlugin({
|
|
52
|
+
paths: [path.resolve(__dirname, 'public/')]
|
|
53
|
+
})
|
|
54
|
+
]
|
|
55
|
+
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
name: Manual npm Publish
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
workflow_dispatch: # nur manuell auslösbar
|
|
5
|
-
|
|
6
|
-
jobs:
|
|
7
|
-
publish:
|
|
8
|
-
runs-on: ubuntu-latest
|
|
9
|
-
steps:
|
|
10
|
-
- uses: actions/checkout@v4
|
|
11
|
-
|
|
12
|
-
- uses: actions/setup-node@v4
|
|
13
|
-
with:
|
|
14
|
-
node-version: 20
|
|
15
|
-
registry-url: 'https://registry.npmjs.org'
|
|
16
|
-
|
|
17
|
-
- run: npm ci
|
|
18
|
-
|
|
19
|
-
- run: npm publish
|
|
20
|
-
env:
|
|
21
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|