Add release script for benchmarks

This commit is contained in:
Nicolas Gallagher
2018-01-17 17:22:40 -08:00
parent ed0cafac7c
commit a9342daee2
5 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -11,6 +11,6 @@
</head>
<body>
<div class="root"></div>
<script src="dist/performance.bundle.js"></script>
<script src="./bundle.js"></script>
</body>
</html>
+2 -1
View File
@@ -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",
+2 -2
View File
@@ -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: [