mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-26 07:49:18 +00:00
Change development scripts
Switch to npm-workspaces monorepo task management.
This commit is contained in:
@@ -49,4 +49,4 @@ import View from 'react-native-web/dist/exports/View';
|
||||
```
|
||||
|
||||
[package-badge]: https://img.shields.io/npm/v/babel-plugin-react-native-web.svg?style=flat
|
||||
[package-url]: https://yarnpkg.com/en/package/babel-plugin-react-native-web
|
||||
[package-url]: https://www.npmjs.com/package/babel-plugin-react-native-web
|
||||
|
||||
@@ -2,20 +2,14 @@
|
||||
|
||||
Try the [benchmarks app](https://necolas.github.io/react-native-web/benchmarks) online.
|
||||
|
||||
To run the benchmarks locally from monorepo root:
|
||||
To work on the benchmarks locally from monorepo root:
|
||||
|
||||
```
|
||||
yarn benchmarks
|
||||
npm run dev -w react-native-web
|
||||
npm run build -w benchmarks
|
||||
open ./packages/benchmarks/dist/index.html
|
||||
```
|
||||
|
||||
Develop against these benchmarks from monorepo root:
|
||||
|
||||
```
|
||||
yarn compile --watch
|
||||
yarn benchmarks --watch
|
||||
```
|
||||
|
||||
## Notes
|
||||
|
||||
These benchmarks are approximations of extreme cases that libraries may
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
"name": "benchmarks",
|
||||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"dev": "mkdir -p dist && cp -f index.html dist/index.html && ./node_modules/.bin/webpack-cli --config ./webpack.config.js",
|
||||
"build": "NODE_ENV=production yarn dev"
|
||||
"clean": "del-cli ./dist",
|
||||
"build": "NODE_ENV=production npm run dev",
|
||||
"dev": "npm run clean && mkdir -p dist && cp -f index.html dist/index.html && ./node_modules/.bin/webpack-cli --config ./webpack.config.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"classnames": "^2.3.1",
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
"name": "react-native-web-examples",
|
||||
"version": "0.18.3",
|
||||
"scripts": {
|
||||
"dev": "next",
|
||||
"build": "next build",
|
||||
"dev": "next",
|
||||
"start": "next start"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@@ -13,6 +13,14 @@
|
||||
"src",
|
||||
"!**/__tests__"
|
||||
],
|
||||
"scripts": {
|
||||
"clean": "del-cli ./dist",
|
||||
"build": "npm-run-all clean -p \"build:* {@}\" --",
|
||||
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --config-file ../../configs/babel.config.js --out-dir dist/cjs --ignore \"**/__tests__\"",
|
||||
"build:es": "babel src --config-file ../../configs/babel.config.js --out-dir dist --ignore \"**/__tests__\"",
|
||||
"build:flow": "gen-flow-files ./src --out-dir ./dist",
|
||||
"dev": "npm-run-all clean -p \"build:* {@} -- --watch\""
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.18.6",
|
||||
"create-react-class": "^15.7.0",
|
||||
|
||||
Reference in New Issue
Block a user