This repository has been archived by the owner on Apr 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Walker Leite
committed
Sep 12, 2017
1 parent
3cca37c
commit 130bd0c
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,36 @@ | ||
# vue-standalone-component | ||
Vuejs standalone component template using karma for testing | ||
|
||
> Build your standalone components using this tiny template. | ||
> This template is Vue 2.x **only**. | ||
### Usage | ||
|
||
This is a project template for [vue-cli](https://github.com/vuejs/vue-cli). | ||
|
||
``` bash | ||
$ npm install -g vue-cli | ||
$ vue init InCuca/vue-standalone-component my-component | ||
$ cd my-component | ||
$ npm run dev | ||
``` | ||
|
||
The generated output in ./dist can be used with node and the browser. | ||
|
||
### What's Included | ||
|
||
- Gulp tasks for development building, testing and development server | ||
- Karma for testing | ||
|
||
### Testing | ||
|
||
``` bash | ||
$ npm test | ||
``` | ||
|
||
### Building to ./build | ||
|
||
``` bash | ||
$ npm run build | ||
`` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"prompts": { | ||
"name": { | ||
"type": "string", | ||
"required": true, | ||
"label": "Component name in kebab-case format", | ||
"default": "v-awesome-component" | ||
}, | ||
"description": { | ||
"type": "string", | ||
"required": true, | ||
"label": "Project description", | ||
"default": "A Vue.js component" | ||
}, | ||
"author": { | ||
"type": "string", | ||
"label": "Author" | ||
} | ||
}, | ||
"completeMessage": "To get started:\n\n{{^inPlace}}cd {{destDirName}}\n\n{{/inPlace}}1. Write your component in src/Component.vue\n2. Write a demo in src/demo.vue\n3. npm run dev\n4. npm run dist\n5. npm run dist:demo\n6. npm run demo:open" | ||
} |