Skip to content

Commit

Permalink
feat: add log style
Browse files Browse the repository at this point in the history
  • Loading branch information
Realzzz1874 committed Aug 7, 2022
1 parent 3465941 commit 54c9c67
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 5 deletions.
48 changes: 48 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,51 @@
## :alien: what?

`fast vue`'s abbreviation, which is pronounced as `[fiːl]`. Its goal is to make us feel fast when developing :stuck_out_tongue_closed_eyes:

## usage

```bash
npm i vuefast -g
# OR
yarn add vuefast -g
```

### list

`fvue list`

eg:

```bash
$ fvue list
fvue: A fast vue project cli!
- v3 (v3-tpl)
```

- `v3` is the tpl name
- `v3-tpl` is the tpl description

And now, the tpl list is:

```json
v3: {
url: "github:Realzzz1874/v3-tpl#fvue-tpl/v3",
desc: "v3-tpl",
repo: "https://github.com/Realzzz1874/v3-tpl/tree/fvue-tpl/v3",
}
```

### init

`fvue init <tpl> <proj>`

eg:

```bash
$ fvue init v3 myVueProject
```

- `v3` is the tpl name
- `myVueProject` is the project name

just like:
9 changes: 5 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ program
{
type: "input",
name: "name",
message: "please input proj name",
message: "please input proj name:",
},
{
type: "input",
name: "description",
message: "please input proj description",
message: "please input proj description:",
},
{
type: "input",
name: "author",
message: "please input proj author",
message: "please input proj author:",
},
])
.then(async (answers) => {
Expand All @@ -69,7 +69,8 @@ program
answers
);
fs.writeFileSync(package_path, package_result);
console.log("proj init success");
const log = chalk.hex("#FFA500");
console.log(logSymbols.success, log("proj init success."));
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vuefast",
"version": "1.0.0",
"version": "1.0.1",
"description": "fast vue cli",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 54c9c67

Please sign in to comment.