49 Commits

Author SHA1 Message Date
Jack Hsu
c47480bbc8
chore(react): update library versions and update RTK generated code (#3226) 2020-06-24 14:02:01 -04:00
Jack Hsu
40f9180eba
feat(react): add styled-jsx support for apps, libs, and components (#3204) 2020-06-22 20:41:57 -04:00
Jason Jean
0ab2fc7875
fix(repo): register local collections for unit tests (#3207) 2020-06-20 03:01:03 -04:00
Adam L Barrett
d17d437078
feat(react): add jsx-no-useless-fragment warning to lint rules (#3159)
ISSUES CLOSED: #2432
2020-06-11 14:43:22 -04:00
Victor Savkin
d0cbc35efa feat(repo): build nx with nx 2020-06-03 16:25:25 -04:00
Jack Hsu
d593153a33
feat(react): refactored babel support so options are more easily customized (#3089)
This reverts commit 7679df22f5b90d085b5f32f2135d828036ee5aa7.
2020-05-29 02:09:47 -04:00
Victor Savkin
7679df22f5 Revert "feat(react): refactored babel support so options are more easily customized (#3058)"
This reverts commit 0e036272cbe156fe9750a2f2bc6498a08cf7f457.
2020-05-28 13:11:56 -04:00
Jack Hsu
0e036272cb
feat(react): refactored babel support so options are more easily customized (#3058) 2020-05-26 09:16:36 -04:00
Jason Jean
e06822da7e
chore(repo): update prettier to v2 (#2934)
this is just for the repo, and not the workspace

Co-authored-by: Rares Matei <matei.rar@gmail.com>
2020-04-29 01:09:37 -04:00
Juri Strumpflohner
a47c24c05f
feat(react): improve storybook schematics (#2831) 2020-04-27 18:47:23 +02:00
Jo Hanna Pearce
54d06f0fc9
feat(react): upgrade redux toolkit version and generated slice code (#2835) 2020-04-17 11:42:08 -04:00
Jack Hsu
c993957bbf
fix(react): add styled-components babel plugin only if it will not conflict with emotion (#2863)
Closes #2845
2020-04-16 14:03:22 -04:00
czaplej#26
edbadee252
feat(react): update styled-components (#2663)
`update to 5.0.1`
2020-03-24 16:08:38 -04:00
Jack Hsu
5cdf3728da
feat(react): adds styled-components and emotion plugins for react apps so SSR works correctly. (#2605)
Closes #2119
2020-03-04 11:27:22 -05:00
Rares Matei
d37fc66bc7
feat(react): add option to stop generation of components or styles (#2568)
ISSUES CLOSED: 2184
2020-03-03 14:44:10 -05:00
Jack Hsu
a433035eca
chore(react): update web/react dependencies and clean up npm warnings (#2547) 2020-02-25 11:03:58 -05:00
Jack Hsu
a0299cbb64
feat(react): update to babel 8.7.0 which includes nullish coalescing and optional chaining (#2346) 2020-01-20 13:49:54 -05:00
Jack Hsu
121d070321
feat(react): update styled-components to v5 (#2335) 2020-01-20 10:04:20 -05:00
Jack Hsu
ef995fdabe feat(react): add SVG and SVGR support for React apps 2019-12-28 11:06:45 -05:00
Jack Hsu
ed629114ce
chore(react): update React-related libs (#2235) 2019-12-23 11:32:18 -05:00
Jack Hsu
4a3aa1f0fb
chore(react): update React-related libs (#2089) 2019-11-25 15:49:39 -05:00
Isaac Mann
8b8d30eff1 chore(nx): storybook schematics for react 2019-11-03 16:57:00 -05:00
Jack Hsu
3a191dd30c
chore(react): update React-related libs (#1950) 2019-10-17 08:53:03 -04:00
tyankatsu
c732fd2f21 refactor(react): upgrade @testing-library/react (#1905)
* refactor(react): upgrade @testing-library/react

@testing-library/react v.9 doesn't require clean()

close #1855

* chore(react): remove cleanup

* refactor(react): change testingLibraryVersion 8.0.5 to 9.2.0

* refactor(react): update spec
2019-10-15 08:59:32 -04:00
Jack Hsu
a524b2e947 feat(react): add publishable library support
Issue #1521
2019-10-02 16:26:20 -04:00
Mehrad Rafigh
e6b07e282c fix(nx): use same prettier version (#1869) 2019-09-23 11:24:13 +01:00
Jack Hsu
bfd77db9eb
feat(react): updates RSK to 0.7 (#1814) 2019-09-09 22:08:40 -04:00
Jack Hsu
811c50b92c feat(web): use babel-loader instead of ts-loader for web build builder
- removes the `differentialLoading` build option
- differential loading is always enabled for prod builds

BEFORE (without ESM):

Benchmark #1: nx build demo --prod
  Time (mean ± σ):     13.834 s ±  1.731 s    [User: 11.817 s, System: 1.352 s]
  Range (min … max):   11.947 s … 16.015 s    10 runs

AFTER (with ESM):

Benchmark #1: nx build demo --prod
  Time (mean ± σ):     18.711 s ±  1.310 s    [User: 12.172 s, System: 1.394 s]
  Range (min … max):   17.232 s … 20.770 s    10 runs
2019-09-05 15:34:01 -04:00
Jack Hsu
7cff67c7e9
fix(react): extend configureStore correctly when adding additional slices (#1769) 2019-08-30 10:30:02 -04:00
Jack Hsu
989e5667e0
feat(react): add react-router-dom types (#1762)
Closes #1557
2019-08-28 08:58:35 -04:00
Jack Hsu
0a2f7fd78a
feat(react): add redux schematic (#1761) 2019-08-28 08:25:34 -04:00
Victor Savkin
3bf8818def fix(react): fix invalid version o @types/react-dom 2019-08-17 12:36:40 -04:00
Jack Hsu
e93064a758
fix(react): fix eslint config so it does not override module boundaries from parent. (#1733) 2019-08-16 13:11:22 -04:00
Jack Hsu
13e7b69c5a
feat(react): add react-specific eslint configuration (#1727) 2019-08-15 13:01:22 -04:00
Mehrad Rafigh
ff1de5b7f0 build(nx): update dependencies (#1711)
* build(nx): update husky and conventional-changelog-cli to latest version

* build(nx): update react and react-dom

update react and react-dom to 16.9.0
update @types/react to 16.9.1

* build(nx): update graphviz to 0.0.9

* build(nx): update express 4.17.1 and @types/express to 4.17.0

* build(nx): update cypress to 3.4.1
2019-08-15 11:21:33 -04:00
Jack Hsu
5b6da28b71
fix(react): validate style value before proceeding with app/lib/component generate (#1725) 2019-08-14 21:18:17 -04:00
Jack Hsu
a2fbc47c13 feat(react): improve lib schematic by replacing parentRoute with appProject option
- Instead of providing full path to app component, just pass the project's name.
- Updates both app.tsx and main.tsx so user no longer need to do any maual updates.
2019-08-14 18:10:51 -04:00
Jack Hsu
790f1748d2 fix(react): add missing polyfills for apps using babel.
Closes #1668
2019-07-30 02:47:47 -04:00
Jack Hsu
776a185d65
feat(react): adds default babel-loader support for react apps (#1631) 2019-07-25 15:33:26 -04:00
Jack Hsu
b344e0e63c
feat(react): updates generated React app (#1622) 2019-07-24 18:50:04 -04:00
Jack Hsu
44f1917594
feat(react): updates @types/react-dom to 16.8.5 (#1618) 2019-07-24 09:13:46 -04:00
Jack Hsu
0b010dbb52
fix(react): fix version of @types/react-dom to latest (#1610) 2019-07-23 10:04:10 -04:00
Jack Hsu
a07f019ca1
feat(react): move BrowserRouter to main.tsx for routing (#1588)
Close #1558
2019-07-16 23:30:06 -04:00
Jack Hsu
b3bea39892
feat(react): updates libraries for React to newest versions (#1584) 2019-07-16 22:19:42 -04:00
Jack Hsu
57fe219c03 feat(react): add routing support to react app, lib, and component schematics
* `--routing` for app, lib, component generates component with default
  `<Route>` and `<Link>`

* `--parentRoute` for feature lib adds its routes to the specified
  component (by path)
2019-05-31 12:54:57 -04:00
Jason Jean
2958f503f7 fix(frontend): fix react component for apps 2019-05-27 10:16:32 -04:00
Jack Hsu
0923dab318 feat(react): adds and updates React schematics with more options
- Added component schematic that adds to existing project.
    * Supports CSS-in-JS styles, functional components, etc.
- Lib and app schematics now support new style, funtional components options (same as component)
2019-05-22 17:06:46 -04:00
Jason Jean
a5351c9d36 feat(nx): set default collection on ngadd 2019-05-21 09:01:29 -04:00
Jason Jean
7e0b4a0066 refactor(frontend): separate react into separate collection 2019-04-16 08:37:55 -04:00