Skip to content

Commit b57a92b

Browse files
authored
Merge pull request #4 from Cristians953/next
Merge next channel into the master
2 parents ed89dae + 3cfb4ae commit b57a92b

40 files changed

Lines changed: 11581 additions & 2685 deletions

.circleci/config.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
version: 2.1
2+
orbs:
3+
codecov: codecov/codecov@1.1.3
4+
workflows:
5+
version: 2
6+
build-deploy:
7+
jobs:
8+
- build:
9+
filters:
10+
branches:
11+
only:
12+
- master
13+
- next
14+
jobs:
15+
build:
16+
docker:
17+
- image: 'circleci/node:latest'
18+
steps:
19+
- checkout
20+
- restore_cache:
21+
key: dependency-cache-{{ checksum "package-lock.json" }}
22+
- run:
23+
name: install
24+
command: npm ci
25+
- save_cache:
26+
key: dependency-cache-{{ checksum "package-lock.json" }}
27+
paths:
28+
- $HOME/.npm
29+
- run:
30+
name: test
31+
command: npm run test
32+
- store_artifacts:
33+
path: coverage
34+
- codecov/upload:
35+
file: coverage/coverage-final.json
36+
- run:
37+
name: build
38+
command: npm run build
39+
- run:
40+
name: release
41+
command: npm run release || true

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
node_modules
22
lib
3+
.DS_Store
34
.idea
5+
.env
46
/example/
57
.vscode
8+
/.nyc_output/
9+
/coverage/
10+
/src/tests/e2e/tmp/

.mocharc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require('chai/register-assert'); // Using Assert style
2+
require('chai/register-expect'); // Using Expect style
3+
require('chai/register-should'); // Using Should style

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## [1.1.2](https://github.com/Cristians953/react-codegen-cli/compare/v1.1.1...v1.1.2) (2021-01-23)
2+
3+
4+
### Bug Fixes
5+
6+
* **core-template:** fix bug related to missing variables in template generator ([cd8a937](https://github.com/Cristians953/react-codegen-cli/commit/cd8a93792acb1f5b3724008be1fe7ca20323ab3b))
7+
8+
## [1.1.1](https://github.com/Cristians953/react-codegen-cli/compare/v1.1.0...v1.1.1) (2021-01-22)

README.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,6 @@
2727
</p>
2828
</p>
2929

30-
### New features 🚀⭐
31-
* Added 4 new config options:
32-
* `arrowFunction` - indicates if it should generate arrow functions instead of the regular.
33-
* `exportType` - export type to be used for modules.
34-
* `cssModules` - generate css module instead of regular style file.
35-
* `wrapFolder` - Wrap generated files in a folder.
36-
37-
* And 2 new CLI arguments:
38-
* `-d` or` --directory` - specify directory where files are created, relative to root path.
39-
* `--wrap` - does the same as the `wrapFolder` option.
40-
41-
42-
4330
## Table of Contents
4431

4532
* [Installation](#installation)
@@ -101,6 +88,7 @@ If no config file found it will fallback to a default configuration.
10188
| styles | string | scss | Stylesheet format |
10289
| typescript | boolean | false | Generate typescript files |
10390
| jsxExt | boolean | true | Use `jsx` extension for components |
91+
| newJsx | boolean | false | Remove react from scope (use new JSX transform) |
10492
| fileNameCase | came,<br/> pascal,<br/> snake,<br/> snakeUpper,<br/> kebab | pascal | File name case for generated files<br/> (default: `MyComponent.jsx`) |
10593
| path | string | src/components | Path to generate files
10694
| wrapFolder | boolean | true | Create a wrap folder for generated files |

0 commit comments

Comments
 (0)