126 Commits

Author SHA1 Message Date
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