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

Commit 70adb9b

Browse files
committed
release: react-tv 0.3.0-beta.0
- stable CLI react-tv init - fixes on react-tv run-webos - on process.end remove/cleanup files - on virtualbox call remove/cleanup files
1 parent de82ad5 commit 70adb9b

File tree

15 files changed

+89
-51
lines changed

15 files changed

+89
-51
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# 0.3.0-beta.0
2+
3+
- stable CLI react-tv init
4+
- fixes on react-tv run-webos
5+
- on process.end remove/cleanup files
6+
- on virtualbox call remove/cleanup files
7+
18
# 0.3.0-alpha.2
29

310
- CLI: `react-tv init`

cli/__tests__/init-test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ describe('[CLI] init', () => {
5757
'package.json'
5858
));
5959

60+
const appInfo = require(path.resolve(
61+
createdAppPath,
62+
'react-tv/webos/appinfo.json'
63+
));
64+
65+
expect(appInfo.id).toEqual('react.tv.app');
66+
expect(appInfo.title).toEqual('russell-crowe');
67+
6068
expect(subject).toRunSuccessfully();
6169
expect(createdPackageJson.name).toEqual('russell-crowe');
6270
});

cli/bootstrap/custom-app/.babelrc

Whitespace-only changes.

cli/bootstrap/custom-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"dependencies": {
1717
"react": "^16.0.0",
18-
"react-tv": "0.3.0-alpha.3"
18+
"react-tv": "0.3.0-beta.0"
1919
},
2020
"devDependencies": {
2121
"webpack": "^3.8.1",

cli/bootstrap/custom-app/webpack.config.babel.js

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,29 @@ const sourcePath = path.join(__dirname, 'src');
77
module.exports = {
88
entry: path.resolve(sourcePath, 'App.js'),
99
output: {
10-
path: __dirname,
11-
filename: 'bundle.js'
10+
path: __dirname,
11+
filename: 'bundle.js',
1212
},
1313
resolve: {
1414
extensions: ['.js', '.jsx'],
15-
modules: [
16-
sourcePath,
17-
path.resolve(__dirname, 'node_modules')
18-
]
15+
modules: [sourcePath, path.resolve(__dirname, 'node_modules')],
1916
},
2017
module: {
2118
rules: [
2219
{
2320
test: /\.(js|jsx)$/,
2421
exclude: /node_modules/,
25-
use: [
26-
'babel-loader'
27-
],
28-
include: sourcePath
29-
}
30-
]
22+
use: ['babel-loader'],
23+
include: sourcePath,
24+
},
25+
],
3126
},
3227
plugins: [
3328
new webpack.DefinePlugin({
34-
'process.env.NODE_ENV': JSON.stringify('production')
29+
'process.env.NODE_ENV': JSON.stringify('production'),
3530
}),
3631
new webpack.optimize.ModuleConcatenationPlugin(),
3732
new UglifyJsPlugin(),
3833
new webpack.HashedModuleIdsPlugin(),
39-
]
40-
}
34+
],
35+
};

cli/scripts/webos/run.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,13 @@ function runWebOS(root) {
5656
execSync(`rm -f ${webosPath}/icon-large.png`);
5757
ReactTVConfig.files.forEach(file => {
5858
execSync(`rm -f ${webosPath}/${file}`);
59-
})
59+
});
6060
}
6161

6262
try {
6363
cleanup();
6464
execSync(`cp ${root}/react-tv/icon.png ${webosPath}/icon.png`);
65-
execSync(
66-
`cp ${root}/react-tv/icon-large.png ${webosPath}/icon-large.png`
67-
);
65+
execSync(`cp ${root}/react-tv/icon-large.png ${webosPath}/icon-large.png`);
6866

6967
ReactTVConfig.files.forEach(file => {
7068
const filePath = path.resolve(root, file);

cli/shared/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ function createReactTVApp(appName) {
3333
appPath = `${appPath}/${appName}`;
3434
try {
3535
fs.copySync(customApp, path.resolve(appPath));
36+
fs.copySync(appTemplatePath, path.resolve(appPath, 'react-tv'));
3637
replace({
3738
regex: '{{REACTTVAPP}}',
3839
replacement: appName,
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"presets":[
3+
"env", "react"
4+
]
5+
}

examples/clock-app-with-react-tv/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.3.0-alpha.2"
21+
"react-tv": "0.3.0-beta.0"
2222
},
2323
"devDependencies": {
2424
"webpack": "^3.8.1",
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"presets":[
3+
"env", "react"
4+
]
5+
}

0 commit comments

Comments
 (0)