UNPKG

970 BMarkdownView Raw
1# ![Creuna CLI](source/creuna.png?raw=true "Creuna CLI")
2
3[![npm version](https://img.shields.io/npm/v/@creuna/cli.svg?style=flat)](https://www.npmjs.com/package/@creuna/cli)
4[![Travis status](https://img.shields.io/travis/Creuna-Oslo/cli.svg?style=flat)](https://travis-ci.org/Creuna-Oslo/cli)
5
6`@creuna/cli` provides a unified interface for:
7
8- [create-react-app](https://github.com/Creuna-Oslo/create-react-app)
9- [react-scripts](https://github.com/Creuna-Oslo/react-scripts)
10- [react-components](https://github.com/Creuna-Oslo/react-components)
11
12### Install
13
14```
15yarn global add @creuna/cli
16```
17
18or
19
20```
21npm install -g @creuna/cli
22```
23
24### Usage
25
26```
27creuna
28```
29
30### Notes
31
32All commands except `creuna new` require a `.creunarc.json` and a `.eslintrc.json` in your project root. If you run `creuna new` you'll get these for free. 😎
33
34#### .creunarc.json
35
36```json
37{
38 "componentsPath": "relative/path/to/components",
39 "mockupPath": "relative/path/to/mockup"
40}
41```