Skip to content
This repository was archived by the owner on Jan 2, 2018. It is now read-only.

Commit 3bf2ad1

Browse files
authored
Merge pull request #4 from rocjs/next
Updated for the latest version of Roc
2 parents d036a06 + a1f1a79 commit 3bf2ad1

56 files changed

Lines changed: 512 additions & 249 deletions

Some content is hidden

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

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# (multiple files can be used, and are applied starting from current document location)
66
root = true
77

8-
[{package.json}]
8+
[{package.json,.travis.yml}]
99
indent_style = space
1010
indent_size = 2
1111

.travis.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
sudo: required
21
language: node_js
2+
cache:
3+
directories:
4+
- node_modules
35
node_js:
4-
- stable
6+
- 4.2
7+
before_install:
8+
- npm install -g npm
59
before_script:
6-
- npm run link
10+
- npm run link
711
after_success:
8-
- npm run build
12+
- npm start build && npm start docs

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016 VG
3+
Copyright (c) 2016 Verdens Gang AS
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
# roc-plugin-react
2-
[![Build Status](https://travis-ci.org/rocjs/roc-plugin-react.svg?branch=master)](https://travis-ci.org/rocjs/roc-plugin-react)
1+
# roc-plugin-react [![Build Status](https://travis-ci.org/rocjs/roc-plugin-react.svg?branch=master)](https://travis-ci.org/rocjs/roc-plugin-react)
32

43
__Adds React support to Webpack and Roc__
5-
- [roc-plugin-react](/packages/roc-plugin-react)
4+
- [roc-plugin-react](/extensions/roc-plugin-react)
5+
- [roc-plugin-react-dev](/extensions/roc-plugin-react-dev)
6+
7+
---
8+
To be used together with [Roc](https://github.com/rocjs/roc).
File renamed without changes.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"extends": "airbnb-base",
3+
4+
"parser": "babel-eslint",
5+
6+
plugins: ["eslint-plugin-babel"],
7+
8+
"rules": {
9+
"indent": [2, 4, { "SwitchCase": 1 }],
10+
"max-len": [2, 120, 4],
11+
12+
"generator-star-spacing": 0,
13+
"babel/generator-star-spacing": [2, { before: false, after: true }],
14+
15+
"import/order": [2, { "groups": ["builtin", "external", "internal", "parent", "sibling", "index"], "newlines-between": "always"}],
16+
"import/newline-after-import": [2]
17+
}
18+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Verdens Gang AS
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# roc-plugin-react-dev
2+
3+
Adds React support to Webpack and Roc (Development)
4+
5+
## Documentation
6+
- [Actions](docs/Actions.md)
7+
- [Commands](docs/Commands.md)
8+
- [Configuration](docs/Configuration.md)
9+
- [Dependencies](docs/Dependencies.md)
10+
- [Hooks](docs/Hooks.md)
11+
- [Settings](docs/Settings.md)
12+
- [Extensions](docs/Extensions.md)
13+
14+
---
15+
_Generated by [Roc](https://github.com/rocjs/roc)_
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Actions for `roc-plugin-react-dev`
2+
3+
## Actions
4+
* [roc-plugin-react-dev](#roc-plugin-react-dev)
5+
* [build-webpack](#build-webpack)
6+
7+
## roc-plugin-react-dev
8+
9+
### build-webpack
10+
11+
Adds the needed Webpack configuration to be able to build and develop React code.
12+
13+
__Connects to extension:__ Not specified
14+
__Connects to hook:__ `build-webpack`
15+
__Have post:__ No
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Commands for `roc-plugin-react-dev`
2+
3+
## General Information
4+
All commands can be called with some additional options illustrated in the table below.
5+
6+
### General options
7+
8+
| Name | Description | Required |
9+
| --------------------- | ---------------------------------------------- | -------- |
10+
| -b, --better-feedback | Enables source-map-support and loud-rejection. | No |
11+
| -c, --config | Path to configuration file. | No |
12+
| -d, --directory | Path to working directory. | No |
13+
| -h, --help | Output usage information. | No |
14+
| -V, --verbose | Enable verbose mode. | No |
15+
| -v, --version | Output version number. | No |
16+
17+
## Commands
18+
* [meta](#meta)
19+
* [docs](#docs)
20+
* [list-settings](#list-settings)
21+
22+
## meta
23+
__Meta commands__
24+
25+
```
26+
roc meta <command>
27+
```
28+
Meta commands that can be used to generate meta data about the current project.
29+
30+
31+
### docs
32+
__Generates documentation for the current project.__
33+
34+
```
35+
roc meta docs
36+
```
37+
38+
#### Command options
39+
40+
| Name | Description | Default | Type | Required | Can be empty |
41+
| ---------- | ------------------------------------------------------------- | -------------- | ----------------------------------------------------------------- | -------- | ------------ |
42+
| --html | If HTML should be generated. (Not supported yet) | `false` | `Boolean` | No | |
43+
| --markdown | If markdown should be generated. | `true` | `Boolean` | No | |
44+
| --mode | The platform that is to be used, for link generation. | `"github.com"` | `/github\.com|nodejs\.org|bitbucket\.org|ghost\.org|gitlab\.com/` | No | |
45+
| --output | A directory to place the generated documentation inside of. | `"docs"` | `String` | No | No |
46+
| --project | If the projects configuration and actions should be included. | `false` | `Boolean` | No | |
47+
48+
#### Defined by extensions
49+
roc
50+
51+
### list-settings
52+
__Prints all the available settings that can be changed.__
53+
54+
```
55+
roc meta list-settings
56+
```
57+
58+
#### Defined by extensions
59+
roc
60+

0 commit comments

Comments
 (0)