mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-07 12:15:06 +00:00
Add release script for benchmarks
This commit is contained in:
@@ -11,6 +11,6 @@
|
||||
</head>
|
||||
<body>
|
||||
<div class="root"></div>
|
||||
<script src="dist/performance.bundle.js"></script>
|
||||
<script src="./bundle.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"name": "benchmarks",
|
||||
"version": "0.3.1",
|
||||
"scripts": {
|
||||
"benchmark": "webpack --config ./webpack.config.js"
|
||||
"build": "mkdir -p dist && cp -f index.html dist/index.html && webpack --config ./webpack.config.js",
|
||||
"release": "yarn build && git checkout gh-pages && rm -rf ../../benchmarks && mv dist ../../benchmarks && git add -A && git commit -m \"Benchmarks deploy\" && git push origin gh-pages && git checkout -"
|
||||
},
|
||||
"dependencies": {
|
||||
"aphrodite": "1.2.5",
|
||||
|
||||
@@ -7,10 +7,10 @@ const appDirectory = path.resolve(__dirname);
|
||||
|
||||
module.exports = {
|
||||
context: __dirname,
|
||||
entry: ['babel-polyfill', './src/index'],
|
||||
entry: './src/index',
|
||||
output: {
|
||||
path: path.resolve(appDirectory, 'dist'),
|
||||
filename: 'performance.bundle.js'
|
||||
filename: 'bundle.js'
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
|
||||
Reference in New Issue
Block a user