mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-07 20:21:25 +00:00
Rename benchmark script
This commit is contained in:
@@ -66,7 +66,7 @@ yarn docs:build
|
|||||||
To run the performance benchmarks in a browser (opening `./benchmarks/index.html`):
|
To run the performance benchmarks in a browser (opening `./benchmarks/index.html`):
|
||||||
|
|
||||||
```
|
```
|
||||||
yarn benchmarks
|
yarn benchmark
|
||||||
```
|
```
|
||||||
|
|
||||||
## Compile and build
|
## Compile and build
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "performance",
|
"name": "benchmarks",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"aphrodite": "^1.2.3",
|
"aphrodite": "^1.2.3",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* eslint-disable react/prop-types */
|
/* eslint-disable react/prop-types */
|
||||||
import Radium from 'radium'
|
import Radium from 'radium';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import View from '../View/radium';
|
import View from '../View/radium';
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
/* eslint-disable react/prop-types */
|
/* eslint-disable react/prop-types */
|
||||||
import Radium from 'radium'
|
import Radium from 'radium';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
class View extends React.Component {
|
class View extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
const { style, ...other } = this.props;
|
const { style, ...other } = this.props;
|
||||||
return <div {...other} style={[styles.root, style]} />
|
return <div {...other} style={[styles.root, style]} />;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
"!**/__tests__"
|
"!**/__tests__"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"benchmarks": "cd benchmarks && yarn && webpack && open index.html",
|
"benchmark": "cd benchmarks && yarn && webpack && open index.html",
|
||||||
"build": "webpack --config webpack.config.js --sort-assets-by --progress",
|
"build": "webpack --config webpack.config.js --sort-assets-by --progress",
|
||||||
"compile": "del ./dist && mkdir dist && babel src -d dist --ignore **/__tests__",
|
"compile": "del ./dist && mkdir dist && babel src -d dist --ignore **/__tests__",
|
||||||
"docs:build": "build-storybook -o ./docs/dist -c ./docs/storybook/.storybook",
|
"docs:build": "build-storybook -o ./docs/dist -c ./docs/storybook/.storybook",
|
||||||
|
|||||||
Reference in New Issue
Block a user