Skip to content

Commit a39aea4

Browse files
author
Damián Finkelstein
committed
Merge branch 'master' into feature/selector-02
2 parents 9d59e4a + 0ec2f06 commit a39aea4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+7879
-68
lines changed

cli/.editorconfig

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[*.md]
11+
trim_trailing_whitespace = false

cli/.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/lib

cli/.eslintrc

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": [
3+
"@wolox/eslint-config",
4+
"@wolox/eslint-config-typescript"
5+
],
6+
"rules": {
7+
"prettier/prettier": ["error", {"singleQuote": true, "trailingComma": "none"}],
8+
"no-magic-numbers": "off",
9+
"@typescript-eslint/no-magic-numbers": [
10+
"error", { "ignoreEnums": true }
11+
]
12+
}
13+
}

cli/.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*-debug.log
2+
*-error.log
3+
/.nyc_output
4+
/dist
5+
/lib
6+
/tmp
7+
/yarn.lock
8+
node_modules

cli/README.md

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
@wolox/cookbook-cli
2+
===================
3+
4+
Wolox Cookbook CLI
5+
6+
[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
7+
[![Version](https://img.shields.io/npm/v/@wolox/cookbook-cli.svg)](https://npmjs.org/package/@wolox/cookbook-cli)
8+
[![Downloads/week](https://img.shields.io/npm/dw/@wolox/cookbook-cli.svg)](https://npmjs.org/package/@wolox/cookbook-cli)
9+
[![License](https://img.shields.io/npm/l/@wolox/cookbook-cli.svg)](https://github.com/Wolox/frontend-cookbook/blob/master/package.json)
10+
11+
<!-- toc -->
12+
* [Usage](#usage)
13+
* [Commands](#commands)
14+
<!-- tocstop -->
15+
# Usage
16+
<!-- usage -->
17+
```sh-session
18+
$ npm install -g @wolox/cookbook-cli
19+
$ cookbook COMMAND
20+
running command...
21+
$ cookbook (-v|--version|version)
22+
@wolox/cookbook-cli/0.0.0 darwin-x64 node-v10.15.3
23+
$ cookbook --help [COMMAND]
24+
USAGE
25+
$ cookbook COMMAND
26+
...
27+
```
28+
<!-- usagestop -->
29+
# Commands
30+
<!-- commands -->
31+
* [`cookbook help [COMMAND]`](#cookbook-help-command)
32+
* [`cookbook install TECH CATEGORY RECIPE`](#cookbook-install-tech-category-recipe)
33+
34+
## `cookbook help [COMMAND]`
35+
36+
display help for cookbook
37+
38+
```
39+
USAGE
40+
$ cookbook help [COMMAND]
41+
42+
ARGUMENTS
43+
COMMAND command to show help for
44+
45+
OPTIONS
46+
--all see all commands in CLI
47+
```
48+
49+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.2.1/src/commands/help.ts)_
50+
51+
## `cookbook install TECH CATEGORY RECIPE`
52+
53+
install a recipe from the cookbook
54+
55+
```
56+
USAGE
57+
$ cookbook install TECH CATEGORY RECIPE
58+
59+
OPTIONS
60+
-h, --help show CLI help
61+
62+
EXAMPLE
63+
$ cookbook install react buttons button-1
64+
```
65+
66+
_See code: [src/commands/install.ts](https://github.com/Wolox/frontend-cookbook/blob/v0.0.0/src/commands/install.ts)_
67+
<!-- commandsstop -->

cli/bin/run

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env node
2+
3+
require('@oclif/command').run()
4+
.then(require('@oclif/command/flush'))
5+
.catch(require('@oclif/errors/handle'))

cli/bin/run.cmd

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@echo off
2+
3+
node "%~dp0\run" %*

0 commit comments

Comments
 (0)