UNPKG

1.79 kBMarkdownView Raw
1[![NPM](https://nodei.co/npm/generator-convenia.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/generator-convenia/)
2
3Readme
4=================
5Convenia Generator irá gerar e manter seu boilerplate/estrutura de todo front da convenia
6
7
8Instalar
9========
10```shell
11npm install -g generator-convenia
12```
13
14Pré-requisitos
15=====================================
161. [node](https://nodejs.org/)
17
182. [yarn](https://yarnpkg.com/)
19
203. [yeoman](http://yeoman.io/)
21
22Comandos
23==================
241. Gerar um novo projeto
25
26```shell
27mkdir meuProjeto
28cd meuProjeto
29// o comando a seguir irá fazer o scaffold do projeto e instalar suas dependências com yarn
30yo convenia
31```
32
332. Gerar uma nova rota [WIP]
34
35```shell
36//cria "src/app/routename/main.vue" e inclui ele em: "src/app/router/index.js"
37//cria a pasta "src/app/routename/vuex" e todos seus arquivos (actions, getters, mutations, state e index) e inclui ele como um módulo em "src/vuex/modules.js"
38
39yo convenia:route
40```
41
423. Gerar um novo componente [WIP]
43
44```shell
45//cria "src/components/componentname.vue"
46
47yo convenia:comp
48```
49
504. Atualizar o boilerplate/estrutura
51
52```shell
53// o comando a seguir irá atualizar:
54//"./build/"
55//"./config/"
56//"./static/"
57//"./src/app/dashboard/"
58//"./src/app/login/"
59//"./src/vuex/"
60//"./src/api.conf.js"
61//"./src/auth.js"
62//"./src/utils.js"
63//"todos os dotfiles"
64
65yo convenia:update
66```
67 > Aviso: você será perguntado como o overwrite deve proceder: Default, "Y" é overwrite, e "n" é pular.
68
69
70Comandos do projeto
71=================
72
731. Iniciar servidor de desenvolvimento local:
74```shell
75yarn dev
76```
77
782. Testes E2E
79```shell
80yarn e2e
81```
82
833. Testes Unitários [WIP]
84```shell
85yarn unit
86```
87
884. Testes [WIP]
89```shell
90yarn test
91```
92
935. Build para produção [WIP]
94```shell
95yarn build
96```