Граф коммитов

23 Коммитов

Автор SHA1 Сообщение Дата
Jon Thysell 4d45e81892
Fix ignore files and update cli timeout (#14016)
Fix ignore files and update cli timeout.
2024-10-22 16:39:11 -07:00
Marlene Cota ca03cc6d24
RN Integration 9/9 (143f1ad29) (#13685)
* RN Integration 9/9

* Change files

* RN Integration 9/9

* Change files

* yarn.lock

* linting

* linting v2

* re-add LayoutableShadowNode.cpp

* fix override

* reset linting

* Use hermes-eslint in react-native-windows and rn-win32

* fix

* use hermes-eslint in @react-native-windows/cli

* Change files

* fix dep

* hermes-eslint in @rnw-scripts/metro-dev-config

* remove hermes-eslint from cli and metro-dev-config

* use babel-plugin-syntax-hermes-parser in react-native-windows

* move babel config fix from vnext to @rnw-scripts/babel-react-native-config

* snapshots

* add babel config to intergration-test-app

* disable test:windows calls in CI

* delete unnecessary change file

* indentation

* fix lint and upgrade dep

* Change files

* skip RNTesterIntegrationTests::Dummy test

* comment out rest of tests

---------

Co-authored-by: Andrew <30809111+acoates-ms@users.noreply.github.com>
Co-authored-by: TatianaKapos <tatianakapos@microsoft.com>
2024-09-25 19:57:39 +00:00
Chiara Mooney 1a0c176131
Integrate RN Nightly Build 1/22 (#12761)
* Integrate 1/16

* Integrate 1/20

* Save State 2/22

* Change files

* Fix Build Errors Part 1

* Fix Build Part 2

* Update Snapshots

* Fix Build 3

* Fix Build 4

* Re-Integrate After Coates Commit

* Change files

* Resolve E2E Test Failure

* Fix Build 4

* fix yarn format to respect existing .clang-format files

* fix codegen's clang format file?

* remove vnext/codegen from clang formatting

* Change files

* remove codegen folder

* Revert "remove codegen folder"

This reverts commit 3159bf1180.

* Fix E2E Tests

* Fix E2E Tests

* Revert "Fix E2E Tests"

This reverts commit 261bef2af5.

* Fix E2E Tests

* fix linting for real this time

* really really fix linting

* fix flow-checks

* Fix init-windows cli command

* Fix Broken Alert Module

* remove checked-in copied file

* stablize flow check

* Address Andrew's Feedback

---------

Co-authored-by: Jon Thysell (JAUNTY) <jthysell@microsoft.com>
2024-02-29 16:40:50 -08:00
Chiara Mooney 1e9197c0ef
Migrate src directory to src-win (#12756)
* Migrate src directory to src-win

* Change files

* Format

* Fix Tests

* Change files

* fix git ignore

---------

Co-authored-by: Jon Thysell (JAUNTY) <jthysell@microsoft.com>
2024-02-23 11:47:16 -08:00
Chiara Mooney 2419191300
Integrate RN Nightly Build 11/11 (#9214)
* Integrate 11/11

* Adjust Overrides

* Fix Overrides

* Change files

* Fix Linting

* Fix E2E Test Case

* Patch Overrides

* Update Snapshot File Names

* Update Lock File

* Add API for isAccessibilityServiceEnabled

* Add noexcept

* Run Yarn Format

* Remove Stale Snapshots

* Upgrade deprecated-react-native-prop-types

* Add Callback to New Method

* Add flow-typed files to eslintignore

* Add flow-typed files to eslintignore

* Update ReactNativeVersionCheck

* Resolve ReactNativeVersionCheck flow issues

* Resolve flow issues

* Fix Lint

* Fix Flow

* Fix Flow

* Fix Flow

* Fix Flow

* Fix Flow

* Fix Flow

* Fix Lint

* Fix Flow
2021-12-02 12:15:57 -08:00
Andrew Coates 403da047bc
ReloadInstance async task and InstanceLoaded event were not correctly reporting failures (#9224)
* ReloadInstance async task and InstanceLoaded event were not correctly reporting failures

* Change files

* Add another test

* yarn format

* ignore syntax error file
2021-12-02 09:22:44 -08:00
Andrew Coates c12da3c05f
Type information for react-native-windows should contain complete RN types (#8628)
* Export complete type information

* Change files

* Update @types dependency versions

* reduce usage to a single @types/react

* Add comment to explain that rntypes need to be in src
2021-10-08 06:46:17 -07:00
Nick Gerleman f50540af66
Integrate 8/20 Nightly RN Build (Extract RNTester) (#6211)
* Move the JS files

* Mostly moves

* New versions and structure

* Update entry points

* Add build logic

* XAML Tester is All good

* Do it for react-native-win32

* Remove stale flowconfig entries

* Change files

* E2ETest Build Fix

* Extend e2etest timeout

* Fix playground-win32

* Fix eslint

* Fix missing DayOfWeek export
2020-10-08 06:06:30 +00:00
Nick Gerleman 5b28bba588
Migrate the local-cli to TypeScript (#5374)
* Migrate the local-cli to TypeScript

Note that this depends on #5370, but I ommited its changes in this PR. This will be rebased upon master once that is merged in, but CI will fail in the meantime.

A few steps here:
- Update build logic to run tsc in multiple places in vnext
  - Also fixup clean logic whcih keeps on getting out of date
  - Bumped Node requirements for the repo to Node 12 for development so we can use flat/flatMap without lodash
- Separate local-cli code into a new directory structure
  - src for JS inputs
  - lib-commonjs for TS outputs
  - powerhsell and templates for others
  - Add a local gitignore to not wipe out template pfx files
  - Update CLI code for new paths
- Mechanical conversion from JS to TS
  - Very lax TS rules
  - Types substituted where needed or where documented
  - CommonJS moved to ES6 apart from where we export to raw JS
  - Mostly mechanical
- Update react-native-windows-init for the new changes
  - Try new JS path but fallback to the old if unavailable
  - Do a type only import from the new path so we can get type safety between packages
  - add RNW as a devDependency so that local-cli typings are built first by lerna

We are using dangerously relaxed TS rules here as a start. I'm hoping that we can incrementally add types and get to the point where we don't need to reduce strictness of local-cli.

Haven't done much of any validation here apart from seeing that we build. Will try to come up with something here.

* We should preserve JSX

* Change files

* Fixes

- Fix implicitly imported glob
- Add missing newline
- lint:fix

* Add some more types at boundary

* Uncomment a few more types

* Cleanup RN Libray Copy Logic

* Remove unneded from react-native-win32

* Remove non-existent cleanTask

* Polish and fixups

* Do a less jank workaround for prettier issues

* Update react-native-config paths

* Change files

* Fix `yarn watch` and `yarn api`

* Search cwd during require.resolve since we otherwise search the npx cache node_modules

* Fix CommonJS ES6 Mismatch

* Fix template path

* Add some more types

* Fix another directory structure assumption. No other uses of __dirname in thr project, so we should be safe now

* noImplicitAny

* Add empty .gitignore

* Fix template metro config that got regex replaced
2020-06-30 19:55:42 +00:00
Nick Gerleman 623ac46c0a
Share eslint, Typescript, and just-script configs across packages (#5370)
* Share eslint and Typescript configs across packages

We create rnw-scripts packages which export a typescript config and an eslint config. We can change individual packages to import these. We pull in a newer version of esling (and add is as a devDep to all packages), letting us include eslintignore rules in the base eslintrc.

This also leads to enforcing strict mode for all Typescript projects, enabling eslint for react-native-win32, react-native-windows-init (fixing some errors and suppressing other parts that aren't clean). ES6 module behavior also changed slightly for some projects.

* Change files

* Do it for just-task too (and disable ESModule Building)

* Declare deps correctly

* Change files

* yarn api

* More Fixes

- Use Default tsc esModuleInterop Settings
- Fix IntegrationTest Typos
- Warn instead of disable react-native-win32 hook rules
- Ensure trailing newlines
- Remove dev dependency from root of repo
- Less globs
- Remove change scripts from packages since they aren't package local, won't get updated with branches, and the beachball dev dep is in the root
- Remove the repository field from private scripts since it isn't useful for internal and adds a second source of truth
- Fix a couple of trivial eslint errors that were exposed

* Fixup react-native-windows-init for TS strict in better ways

* Better tsconfig defaults

- Preserve JSX (Metro will do the right thing with it)
- Enable noImplicitReturns which isn't enabled by default by strict
- Fix error in react-native-windows-codegen that noImplicitReturns foumd

* Specify CommonJS in shared tsconfig instead of just-task

* yarn lint:fix

* Compile JSX to RN JS since Metro Seems to Not Like JSX By Default

* Do we see different E2E Behavior if we transpile JSX to React.CreateElement?
2020-06-30 08:12:29 +00:00
dannyvv 8bbcd4fea2
Don't `eslint` nor `flow check` the target folder (#5226)
* Don't lint target folder and don't flow check node_modules packages

* Change files
2020-06-16 11:07:36 +00:00
Andrew Coates aef9d1d7fd
Fix hang on react-native-init when run from a non-elevated prompt (#4423)
* Fix hang on react-native-init when run from a non-elevated prompt

* Change files

* Fix cert creation

* Add temp key for cs project
2020-03-26 05:30:07 +00:00
msftbot[bot] e3b5e9685a
Add Override Manifest for Copies of Unpublished Packages (#4239)
* Move RNTesterCopy and IntegrationTestsCopy to ReactCopies Directory

Tested that RNTester still works with Playground. Will rely on CI to verify integration tests aren't broken.

* Non-Move Changes for Moving React Copies

* Add copy type to override-tools

Add some unit tests to make sure it behaves as expected.

* Add Generated Copy Manifest

Manually fill in the issue number. My local temp Git repo somehow got into a state where some files were deleted relative to HEAD. This is likely the result of some previous bug, but add a hard reset in code to prevent accidental modifications from causing issues.

Validated we pass manifest validation

* Configure vnext validate-overrides to check both override manifests

* Change files

* Address nit
2020-03-05 23:08:20 +00:00
kmelmon a5f1c3937e
Copy IntegrationTests from msft fork (#3967)
* copy IntegrationTests from fork

* Change files

* add to blacklist

* add ignores

* remove directory in CI loop
2020-01-27 22:46:26 -08:00
Di Da ea50ca90fd
Fork RNTester script files and update 'React' to 'react' (#3944)
* Fork RNTester script and update 'React' to 'react'

* Rename RNTesterFork to RNTesterCopy and use js from microsoft forked RN depot
2020-01-24 13:27:34 -08:00
Andrew Coates 013152c9fd Split lint tasks into separate build task to speed general build times (#3841)
* Split lint tasks into seperate build task to speed general build times

* Change files

* Run build before lint
2020-01-07 21:55:46 +00:00
Andrew Coates 60d792f01c Get flow clean, and turn on flow-check during build (#3730)
* Get flow check working

* Get flow clean, and turn on flow check during build

* Change files

* fix

* Move RNTester files to matching location from RN\rntester

* PR feedback

* fix
2019-12-20 18:13:57 +00:00
Brian Savatia Keyonzo a266ad99fc
Change the CLI bundle name index.bundle (vnext) (#3099)
* Change the CLI bundle name index.bundle (vnext)

* Change files
2019-09-09 16:08:14 -07:00
Andrew Coates ceb55eb46d Minor fixes made in RN60 update that can be brought right to master (#2962)
* Minor fixes made in RN60 update that can be brought right to master

* Change files
2019-08-20 21:50:07 +00:00
Andrew Coates 0bd7ead9e2
Start tracking API changes, and generating API documentation (#2932)
* Start API documentation

* Change files
2019-08-15 15:21:01 -07:00
Andrew Coates 40a94022c1
Consolidate built files into Libraries folder (#2727)
* move vnext/Libraries to vnext/src/Libraries

* Build vnext/src/Libraries directly to vnext/Libraries
2019-07-03 07:06:21 -07:00
acoates-ms fec8bc27bf
Update to latest just-scripts (#2720)
* Update to latest just-scripts

* Update lock file

* Fix linting errors introduced during merge

* More lint fixes

* Minor format fix

* Fix
2019-07-02 10:31:34 -07:00
acoates-ms 388743e157
Hook up some basic formatting configuration for vscode (#2655)
* Hook up some basic formatting configuration for vscode

* Replace tslint with eslint

* Format on save

* Fix a bunch of eslint errors

* Dont run lint on already build files

* lint now enforces LF to match community
2019-07-01 12:38:12 -07:00