https://github.com/pratheeshrussell/simple-vue-cli
Direct install not working
https://github.com/pratheeshrussell/simple-vue-cli
Last synced: 3 months ago
JSON representation
Direct install not working
- Host: GitHub
- URL: https://github.com/pratheeshrussell/simple-vue-cli
- Owner: pratheeshrussell
- Created: 2021-12-25T10:28:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-19T08:06:46.000Z (almost 3 years ago)
- Last Synced: 2025-02-10T04:35:22.532Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 219 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# Simple Vue Cli
Developed upon the work of [vue-generate-component](https://github.com/NetanelBasal/vue-generate-component).
Developed within a couple of hours so expect bugs.
CLI util for generating Vue component structure.
## READ THIS FIRST
This is not a replacement for vue cli. You must have installed Vue cli separately## Installation
```bash
npm install -g @pratheeshrussell/simple-vue-cli
```OR
* Clone the repository
* Run
```bash
npm install
```
* Build the Files
```bash
npm run build
```
* Install from local folder
```bash
npm install -g PATH_TO_CLONED FOLDER
```OR
```bash
npm install -g https://github.com/pratheeshrussell/simple-vue-cli
```## Usage
### Create new component
```bash
svc -g -c Header
```
Will generate a folder called `headerComponent` inside src folder *If you are in project root folder* or *your current directory*```bash
svc -g -m Header
```
Will generate a file called `Headercomponent.vue` inside src folder *If you are in project root folder* or *your current directory*```bash
svc -g -m Header -f
```
Will generate a file called `Headercomponent.vue` inside src/headerComponent folder *If you are in project root folder* or *your current directory*check the options available by
```bash
svc -g -h
```### Create new directive
```bash
svc -g -d something
```
Will get back to this once I learn about vue directives### Serve
```bash
svc -s
```
check the options available by
```bash
svc -s -h
```### Build
```bash
svc -b
```## Disclaimer
This project tries to solve tedious copy&paste operations from **our** daily workflow.
Please notice that the generated files will require some external libraries such as
Vue, @vue/test-utils or Sass loader configuration. Make sure these libraries are available in your project.## TODO
1. Do some manual testing atleast
2. ...