Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ianaya89/generator-vue-component

πŸ“¦ Yeoman generator to build your own Vue.js components
https://github.com/ianaya89/generator-vue-component

component generator vue yeoaman

Last synced: 2 months ago
JSON representation

πŸ“¦ Yeoman generator to build your own Vue.js components

Awesome Lists containing this project

README

        

# generator-vue-component

> πŸ“¦ Yeoman generator to build your own [Vue.js](http://vuejs.org/) components

[![bitHound Overall Score](https://www.bithound.io/github/ianaya89/generator-vue-component/badges/score.svg)](https://www.bithound.io/github/ianaya89/generator-vue-component)
[![bitHound Dependencies](https://www.bithound.io/github/ianaya89/generator-vue-component/badges/dependencies.svg)](https://www.bithound.io/github/ianaya89/generator-vue-component/master/dependencies/npm)
[![bitHound Dev Dependencies](https://www.bithound.io/github/ianaya89/generator-vue-component/badges/devDependencies.svg)](https://www.bithound.io/github/ianaya89/generator-vue-component/master/dependencies/npm)
[![bitHound Code](https://www.bithound.io/github/ianaya89/generator-vue-component/badges/code.svg)](https://www.bithound.io/github/ianaya89/generator-vue-component)


yo

## Support
- Vue.js 2 => `generator-vue-component@>=2.0.0` [master]
- Vue.js 1 => `[email protected]`

## Installation

1. First, install [Yeoman](http://yeoman.io) and generator-vue-component using [npm](https://www.npmjs.com/) (we assume you have pre-installed [node.js](https://nodejs.org/)).

```bash
$ npm install -g yo
$ npm install -g generator-vue-component
```

2. Create your project directory and access it.

```bash
$ mkdir my-awesome-component
$ cd my-awesome-component
```

3. Then generate your new project:

```bash
yo vue-component
```

## Scaffolding

```
└───docs/
β”œβ”€β”€β”€App.vue
β”œβ”€β”€β”€main.js
└───src/
β”œβ”€β”€β”€assets/
└───vue.png
β”œβ”€β”€β”€HelloWorld.vue
β”œβ”€β”€β”€index.js
β”œβ”€β”€β”€.babelrc
β”œβ”€β”€β”€.editorconfig
β”œβ”€β”€β”€.eslintignore
β”œβ”€β”€β”€.eslintrc.
β”œβ”€β”€β”€.gitignore
β”œβ”€β”€β”€.npmignore
β”œβ”€β”€β”€LICENSE
β”œβ”€β”€β”€package.json
β”œβ”€β”€β”€README.md
β”œβ”€β”€β”€webpack.config.js
```

## Development Setup

```bash
# install dependencies
$ npm install

# dev mode
$ npm run dev

# build component and get production release
$ npm run build
```

## TODO
1. Jest Integration [help wanted πŸ™]
2. Docs production build

## License
[MIT License](https://github.com/ndelvalle/vue-esc/blob/master/LICENSE)

## Style
[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](http://standardjs.com)

**⌨️ with ❀️ by [@ianaya89](https://twitter.com/ianaya89)**