module-menu-vue 0.0.1
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/README.md +24 -0
- package/babel.config.js +5 -0
- package/index.js +2 -0
- package/jsconfig.json +19 -0
- package/package.json +45 -0
- package/public/index.html +14 -0
- package/src/App.vue +28 -0
- package/src/components/ModuleMenu.vue +13 -0
- package/src/main.js +8 -0
- package/vue.config.js +4 -0
- package/webpack.config.js +25 -0
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# module-menu-vue
|
|
2
|
+
|
|
3
|
+
## Project setup
|
|
4
|
+
```
|
|
5
|
+
npm install
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
### Compiles and hot-reloads for development
|
|
9
|
+
```
|
|
10
|
+
npm run serve
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Compiles and minifies for production
|
|
14
|
+
```
|
|
15
|
+
npm run build
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Lints and fixes files
|
|
19
|
+
```
|
|
20
|
+
npm run lint
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Customize configuration
|
|
24
|
+
See [Configuration Reference](https://cli.vuejs.org/config/).
|
package/babel.config.js
ADDED
package/index.js
ADDED
package/jsconfig.json
ADDED
|
@@ -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/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "module-menu-vue",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"main": "/index.js",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"serve": "vue-cli-service serve",
|
|
7
|
+
"build": "vue-cli-service build",
|
|
8
|
+
"lint": "vue-cli-service lint"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"core-js": "^3.8.3",
|
|
12
|
+
"vue": "^2.6.14"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"@babel/core": "^7.12.16",
|
|
16
|
+
"@babel/eslint-parser": "^7.12.16",
|
|
17
|
+
"@vue/cli-plugin-babel": "~5.0.0",
|
|
18
|
+
"@vue/cli-plugin-eslint": "~5.0.0",
|
|
19
|
+
"@vue/cli-service": "~5.0.0",
|
|
20
|
+
"eslint": "^7.32.0",
|
|
21
|
+
"eslint-plugin-vue": "^8.0.3",
|
|
22
|
+
"vue-loader": "^17.2.2",
|
|
23
|
+
"vue-template-compiler": "^2.7.14",
|
|
24
|
+
"webpack": "^5.88.2"
|
|
25
|
+
},
|
|
26
|
+
"eslintConfig": {
|
|
27
|
+
"root": true,
|
|
28
|
+
"env": {
|
|
29
|
+
"node": true
|
|
30
|
+
},
|
|
31
|
+
"extends": [
|
|
32
|
+
"plugin:vue/essential",
|
|
33
|
+
"eslint:recommended"
|
|
34
|
+
],
|
|
35
|
+
"parserOptions": {
|
|
36
|
+
"parser": "@babel/eslint-parser"
|
|
37
|
+
},
|
|
38
|
+
"rules": {}
|
|
39
|
+
},
|
|
40
|
+
"browserslist": [
|
|
41
|
+
"> 1%",
|
|
42
|
+
"last 2 versions",
|
|
43
|
+
"not dead"
|
|
44
|
+
]
|
|
45
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<noscript>
|
|
10
|
+
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
|
11
|
+
</noscript>
|
|
12
|
+
<div id="app"></div>
|
|
13
|
+
</body>
|
|
14
|
+
</html>
|
package/src/App.vue
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="app">
|
|
3
|
+
<!-- <ModuleMenu msg="Welcome to Your Vue.js App"/> -->
|
|
4
|
+
dakjdha
|
|
5
|
+
</div>
|
|
6
|
+
</template>
|
|
7
|
+
|
|
8
|
+
<script>
|
|
9
|
+
// import ModuleMenu from './components/ModuleMenu.vue'
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
name: 'App',
|
|
13
|
+
// components: {
|
|
14
|
+
// ModuleMenu
|
|
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>
|
package/src/main.js
ADDED
package/vue.config.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
module.exports = {
|
|
3
|
+
entry: './src/components/YourComponent.vue',
|
|
4
|
+
output: {
|
|
5
|
+
path: path.resolve(__dirname, 'dist'),
|
|
6
|
+
filename: 'YourComponent.js',
|
|
7
|
+
libraryTarget: 'umd',
|
|
8
|
+
libraryExport: 'default',
|
|
9
|
+
umdNamedDefine: true
|
|
10
|
+
},
|
|
11
|
+
module: {
|
|
12
|
+
rules: [
|
|
13
|
+
{
|
|
14
|
+
test: /\.vue$/,
|
|
15
|
+
loader: 'vue-loader'
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
resolve: {
|
|
20
|
+
extensions: ['.js', '.vue'],
|
|
21
|
+
alias: {
|
|
22
|
+
vue$: 'vue/dist/vue.esm.js'
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|