rigjs 2.0.0-alpha → 2.0.0-alpha.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.
package/demo/.env.oem1 ADDED
@@ -0,0 +1,4 @@
1
+ OUT_PUT_DIR = dist/ykp/test/oem1
2
+ NODE_ENV = test
3
+ BUILD_TYPE = test_ome1
4
+ VUE_APP_BASE_URL = 'http://localhost:9001'
package/demo/.env.oem2 ADDED
@@ -0,0 +1,4 @@
1
+ OUT_PUT_DIR = dist/ykp/test/oem2
2
+ NODE_ENV = test
3
+ BUILD_TYPE = test_ome2
4
+ VUE_APP_BASE_URL = 'http://localhost:9001'
@@ -0,0 +1,5 @@
1
+ module.exports = {
2
+ presets: [
3
+ '@vue/cli-plugin-babel/preset'
4
+ ]
5
+ }
@@ -6,27 +6,32 @@
6
6
  target: {
7
7
  id: 'alicloud',
8
8
  type: 'alicloud',
9
- bucket: '',
9
+ bucket: 'cdn-rys-com',
10
+ region: 'oss-cn-beijing',
10
11
  access_key: '${ak}',
11
12
  access_secret: '${as}',
12
13
  root_path: '/',
14
+ uri_rewrite: {
15
+ original: 'view-fp',
16
+ }
13
17
  },
14
18
  endpoints: {
15
19
  'ykp/test/oem1': {
16
- build: 'esbuild test.js --platform=node --bundle --minify --outfile=dist/test/oem1/demo/index.js',
20
+ build: 'yarn build:oem1',
17
21
  defines: {
18
- NGINX_REPLACE_B: 'http://',
19
- NGINX_REPLACE_A: '替换了',
22
+ NGINX_REPLACE_B: 'http://',
23
+ NGINX_REPLACE_A: '替换了',
20
24
  },
21
- domain: '',
25
+ domain: 'ci-test.rys.com',
22
26
  },
23
27
  'ykp/test/oem2': {
24
- build: 'yarn build:test:oem2',
28
+ // build: 'yarn build:test:oem2',
29
+ build: 'yarn build:oem2',
25
30
  defines: {
26
31
  NGINX_REPLACE_B: 'http://',
27
32
  NGINX_REPLACE_A: '替换了',
28
33
  },
29
- domain: ''
34
+ domain: 'ci-test.rys.com'
30
35
  },
31
36
  },
32
37
  groups: [
@@ -0,0 +1,19 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es5",
4
+ "module": "esnext",
5
+ "baseUrl": "./",
6
+ "moduleResolution": "node",
7
+ "paths": {
8
+ "@/*": [
9
+ "src/*"
10
+ ]
11
+ },
12
+ "lib": [
13
+ "esnext",
14
+ "dom",
15
+ "dom.iterable",
16
+ "scripthost"
17
+ ]
18
+ }
19
+ }
package/demo/package.json CHANGED
@@ -1,21 +1,52 @@
1
1
  {
2
- "name": "demo",
3
- "version": "1.0.0",
4
- "dependencies": {
5
- },
2
+ "name": "demo2",
3
+ "version": "0.1.0",
6
4
  "private": true,
7
- "workspaces": [
8
- "rigs/*",
9
- "rigs_dev/*"
10
- ],
11
5
  "scripts": {
6
+ "serve": "vue-cli-service serve",
7
+ "build:oem1": "vue-cli-service build --mode oem1",
8
+ "build:oem2": "vue-cli-service build --mode oem2",
9
+ "build": "vue-cli-service build",
10
+ "lint": "vue-cli-service lint",
12
11
  "preinstall": "rig preinstall",
13
- "postinstall": "rig postinstall",
14
- "build:test:oem1": "esbuild test.js --platform=node --bundle --minify --outfile=dist/test/oem1/demo/index.js",
15
- "build:test:oem2": "esbuild test.js --platform=node --bundle --minify --outfile=dist/test/oem2/demo/index.js"
12
+ "postinstall": "rig postinstall"
13
+ },
14
+ "dependencies": {
15
+ "core-js": "^3.8.3",
16
+ "vue": "^2.6.14"
16
17
  },
17
- "info": "test",
18
18
  "devDependencies": {
19
+ "@babel/core": "^7.12.16",
20
+ "@babel/eslint-parser": "^7.12.16",
21
+ "@vue/cli-plugin-babel": "~5.0.0",
22
+ "@vue/cli-plugin-eslint": "~5.0.0",
23
+ "@vue/cli-service": "~5.0.0",
24
+ "eslint": "^7.32.0",
25
+ "eslint-plugin-vue": "^8.0.3",
26
+ "vue-template-compiler": "^2.6.14",
19
27
  "json5": "2.1.3"
20
- }
21
- }
28
+ },
29
+ "eslintConfig": {
30
+ "root": true,
31
+ "env": {
32
+ "node": true
33
+ },
34
+ "extends": [
35
+ "plugin:vue/essential",
36
+ "eslint:recommended"
37
+ ],
38
+ "parserOptions": {
39
+ "parser": "@babel/eslint-parser"
40
+ },
41
+ "rules": {}
42
+ },
43
+ "browserslist": [
44
+ "> 1%",
45
+ "last 2 versions",
46
+ "not dead"
47
+ ],
48
+ "workspaces": [
49
+ "rigs/*",
50
+ "rigs_dev/*"
51
+ ]
52
+ }
@@ -4,5 +4,4 @@
4
4
  // source: "git ssh url",
5
5
  // version: "semver version(like 1.0.0)",
6
6
  // },
7
-
8
7
  ]
Binary file
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html lang="">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+ <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
+ <link rel="icon" href="<%= BASE_URL %>favicon.ico">
8
+ <title><%= htmlWebpackPlugin.options.title %></title>
9
+ </head>
10
+ <body>
11
+ <noscript>
12
+ <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
13
+ </noscript>
14
+ <div id="app"></div>
15
+ <!-- built files will be auto injected -->
16
+ </body>
17
+ </html>
@@ -0,0 +1,28 @@
1
+ <template>
2
+ <div id="app">
3
+ <img alt="Vue logo" src="./assets/logo.png">
4
+ <HelloWorld msg="Welcome to Your Vue.js App"/>
5
+ </div>
6
+ </template>
7
+
8
+ <script>
9
+ import HelloWorld from './components/HelloWorld.vue'
10
+
11
+ export default {
12
+ name: 'App',
13
+ components: {
14
+ HelloWorld
15
+ }
16
+ }
17
+ </script>
18
+
19
+ <style>
20
+ #app {
21
+ font-family: Avenir, Helvetica, Arial, sans-serif;
22
+ -webkit-font-smoothing: antialiased;
23
+ -moz-osx-font-smoothing: grayscale;
24
+ text-align: center;
25
+ color: #2c3e50;
26
+ margin-top: 60px;
27
+ }
28
+ </style>
Binary file
@@ -0,0 +1,58 @@
1
+ <template>
2
+ <div class="hello">
3
+ <h1>{{ msg }}</h1>
4
+ <p>
5
+ For a guide and recipes on how to configure / customize this project,<br>
6
+ check out the
7
+ <a href="https://cli.vuejs.org" target="_blank" rel="noopener">vue-cli documentation</a>.
8
+ </p>
9
+ <h3>Installed CLI Plugins</h3>
10
+ <ul>
11
+ <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel" target="_blank" rel="noopener">babel</a></li>
12
+ <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint" target="_blank" rel="noopener">eslint</a></li>
13
+ </ul>
14
+ <h3>Essential Links</h3>
15
+ <ul>
16
+ <li><a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a></li>
17
+ <li><a href="https://forum.vuejs.org" target="_blank" rel="noopener">Forum</a></li>
18
+ <li><a href="https://chat.vuejs.org" target="_blank" rel="noopener">Community Chat</a></li>
19
+ <li><a href="https://twitter.com/vuejs" target="_blank" rel="noopener">Twitter</a></li>
20
+ <li><a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a></li>
21
+ </ul>
22
+ <h3>Ecosystem</h3>
23
+ <ul>
24
+ <li><a href="https://router.vuejs.org" target="_blank" rel="noopener">vue-router</a></li>
25
+ <li><a href="https://vuex.vuejs.org" target="_blank" rel="noopener">vuex</a></li>
26
+ <li><a href="https://github.com/vuejs/vue-devtools#vue-devtools" target="_blank" rel="noopener">vue-devtools</a></li>
27
+ <li><a href="https://vue-loader.vuejs.org" target="_blank" rel="noopener">vue-loader</a></li>
28
+ <li><a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">awesome-vue</a></li>
29
+ </ul>
30
+ </div>
31
+ </template>
32
+
33
+ <script>
34
+ export default {
35
+ name: 'HelloWorld',
36
+ props: {
37
+ msg: String
38
+ }
39
+ }
40
+ </script>
41
+
42
+ <!-- Add "scoped" attribute to limit CSS to this component only -->
43
+ <style scoped>
44
+ h3 {
45
+ margin: 40px 0 0;
46
+ }
47
+ ul {
48
+ list-style-type: none;
49
+ padding: 0;
50
+ }
51
+ li {
52
+ display: inline-block;
53
+ margin: 0 10px;
54
+ }
55
+ a {
56
+ color: #42b983;
57
+ }
58
+ </style>
@@ -0,0 +1,8 @@
1
+ import Vue from 'vue'
2
+ import App from './App.vue'
3
+
4
+ Vue.config.productionTip = false
5
+
6
+ new Vue({
7
+ render: h => h(App),
8
+ }).$mount('#app')
@@ -0,0 +1,8 @@
1
+ const { defineConfig } = require('@vue/cli-service')
2
+ console.log(process.env.PUBLIC_PATH)
3
+
4
+ module.exports = defineConfig({
5
+ transpileDependencies: true,
6
+ outputDir: process.env.OUT_PUT_DIR,
7
+ publicPath: process.env.PUBLIC_PATH
8
+ })