@nasl/cli 0.1.1 → 0.1.2

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.
@@ -0,0 +1,41 @@
1
+ export const platformConfig = {
2
+ appConfig: {
3
+ id: '5b4eb835-8471-4397-9cff-d48703de7174',
4
+ project: 'zyscustomer222',
5
+ domainName: 'zyscustomer222',
6
+ nuimsDomain: undefined,
7
+ lowcodeDomain: 'lcap.codewave-test.163yun.com',
8
+ envNuimsDomain: undefined,
9
+ tenantType: undefined,
10
+ tenantLevel: undefined,
11
+ extendedConfig: null,
12
+ envConfig: {
13
+ lowcodeDomain: 'lcap.codewave-test.163yun.com'
14
+ },
15
+ tenant: 'cstest',
16
+ documentTitle: null,
17
+ basePath: '',
18
+ frontendName: 'pc',
19
+ sysPrefixPath: '',
20
+ appTimeZone: 'user',
21
+ i18nInfo: {
22
+ enabled: false,
23
+ locale: 'zh-CN',
24
+ messages: {},
25
+ I18nList: []
26
+ },
27
+ rootViewData: undefined
28
+ },
29
+ dnsAddr: 'https://zyscustomer222-cstest.user.lcap.codewave-test.163yun.com',
30
+ tenant: 'cstest',
31
+ env: undefined,
32
+ hasUserCenter: true,
33
+ hasAuth: true,
34
+ basePath: '',
35
+ sysPrefixPath: '',
36
+ frontendName: 'pc',
37
+ isPreviewFe: false,
38
+ authResourcePaths: [],
39
+ baseResourcePaths: ['/dashboard', '/notFound', '/index']
40
+ };
41
+
@@ -0,0 +1,59 @@
1
+ const path = require('path');
2
+ const HtmlWebpackPlugin = require('html-webpack-plugin');
3
+ const { VueLoaderPlugin } = require('vue-loader');
4
+
5
+ const outDir = process.cwd();
6
+
7
+ module.exports = {
8
+ mode: 'development',
9
+ entry: path.resolve(__dirname, './index.js'),
10
+ output: {
11
+ path: path.resolve(outDir, '../dist'),
12
+ filename: 'bundle.js',
13
+ clean: true
14
+ },
15
+ resolve: {
16
+ extensions: ['.js', '.vue', '.json'],
17
+ alias: {
18
+ '@': outDir,
19
+ }
20
+ },
21
+ externals: {
22
+ 'vue': 'Vue',
23
+ 'vue-router': 'VueRouter',
24
+ 'vue-i18n': '$i18n',
25
+ '@/hooks': '$hooks',
26
+ '@/libraries': '$libraries',
27
+ '@/global-variables': '$globalVariables'
28
+ },
29
+ externalsType: 'window',
30
+ module: {
31
+ rules: [
32
+ {
33
+ test: /\.vue$/,
34
+ loader: 'vue-loader'
35
+ },
36
+ {
37
+ test: /\.css$/,
38
+ use: ['style-loader', 'css-loader']
39
+ }
40
+ ]
41
+ },
42
+ plugins: [
43
+ new VueLoaderPlugin(),
44
+ new HtmlWebpackPlugin({
45
+ template: path.resolve(__dirname, './index.html'),
46
+ inject: 'body'
47
+ })
48
+ ],
49
+ devServer: {
50
+ static: {
51
+ directory: path.join(__dirname),
52
+ },
53
+ port: 3000,
54
+ hot: true,
55
+ open: true,
56
+ historyApiFallback: true
57
+ }
58
+ };
59
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nasl/cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "NASL (Next Application Specific Language) CLI tool for checking, compiling and developing NASL code",
5
5
  "main": "out/index.js",
6
6
  "bin": {