36 Commits

Author SHA1 Message Date
Jack Hsu
0e036272cb
feat(react): refactored babel support so options are more easily customized (#3058) 2020-05-26 09:16:36 -04:00
Victor Savkin
a95cba3144 feat(core): support different workspace layouts 2020-05-17 16:39:14 -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
Jason Jean
4e4bd6d764
fix(misc): skip jest and cypress configuration when generating… (#2743) 2020-04-02 12:49:55 -04:00
Jo Hanna Pearce
9ad9b2eb34
feat(testing): add option to use babel-jest rather than ts-jest (#2722) 2020-03-30 07:15:33 -04: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
f7590cd5d4
chore(react): cleans up polyfill logic and provide custom-element polyfills when choosing wc preset (#2347)
Closes #1250
2020-01-20 15:08:01 -05:00
Jack Hsu
fd47229764
feat(react): add option to generate js files instead of ts files (#2247) 2020-01-02 15:56:14 -05:00
Jack Hsu
df7ff8cbae
feat(react): add better support for file and image imports (#2245) 2019-12-30 13:36:44 -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
4a3aa1f0fb
chore(react): update React-related libs (#2089) 2019-11-25 15:49:39 -05:00
Jack Hsu
3a191dd30c
chore(react): update React-related libs (#1950) 2019-10-17 08:53:03 -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
989e5667e0
feat(react): add react-router-dom types (#1762)
Closes #1557
2019-08-28 08:58:35 -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
Jack Hsu
13e7b69c5a
feat(react): add react-specific eslint configuration (#1727) 2019-08-15 13:01:22 -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
Jack Hsu
790f1748d2 fix(react): add missing polyfills for apps using babel.
Closes #1668
2019-07-30 02:47:47 -04:00
Victor Savkin
192a6a083d feat(nx): misc ux improvements 2019-07-29 09:23:51 -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
2b646f8eb4 feat(nx): standalone version of nx 2019-07-24 10:27:47 -04:00
Jason Jean
2f27cc2156 feat(nx): exclude files from outside the project root when linting 2019-06-15 19:10:41 -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
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
a3be21ca78
feat(nx): generating apps works without ng-add (#1287) 2019-04-26 15:19:50 -04:00
Victor Savkin
b5f1966ca5 refactor(nx): extract workspace creation into @nrwl/workspace 2019-04-21 09:46:21 -04:00
Jason Jean
debda15222 refactor(testing): separate cypress to @nrwl/cypress 2019-04-17 17:06:44 -04:00
Victor Savkin
13a72f4fd1 refactor(frontend): refactor web components support into a separate package 2019-04-16 14:44:24 -04:00
Jason Jean
625b2837a8 refactor(testing): separate jest to @nrwl/jest 2019-04-16 13:10:49 -04:00
Jason Jean
7e0b4a0066 refactor(frontend): separate react into separate collection 2019-04-16 08:37:55 -04:00