Skip to content

Commit

Permalink
feat 152 move test and build to prepush
Browse files Browse the repository at this point in the history
* because CloudFlare doesn't accept any other npm install command and several solutions were tried I decided to move the test and build commands to pre-push and deploy the build directory directly without any build command in the CloudFlare pages settings
* a strong position can be taken that this is better, no push without successful build & test keeps everything in one environment, and closes a loop for faster development
  • Loading branch information
toni-sharpe committed May 28, 2024
1 parent 72ec82a commit 72db219
Show file tree
Hide file tree
Showing 16 changed files with 112 additions and 4 deletions.
3 changes: 0 additions & 3 deletions gui/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
Expand Down
15 changes: 15 additions & 0 deletions gui/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"files": {
"main.css": "/static/css/main.8960bc69.css",
"main.js": "/static/js/main.0b3109c1.js",
"static/js/651.48ece79a.chunk.js": "/static/js/651.48ece79a.chunk.js",
"index.html": "/index.html",
"main.8960bc69.css.map": "/static/css/main.8960bc69.css.map",
"main.0b3109c1.js.map": "/static/js/main.0b3109c1.js.map",
"651.48ece79a.chunk.js.map": "/static/js/651.48ece79a.chunk.js.map"
},
"entrypoints": [
"static/css/main.8960bc69.css",
"static/js/main.0b3109c1.js"
]
}
Binary file added gui/build/cases.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gui/build/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions gui/build/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="A demo site from Toni Sharpe exploring data visualisation with the focus on accessibility, developer experience and performance."/><link rel="apple-touch-icon" href="/logo192.png"/><title>Toni Sharpe - Data Visualisation</title><script defer="defer" src="/static/js/main.0b3109c1.js"></script><link href="/static/css/main.8960bc69.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
15 changes: 15 additions & 0 deletions gui/build/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "16x16",
"type": "image/x-icon"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
Binary file added gui/build/repvsest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions gui/build/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
2 changes: 2 additions & 0 deletions gui/build/static/css/main.8960bc69.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions gui/build/static/css/main.8960bc69.css.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions gui/build/static/js/651.48ece79a.chunk.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions gui/build/static/js/651.48ece79a.chunk.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions gui/build/static/js/main.0b3109c1.js

Large diffs are not rendered by default.

63 changes: 63 additions & 0 deletions gui/build/static/js/main.0b3109c1.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */

/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @remix-run/router v1.10.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/

/**
* React Router v6.17.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/
1 change: 1 addition & 0 deletions gui/build/static/js/main.0b3109c1.js.map

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion gui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"react-router-dom": "^6.14.2",
"react-scripts": "5.0.1",
"simple-statistics": "^7.8.3",
"typescript": "^5.4.5",
"typescript": "^4.9.5",
"web-vitals": "^2.1.4"
},
"scripts": {
Expand Down Expand Up @@ -50,6 +50,10 @@
"last 1 safari version"
]
},
"pre-push": [
"test",
"build"
],
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@storybook/addon-a11y": "^7.5.3",
Expand Down

0 comments on commit 72db219

Please sign in to comment.