858 Commits

Author SHA1 Message Date
Jack Hsu
bfd77db9eb
feat(react): updates RSK to 0.7 (#1814) 2019-09-09 22:08:40 -04:00
Victor Savkin
09a94b8958 feat(nx): implement next support 2019-09-08 14:36:30 -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
ben
a83f47abf3 feat(frontend): update home screens 2019-08-29 16:47: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
Jack Hsu
d222ef04fe
fix(react): set configPath for @babel/preset-env to match project context (#1758) 2019-08-27 13:06:36 -04:00
Victor Savkin
64063f72df docs(nx): update api docs to contain examples 2019-08-21 11:56:21 -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
f4d83548f3
feat(react): add aliases for common React commands (#1732) 2019-08-16 13:01:57 -04:00
Jack Hsu
fa7c9a7c7f
feat(react): add --directory option for React components (#1729)
Also adds alias support to tao cli.

Closes #1702
2019-08-16 09:22:15 -04:00
Victor Savkin
01f1c8145b fix(react): add missing dependencies to react package.json 2019-08-14 10:43:31 -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
a9a1f669d7
feat(react): update workspace defaults based on app schematic option (#1726)
The defaults make it easier to generate other apps/libs/components later.
An option `skipWorkspaceJson` can be used to skip updates entirely.
2019-08-14 23:21:44 -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
Victor Savkin
96d0203b1e fix(react): add tsx files to includes to fix the linter 2019-08-14 11:58:19 -04:00
Victor Savkin
53027b4635 refactor(nx): do not ask for directory when creating apps and libs 2019-08-13 21:13:46 -04:00
Jason Jean
aecdd2bc4c fix(angular): use build-angular for linting 2019-08-09 11:15:40 -04:00
Victor Savkin
bb858e4db9 feat(nx): add full stack preset for react/express 2019-08-01 13:26:27 -04:00
Adam Vigneaux
8c7c0b7721 fix(nx): rename browserlist file to browserslist (#1654)
According to [the Browserslist docs](https://github.com/browserslist/browserslist#queries),
the file should be named `browserslist`. The previous name had a missing
"s" in the middle.

I do not know how `browserslist` is integrated in Nx and the Angular
CLI, but it is possible that the configuration file was being ignored
entirely due to this naming error. When the `browserslist` CLI does not
find a configuration file, it uses a sensible default configuration, so
it would not be obvious that the configuration file was ignored.
2019-08-01 11:01:50 -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
bc336b6749 fix(react): fix a typo in component schematic prompt 2019-07-30 10:55:54 -04:00
Victor Savkin
192a6a083d feat(nx): misc ux improvements 2019-07-29 09:23:51 -04:00
Jason Jean
2188077e13
fix(frontend): fix react testing library migration (#1637) 2019-07-26 09:01:59 -04:00
Victor Savkin
1b2eaf81fe fix(nx): minor fixes 2019-07-25 20:21:04 -04:00
Jack Hsu
776a185d65
feat(react): adds default babel-loader support for react apps (#1631) 2019-07-25 15:33:26 -04:00
Victor Savkin
8fc5c4cae6 feat(nx): add a generic lint package that works with eslint and tslint 2019-07-25 08:34:05 -04:00
Jack Hsu
b344e0e63c
feat(react): updates generated React app (#1622) 2019-07-24 18:50:04 -04:00
Victor Savkin
2b646f8eb4 feat(nx): standalone version of nx 2019-07-24 10:27:47 -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
Brandon Roberts
93aac33b79 docs(nx): update description of Nx in schematics, and frontend links
The schematics for React and Angular still refer to Angular CLI power-ups.
This also links the generated schematic for an Angular or React application
to their framework-specific pages.
2019-07-17 14:39:43 -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
Victor Savkin
7640598239 feat(nx): remove prompt asking for tags and for unit and e2e test runners 2019-06-26 08:22:25 -04:00
Jason Jean
2f27cc2156 feat(nx): exclude files from outside the project root when linting 2019-06-15 19:10:41 -04:00
Jason Jean
cf37c8ec31 feat(nx): add prompts for routing configuration 2019-06-05 11:33:04 -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
678750b98f fix(nx): set generated app to default app if none is set 2019-05-28 12:11:22 -04:00
Jason Jean
df23cba0e1 feat(nx): target es2015 by default for all applications 2019-05-27 10:19:47 -04:00
Jason Jean
2958f503f7 fix(frontend): fix react component for apps 2019-05-27 10:16:32 -04:00
Jason Jean
4ead996320
fix(frontend): fix react style (#1391) 2019-05-25 01:07:33 -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
Victor Savkin
f007ca9d17 fix(nx): make distribution ivy-friendly 2019-05-21 11:51:40 -04:00
Jason Jean
a5351c9d36 feat(nx): set default collection on ngadd 2019-05-21 09:01:29 -04:00
Jason Jean
ff729156b3 fix(nx): extend @nrwl/workspace collection and cleanup inconsistencies 2019-05-17 19:56:26 -04:00