Skip to content

Commit

Permalink
Merge pull request #15 from ezpzlmnsqz1337/feat/change-ui
Browse files Browse the repository at this point in the history
Feat/change UI
  • Loading branch information
ezpzlmnsqz1337 authored Aug 28, 2022
2 parents a774ffe + c14aa60 commit 989f52e
Show file tree
Hide file tree
Showing 50 changed files with 30,211 additions and 25,317 deletions.
12 changes: 12 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,17 @@ module.exports = {
'eslint:recommended',
'@vue/prettier',
'@vue/typescript'
],

overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
],
env: {
jest: true
}
}
]
}
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "big-robot-arm-ui"
}
}
74 changes: 74 additions & 0 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: NPM vue2/ts workflow
on:
push:
branches: [ $default-branch ]
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@master
with:
node-version: 16
cache: 'npm'
- name: Build project
run: |
npm ci
npm run build
- uses: montudor/action-zip@v1
with:
args: zip -qq -r dist.zip dist
- uses: actions/upload-artifact@v3
with:
name: dist
path: dist
- run: echo "🍏 This job's status is ${{ job.status }}."

test-unit:
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@master
with:
node-version: 16
cache: 'npm'
- name: Run tests
run: |
npm ci
npm run test:unit
- uses: montudor/action-zip@v1
with:
args: zip -qq -r coverage.zip coverage
- uses: actions/upload-artifact@v3
with:
name: coverage-reports
path: coverage
- run: echo "🍏 This job's status is ${{ job.status }}."

deploy:
runs-on: ubuntu-latest
needs: [build, test-unit]
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@master
with:
node-version: 16
cache: 'npm'
- run: |
npm ci
npm run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_BIG_ROBOT_ARM_UI }}'
channelId: live
projectId: big-robot-arm-ui
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ pnpm-debug.log*
*.sln
*.sw?

# my files
adafruitconfig.js
# coverage
/coverage
16 changes: 16 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
16 changes: 16 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
preset: '@vue/cli-plugin-unit-jest/presets/typescript-and-babel',
collectCoverage: true,
collectCoverageFrom: [
'src/**/*.{ts,vue}',
'!src/EventBus.ts',
'!src/registerServiceWorker.ts',
'!src/main.ts',
'!src/shared.ts',
'!src/store/store.ts',
'!src/constants/**/*',
'!src/plugins/**/*',
'!src/router/**/*',
'!src/assets/**/*'
]
}
15 changes: 0 additions & 15 deletions jsconfig.json

This file was deleted.

Loading

0 comments on commit 989f52e

Please sign in to comment.