-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify Local Frontend Development Workflow (#313)
* Update base button theming. * Update home and app form for new button styles. * Misc button updates. * Fix unit tests. Add new build. * Update default secondary hover color. * Add custom script to vite config to ensure build and copy at build stage. Add new watch npm script. * Add husky pre-push hook to run checks on push. * Update build messages. * Add local development details to readme.
- Loading branch information
Showing
8 changed files
with
90 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
## Navigate to UI directory | ||
|
||
cd ui | ||
|
||
## Install Dependencies | ||
|
||
npm install | ||
|
||
## Run Build | ||
|
||
npm run build | ||
|
||
## Check for Uncommitted Build Files | ||
|
||
if [ -n "$(git status --porcelain)" ]; then | ||
echo "There are uncommitted changes. Please review the project for any uncommitted files before proceeding." | ||
exit 1 | ||
else | ||
echo "No uncommitted changes found." | ||
fi | ||
|
||
# Run Unit Tests | ||
|
||
npm run test | ||
|
||
# Run Linting | ||
|
||
npm run lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
tsc | ||
vite build | ||
|
||
# Rename assets for static name | ||
mv dist/assets/index-*.js dist/assets/index.js | ||
mv dist/assets/index-*.css dist/assets/index.css | ||
|
||
# Copy assets to jhub_apps static folder | ||
cp -r dist/assets/index.js ../jhub_apps/static/js | ||
cp -r dist/assets/index.css ../jhub_apps/static/css |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters