Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(react): add swc transpile option rather than tsc+babel #2

Draft
wants to merge 59 commits into
base: feat-react-lib-format-option
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
cddb1ed
feat(react): add format option for buildable libs (#6753)
jaysoo Aug 19, 2021
3748292
fix(misc): improve alignment and spacing for mobile view (#6768)
meeroslav Aug 19, 2021
0841b55
fix(nextjs): fix .babelrc for emotion v11 (#6728)
puku0x Aug 19, 2021
101a89e
fix(web): Added WebpackError for webpack 4 compatibility (#6519)
ashwinGokhale Aug 19, 2021
68d6e9c
docs(core): fix relative images for previews on vercel (#6473)
jaysoo Aug 19, 2021
a8fcd42
fix(storybook): add styled-jsx typings to Storybook tsconfig
juristr Aug 11, 2021
eb15cff
fix(nextjs): remove styled-jsx/babel from .babelrc as next/babel has …
juristr Aug 19, 2021
a3b22aa
fix(angular): don't error when project configuration has no targets
juristr Aug 19, 2021
28ebfae
feat(react): add a hook generator (e.g. useThing) (#6773)
jaysoo Aug 19, 2021
2f3742b
fix(nextjs): adjust .babelrc for Next libraries with emotion styling
juristr Aug 19, 2021
ff202d3
cleanup(misc): rename oss preset to npm and update presets related do…
leosvelperez Aug 19, 2021
bd2a635
feat(core): add default path argument for `readNxJson` (#6779)
Cammisuli Aug 19, 2021
81d36ee
fix(repo): skip package manager detection tests for other package man…
FrozenPandaz Aug 20, 2021
3b2f0b6
fix(core): remove .eslintrc double extends update on move (#6765)
meeroslav Aug 20, 2021
20d4ae2
fix(storybook): add Emotion v11 support to current Nx React Storybook…
juristr Aug 20, 2021
ee47b17
fix(angular): mfe not installing webpack correctly (#6789)
Coly010 Aug 20, 2021
592c47a
Revert "fix(angular): mfe not installing webpack correctly (#6789)" (…
Coly010 Aug 20, 2021
6b37e4b
feat(node): builder should support multiple entry files (#5741)
LarsVonQualen Aug 20, 2021
85f92e7
feat(misc): simplify npm scripts generated (#6764)
FrozenPandaz Aug 20, 2021
9d8431d
fix(testing): remove webpack dependency since it is causing issues wi…
jaysoo Aug 20, 2021
bfa06ce
feat(misc): add generator for simple npm-package (#6784)
FrozenPandaz Aug 20, 2021
c01b538
chore(misc): fix failing unit test in npm-package (#6798)
FrozenPandaz Aug 20, 2021
a3c9a63
chore(repo): fix version field in the package.json (#6799)
FrozenPandaz Aug 20, 2021
b2ea44e
fix(testing): fix remove typescript plugin migration when project has…
FrozenPandaz Aug 20, 2021
c9c8fa7
chore(core): project.json should not be included in builds
AgentEnder Aug 20, 2021
4d6b5ff
fix(core): fix reading project config when nx.json doesn't have proje…
FrozenPandaz Aug 21, 2021
47d1d38
feat(testing): update cypress to 8.x (#6808)
sumitparakh Aug 21, 2021
4305c5e
fix(testing): jest migration for Angular in 12.4
juristr Aug 19, 2021
84e7f46
fix(repo): fix npm e2e tests (#6806)
FrozenPandaz Aug 22, 2021
e263776
feat(storybook): add vue3 support for storybook executer (#6604)
AlmarAubel Aug 23, 2021
8cc41de
fix(core): updateWorkspaceConfiguration does not respect extends
Aug 23, 2021
8e8191f
chore(repo): update nx to 12.8.0-beta.1 (#6804)
FrozenPandaz Aug 23, 2021
0772cb3
Revert "chore(repo): update nx to 12.8.0-beta.1 (#6804)" (#6831)
FrozenPandaz Aug 24, 2021
da7bbc9
docs(core): rewrite the CLI guide (#6801)
FrozenPandaz Aug 24, 2021
fa3dcab
docs(core): add cli overview page and a section documenting how to ke…
FrozenPandaz Aug 24, 2021
9b3f920
docs(angular): add mfe guide (#6829)
Coly010 Aug 24, 2021
c1c7a42
feat(angular): update NgRx to 12.4.0 (#6828)
brandonroberts Aug 24, 2021
a30d9e1
docs(core): improve cli docs (#6669)
leosvelperez Aug 24, 2021
0c9ac4f
chore(nxdev): update speaker list (#6837)
brandonroberts Aug 24, 2021
1fdbba9
Release 12.8.0
FrozenPandaz Aug 25, 2021
f4f6d4f
docs(misc): add a guide on using nx with yarn workspaces
Aug 25, 2021
6d6964a
chore(nxdev): update latest version documentation to v12.8.0 (#6844)
FrozenPandaz Aug 25, 2021
e412ff0
chore(repo): update lerna doc in the repo (#6846)
FrozenPandaz Aug 25, 2021
5ff55ce
feat(angular): upgrade to ~12.2.0 (#6836)
nartc Aug 25, 2021
387af0c
feat(core): add react native to main repo (#6493)
xiongemi Aug 25, 2021
a7f8950
feat(linter): cache --outputFile (#6852)
FrozenPandaz Aug 26, 2021
62f2fb6
fix(angular): move upgrade 12.2 to 12.9.0 migrations (#6857)
nartc Aug 26, 2021
b820f72
fix(repo): fix error in contributing docs (#6860)
cristobaldominguez95 Aug 26, 2021
6d8fa39
chore(misc): fix failing workspace lib unit test (#6862)
FrozenPandaz Aug 26, 2021
d0e2176
docs(angular): update setup for micro frontend (#6863)
Tony133 Aug 26, 2021
301e70a
fix(linter): fix how eslint hasher gets projects from task dependenci…
leosvelperez Aug 27, 2021
9c07d7f
fix(core): use tao generate for angular devkit workspace-schematics (…
FrozenPandaz Aug 27, 2021
12ed2d3
fix(devkit): normalizing paths when moving files (#6877)
FrozenPandaz Aug 27, 2021
677e481
fix(core): hash npm projects based on version (#6879)
FrozenPandaz Aug 27, 2021
1b6c0ee
feat(misc): add x-type to app and lib generators (#6874)
FrozenPandaz Aug 27, 2021
bdd01ed
fix(core): use defaultConfiguration in run-many and affected when no …
leosvelperez Aug 28, 2021
0a6434d
docs(nextjs): adjust script for affected deployments to Vercel (#6894)
juristr Aug 30, 2021
44db568
fix(nextjs): add displayName to CustomDocument component when using s…
jaysoo Aug 31, 2021
6680bcb
feat(react): add swc transpile option rather than tsc+babel
jaysoo Aug 18, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions .github/workflows/e2e-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
- e2e-web
- e2e-storybook
- e2e-workspace
- e2e-react-native,e2e-detox
exclude:
- os: ubuntu-latest
node_version: '14'
Expand Down Expand Up @@ -121,6 +122,13 @@ jobs:
with:
version: 6.9.1

- name: Install applesimutils, reset ios simulators
if: ${{ matrix.os == 'macos-latest' }}
run: |
HOMEBREW_NO_AUTO_UPDATE=1 brew tap wix/brew >/dev/null
brew install applesimutils
xcrun simctl shutdown all && xcrun simctl erase all

- name: Run e2e tests
run: yarn nx run-many --target=e2e --projects="${{ join(matrix.packages) }}"
env:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ node_modules
dist
/build
/coverage
test
./test
.DS_Store
tmp
*.log
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ Including the issue number that the PR relates to also helps with tracking.
#### Example

```
feat(generators): add an option to generate lazy-loadable modules
feat(angular): add an option to generate lazy-loadable modules

`nx generate lib mylib --lazy` provisions the mylib project in tslint.json

Expand Down
23 changes: 23 additions & 0 deletions docs/angular/api-detox/executors/build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# @nrwl/detox:build

Run the command defined in build property of the specified configuration.

Options can be configured in `angular.json` when defining the executor, or when invoking it.

## Options

### configPath

Alias(es): cp

Type: `string`

Specify Detox config file path. If not supplied, detox searches for .detoxrc[.js] or "detox" section in package.json

### detoxConfiguration

Alias(es): C

Type: `string`

Select a device configuration from your defined configurations, if not supplied, and there's only one configuration, detox will default to it
177 changes: 177 additions & 0 deletions docs/angular/api-detox/executors/test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
# @nrwl/detox:test

Initiating your detox test suite.

Options can be configured in `angular.json` when defining the executor, or when invoking it.

## Options

### appLaunchArgs

Type: `number`

Custom arguments to pass (through) onto the app every time it is launched.

### artifactsLocation

Alias(es): a

Type: `string`

Artifacts (logs, screenshots, etc) root directory.

### captureViewHierarchy

Type: `string`

[iOS Only] Capture \*.uihierarchy snapshots on view action errors and device.captureViewHierarchy() calls.

### cleanup

Type: `boolean`

Shutdown simulator when test is over, useful for CI scripts, to make sure detox exists cleanly with no residue

### configPath

Alias(es): cp

Type: `string`

Specify Detox config file path. If not supplied, detox searches for .detoxrc[.js] or "detox" section in package.json

### debugSynchronization

Alias(es): d

Type: `string`

Customize how long an action/expectation can take to complete before Detox starts querying the app why it is busy. By default, the app status will be printed if the action takes more than 10s to complete.

### detoxConfiguration

Alias(es): C

Type: `string`

Select a device configuration from your defined configurations, if not supplied, and there's only one configuration, detox will default to it

### deviceLaunchArgs

Type: `string`

A list of passthrough-arguments to use when (if) devices (Android emulator / iOS simulator) are launched by Detox.

### deviceName

Alias(es): n

Type: `string`

Override the device name specified in a configuration. Useful for running a single build configuration on multiple devices.

### forceAdbInstall

Type: `boolean`

Due to problems with the adb install command on Android, Detox resorts to a different scheme for install APK's. Setting true will disable that and force usage of adb install, instead.

### gpu

Type: `boolean`

[Android Only] Launch Emulator with the specific -gpu [gpu mode] parameter.

### headless

Type: `boolean`

Android Only] Launch Emulator in headless mode. Useful when running on CI.

### inspectBrk

Type: `boolean`

Uses node's --inspect-brk flag to let users debug the jest/mocha test runner

### jestReportSpecs

Type: `boolean`

[Jest Only] Whether to output logs per each running spec, in real-time. By default, disabled with multiple workers.

### loglevel

Alias(es): l

Type: `string`

Log level: fatal, error, warn, info, verbose, trace

### noColor

Type: `boolean`

Disable colors in log output

### recordLogs

Type: `string`

Save logs during each test to artifacts directory. Pass "failing" to save logs of failing tests only.

### recordPerformance

Type: `string`

[iOS Only] Save Detox Instruments performance recordings of each test to artifacts directory.

### recordTimeline

Type: `string`

[Jest Only] Record tests and events timeline, for visual display on the chrome://tracing tool.

### recordVideos

Type: `string`

Save screen recordings of each test to artifacts directory. Pass "failing" to save recordings of failing tests only.

### retries

Type: `number`

[Jest Circus Only] Re-spawn the test runner for individual failing suite files until they pass, or <N> times at least.

### reuse

Type: `boolean`

Reuse existing installed app (do not delete + reinstall) for a faster run.

### runnerConfig

Alias(es): o

Type: `string`

Test runner config file, defaults to 'e2e/mocha.opts' for mocha and 'e2e/config.json' for jest.

### takeScreenshots

Type: `string`

Save screenshots before and after each test to artifacts directory. Pass "failing" to save screenshots of failing tests only.

### useCustomLogger

Type: `boolean`

Use Detox' custom console-logging implementation, for logging Detox (non-device) logs. Disabling will fallback to node.js / test-runner's implementation (e.g. Jest / Mocha).

### workers

Type: `number`

Specifies number of workers the test runner should spawn, requires a test runner with parallel execution support (Detox CLI currently supports Jest).
81 changes: 81 additions & 0 deletions docs/angular/api-detox/generators/application.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# @nrwl/detox:application

Create a detox application

## Usage

```bash
nx generate application ...
```

```bash
nx g app ... # same
```

By default, Nx will search for `application` in the default collection provisioned in `angular.json`.

You can specify the collection explicitly as follows:

```bash
nx g @nrwl/detox:application ...
```

Show what will be generated without writing to disk:

```bash
nx g application ... --dry-run
```

## Options

### name (_**required**_)

Type: `string`

Name of the E2E Project

### project (_**required**_)

Type: `string`

The name of the frontend project to test.

### directory

Type: `string`

A directory where the project is placed

### js

Default: `false`

Type: `boolean`

Generate JavaScript files rather than TypeScript files

### linter

Default: `eslint`

Type: `string`

Possible values: `eslint`, `tslint`, `none`

The tool to use for running lint checks.

### setParserOptionsProject

Default: `false`

Type: `boolean`

Whether or not to configure the ESLint "parserOptions.project" option. We do not do this by default for lint performance reasons.

### skipFormat

Default: `false`

Type: `boolean`

Skip formatting files
16 changes: 16 additions & 0 deletions docs/angular/api-node/executors/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@ Type: `string`

The name of the Typescript configuration file.

### additionalEntryPoints

Type: `object[]`

#### entryName

Type: `string`

Name of the additional entry file

#### entryPath

Type: `string`

Path to the additional entry file

### assets

Type: `array`
Expand Down
13 changes: 13 additions & 0 deletions docs/angular/api-react-native/executors/build-android.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# @nrwl/react-native:build-android

Release Build for Android.

Options can be configured in `angular.json` when defining the executor, or when invoking it.

## Options

### apk

Type: `boolean`

Generate apk file(s) rather than a bundle (.aab).
Loading