Skip to content

Commit 8401925

Browse files
authored
Vue3 cli demo (#1637)
1 parent 1cb3926 commit 8401925

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+45307
-0
lines changed

vue3-cli-demo/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# [email protected] Module Federation
2+
3+
### App exposes
4+
Init and start first app
5+
```bash
6+
cd app-exposes;
7+
npm i;
8+
npm run serve;
9+
```
10+
More information [./app-exposes/README.md](./app-exposes/README.md)
11+
12+
### App general (host)
13+
Init and start second app
14+
```bash
15+
cd app-general;
16+
npm i;
17+
npm run serve;
18+
```
19+
After that open
20+
http://localhost:8081
21+
22+
More information [./app-general/README.md](./app-general/README.md)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
> 1%
2+
last 2 versions
3+
not dead
4+
not ie 11
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[*.{js,jsx,ts,tsx,vue}]
2+
indent_style = space
3+
indent_size = 2
4+
end_of_line = lf
5+
trim_trailing_whitespace = true
6+
insert_final_newline = true
7+
max_line_length = 100
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
node: true,
5+
},
6+
extends: [
7+
'plugin:vue/vue3-essential',
8+
'@vue/airbnb',
9+
'@vue/typescript/recommended',
10+
],
11+
parserOptions: {
12+
ecmaVersion: 2020,
13+
},
14+
rules: {
15+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
16+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
17+
},
18+
};

vue3-cli-demo/app-exposes/.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
6+
# local env files
7+
.env.local
8+
.env.*.local
9+
10+
# Log files
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
15+
16+
# Editor directories and files
17+
.idea
18+
.vscode
19+
*.suo
20+
*.ntvs*
21+
*.njsproj
22+
*.sln
23+
*.sw?

vue3-cli-demo/app-exposes/README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# app-exposes
2+
3+
### Notice
4+
Ignore path `/auto/`
5+
```bash
6+
App running at:
7+
- Local: http://localhost:8082/auto/
8+
```
9+
10+
http://localhost:8082/ - is actual
11+
([fix here](https://github.com/vuejs/vue-cli/pull/7005)).
12+
13+
## Project setup
14+
```
15+
npm install
16+
```
17+
18+
### Compiles and hot-reloads for development
19+
```
20+
npm run serve
21+
```
22+
23+
### Compiles and minifies for production
24+
```
25+
npm run build
26+
```
27+
28+
### Lints and fixes files
29+
```
30+
npm run lint
31+
```
32+
33+
### Customize configuration
34+
See [Configuration Reference](https://cli.vuejs.org/config/).
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/cli-plugin-babel/preset',
4+
],
5+
};

0 commit comments

Comments
 (0)