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

task/TUI-157 -- vite client #1

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 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
15 changes: 15 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Overview:

## Related Github Issues:

- [TUP-1234](https://jira.tacc.utexas.edu/browse/TUP-1234)

## Summary of Changes:

## Testing Steps:

1.

## UI Photos:

## Notes:
65 changes: 65 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: CI

# Controls when the action will run. Triggers the workflow on pushes to main or on pull request events
on:
push:
branches: [main]
pull_request:
branches: ['**']

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Client_Side_Unit_Tests:
runs-on: ubuntu-18.04
defaults:
run:
working-directory: tup-ui
steps:
- uses: actions/checkout@v2
- name: Setup Node.js for use with actions
uses: actions/setup-node@v1
with:
node-version: 16.x

- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: npm ci
run: |
npm ci
- name: Client Side Unit Tests
run: |
npm run test

# - name: Upload coverage to Codecov
# run: bash <(curl -s https://codecov.io/bash) -Z -t ${{ secrets.CODECOV_TOKEN }} -cF javascript

Client_Side_Linting:
runs-on: ubuntu-18.04
defaults:
run:
working-directory: tup-ui
steps:
- uses: actions/checkout@v2
- name: Setup Node.js for use with actions
uses: actions/setup-node@v1
with:
node-version: 16.x

- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: npm ci
run: |
npm ci
- name: Client Side Linting
run: |
npm run lint
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# tup-services

Services API and clients for TACC User Portal functions

## Client

The client has been built using [Vite](https://vitejs.dev/guide/#trying-vite-online) and [React (TypeScript)](https://reactjs.org/). It was configured with [NodeJS v16.15.0 (LTS)](https://nodejs.org/en/). To run it, you may use the following shell commands from within the [`tup-ui`](./tup-ui) directory:

```
npm install
npm run dev
```

Then browse to `http://localhost:3000`

### Node Versions

The `package-lock.json` version for this project is version 2, and is backwards compatible with older versions of of `npm`. If you wish to concurrently run different versions of NodeJS, you may use a tool like [`nvm`](https://github.com/nvm-sh/nvm).
5 changes: 5 additions & 0 deletions tup-ui/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
coverage
build
webpack.*.js
*.test.js
24 changes: 24 additions & 0 deletions tup-ui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
5 changes: 5 additions & 0 deletions tup-ui/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
coverage
build
webpack.*.js
*.test.js
Loading