Skip to content
This repository was archived by the owner on Apr 26, 2025. It is now read-only.

Commit a54f30d

Browse files
committed
release: react-tv 0.3.0-alpha.1
- migrate to react-reconciler 0.6.0 - check if is need to format code on CI - add benchmark example - fix update render tor nodeText - update postinstall to prebublishOnly (newest npm) - remove: react-tv run-webos-dev - react-tv cli {init} breaking changes
1 parent b73afdc commit a54f30d

12 files changed

Lines changed: 85 additions & 302 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# 0.3.0-alpha.1
2+
3+
- migrate to react-reconciler 0.6.0
4+
- check if is need to format code on CI
5+
- add benchmark example
6+
- fix update render tor nodeText
7+
- update postinstall to prebublishOnly (newest npm)
8+
- remove: react-tv run-webos-dev
9+
- react-tv cli {init} breaking changes
10+
111
# 0.2.3
212

313
- use ReactReconciler from `react-reconciler` instead from `react-dom`

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,16 @@ In addition: Unify the build for multiple TV platforms.
7777
| Operation | React-TV | React-DOM | Runned off |
7878
| ------------- | ------------- | ------------- | ------------- |
7979
| Time of first render | ~76ms | ~199ms | Firefox 57 (Quantum) |
80-
| Time of first render | ~364ms | ~234ms | WebOS 3.0 Emulator |
80+
| Time of first render | ~364ms* | ~234ms | WebOS 3.0 Emulator |
81+
| Memory Footprint | ** | ** | ** |
82+
83+
* This result will change a lot with `react-tv@0.3.0`.
84+
85+
** Homework.
86+
87+
Disclamer: Speed performance will compensate the memory loss. Having a sufficient amount of memory for all of your machines is important to achieving good performance. React-TV renderer focus on Memory usage, but if you want to Perfomance you can still use `react-dom` for renderer and `react-tv-cli` for builds.
88+
89+
The good sides of React-TV, in a next release, is that will be using native TVs APIs, support for React.CanvasComponents, keys mapping[...]
8190

8291
## Getting Started
8392

examples/benchmark/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.DS_Store
2+
*.log
3+
4+
react-tv
5+
node_modules
6+
bundle.js

examples/benchmark/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"dependencies": {
1919
"react": "^16.0.0",
2020
"react-dom": "^16.0.0",
21-
"react-tv": "0.2.3"
21+
"react-tv": "0.3.0-alpha.1"
2222
},
2323
"devDependencies": {
2424
"babel-core": "^6.4.5",
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.DS_Store
2+
*.log
3+
4+
react-tv
5+
node_modules
6+
bundle.js

examples/clock-app-with-react-tv/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"dependencies": {
1919
"react": "^16.0.0",
20-
"react-tv": "0.2.3"
20+
"react-tv": "0.3.0-alpha.1"
2121
},
2222
"devDependencies": {
2323
"babel-core": "^6.4.5",
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.DS_Store
2+
*.log
3+
4+
react-tv
5+
node_modules
6+
bundle.js

examples/keyboard-navigation/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"dependencies": {
1919
"react": "^16.0.0",
20-
"react-tv": "0.2.3"
20+
"react-tv": "0.3.0-alpha.1"
2121
},
2222
"devDependencies": {
2323
"babel-core": "^6.4.5",

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-tv",
3-
"version": "0.2.3",
3+
"version": "0.3.0-alpha.1",
44
"description": "React Renderer for low memory applications and Packager for TVs (WebOS, Tizen, Orsay)",
55
"main": "dist/react-tv.umd.js",
66
"bin": {
@@ -16,7 +16,8 @@
1616
"build": "node scripts/rollup/build.js",
1717
"build-all": "NODE_ENV=PROD node scripts/rollup/build.js",
1818
"prepublishOnly": "yarn test && yarn build-all",
19-
"test": "node ./scripts/prettier/index && yarn flow && yarn jest",
19+
"prettier-stat": "node ./scripts/prettier/index",
20+
"test": "yarn prettier-stat && yarn flow && yarn jest",
2021
"jest": "jest",
2122
"jest-watch": "jest --watch",
2223
"flow": "flow",

scripts/rollup/build.js

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,30 +30,25 @@ function createBundle({entryPath, bundleType, destName}) {
3030

3131
let plugins = [
3232
flow(),
33+
replace(stripEnvVariables()),
3334
babel({
3435
babelrc: false,
3536
exclude: 'node_modules/**',
3637
externalHelpers: true,
3738
presets: [['env', {modules: false}], 'react', 'stage-2'],
3839
plugins: ['transform-flow-strip-types', 'external-helpers'],
3940
}),
40-
];
41-
42-
if (bundleType.indexOf('PROD') >= 0)
43-
plugins = plugins.concat([
44-
uglify(),
45-
optimizeJs(),
46-
replace(stripEnvVariables()),
47-
]);
48-
49-
plugins = plugins.concat([
5041
commonjs(),
5142
resolve({
5243
jsnext: true,
5344
main: true,
5445
browser: true,
5546
}),
56-
]);
47+
];
48+
49+
if (bundleType.indexOf('PROD') >= 0) {
50+
plugins = plugins.concat([optimizeJs(), uglify()]);
51+
}
5752

5853
rollup({
5954
input: entryPath,

0 commit comments

Comments
 (0)