Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Vite build step (tests, storybook not yet working) #125

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .env
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Base URL path for the enviroment
PUBLIC_URL = '/dev/'
BASE_URL = '/dev/'

# Name of enviroment for build
REACT_APP_KBASE_ENV=ci-europa
VITE_KBASE_ENV=ci-europa
# Domain of enviroment for build
REACT_APP_KBASE_DOMAIN=ci-europa.kbase.us
# The following must be a subdomain of REACT_APP_KBASE_DOMAIN
REACT_APP_KBASE_LEGACY_DOMAIN=legacy.ci-europa.kbase.us
VITE_KBASE_DOMAIN=ci-europa.kbase.us
# The following must be a subdomain of VITE_KBASE_DOMAIN
VITE_KBASE_LEGACY_DOMAIN=legacy.ci-europa.kbase.us

EXTEND_ESLINT=true
SKIP_PREFLIGHT_CHECK=true
10 changes: 5 additions & 5 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,31 @@
"appdev": {
"domain": "appdev.kbase.us",
"legacy": "legacy.appdev.kbase.us",
"public_url": "/"
"base_url": "/"
},

"ci": {
"domain": "ci.kbase.us",
"legacy": "legacy.ci.kbase.us",
"public_url": "/"
"base_url": "/"
},

"ci-europa": {
"domain": "ci-europa.kbase.us",
"legacy": "legacy.ci-europa.kbase.us",
"public_url": "/"
"base_url": "/"
},

"narrative-dev": {
"domain": "narrative-dev.kbase.us",
"legacy": "legacy.narrative-dev.kbase.us",
"public_url": "/"
"base_url": "/"
},

"production": {
"domain": "narrative.kbase.us",
"legacy": "legacy.narrative.kbase.us",
"public_url": "/"
"base_url": "/"
}
}
}
3 changes: 2 additions & 1 deletion public/index.html → index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link rel="manifest" href="/manifest.json" />
<link rel="icon" href="https://www.kbase.us/wp-content/uploads/sites/6/2020/08/kbase-favicon-32-bgwhite_rounded_corners.png" sizes="192x192" />
<link rel="apple-touch-icon" href="https://www.kbase.us/wp-content/uploads/sites/6/2020/08/kbase-favicon-32-bgwhite_rounded_corners.png" />
<meta charset="utf-8" />
Expand All @@ -23,5 +23,6 @@
<body>
<noscript>Please enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
Loading
Loading