Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue3 cli demo #1637

Merged
merged 7 commits into from Feb 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 22 additions & 0 deletions vue3-cli-demo/README.md
@@ -0,0 +1,22 @@
# vue-cli@5.x.x Module Federation

### App exposes
Init and start first app
```bash
cd app-exposes;
npm i;
npm run serve;
```
More information [./app-exposes/README.md](./app-exposes/README.md)

### App general (host)
Init and start second app
```bash
cd app-general;
npm i;
npm run serve;
```
After that open
http://localhost:8081

More information [./app-general/README.md](./app-general/README.md)
4 changes: 4 additions & 0 deletions vue3-cli-demo/app-exposes/.browserslistrc
@@ -0,0 +1,4 @@
> 1%
last 2 versions
not dead
not ie 11
7 changes: 7 additions & 0 deletions vue3-cli-demo/app-exposes/.editorconfig
@@ -0,0 +1,7 @@
[*.{js,jsx,ts,tsx,vue}]
indent_style = space
indent_size = 2
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 100
18 changes: 18 additions & 0 deletions vue3-cli-demo/app-exposes/.eslintrc.js
@@ -0,0 +1,18 @@
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/vue3-essential',
'@vue/airbnb',
'@vue/typescript/recommended',
],
parserOptions: {
ecmaVersion: 2020,
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
},
};
23 changes: 23 additions & 0 deletions vue3-cli-demo/app-exposes/.gitignore
@@ -0,0 +1,23 @@
.DS_Store
node_modules
/dist


# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
34 changes: 34 additions & 0 deletions vue3-cli-demo/app-exposes/README.md
@@ -0,0 +1,34 @@
# app-exposes

### Notice
Ignore path `/auto/`
```bash
App running at:
- Local: http://localhost:8082/auto/
```

http://localhost:8082/ - is actual
([fix here](https://github.com/vuejs/vue-cli/pull/7005)).

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
5 changes: 5 additions & 0 deletions vue3-cli-demo/app-exposes/babel.config.js
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset',
],
};