Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devdevi/npm_library
"Components library based on vue-cli-4 POC",
https://github.com/devdevi/npm_library
Last synced: 10 days ago
JSON representation
"Components library based on vue-cli-4 POC",
- Host: GitHub
- URL: https://github.com/devdevi/npm_library
- Owner: devdevi
- Created: 2020-06-04T22:31:15.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T07:57:13.000Z (almost 2 years ago)
- Last Synced: 2023-03-04T10:48:30.821Z (over 1 year ago)
- Language: Vue
- Size: 3.17 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# base
## 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
npx vue-cli-service build --target lib --name buttons src/index.js
```
### Bulid as npm lib
```
npx vue-cli-service build --target lib --name buttons src/index.js
```
### Bulid as npm lib
```
npm publish --access=publicnpm install --save @dscns/buttons
```
import Vue from 'vue'
import App from './App.vue'
import '@company_name/components-lib/components-lib.css';
import * as ComponentsLib from '@company_name/components-lib';Vue.config.productionTip = false
Vue.use({install: ComponentsLib.install});
new Vue({
render: h => h(App)
}).$mount('#app')
```
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
npm login --registry=https://npm.pkg.github.com --scope=@company_name
crea token en github
crear repo mismo nombre
npm publish```
export default {
name: 'app'
}See [Configuration Reference](https://www.paradigmadigital.com/dev/como-crear-libreria-componentes-vuejs/).
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).