diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 265945b..c9a1525 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -28,5 +28,3 @@ jobs: run: yarn - name: Run compiler run: yarn tsc - - name: Deploy to GH Pages - run: bash ./deploy.sh diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b26cc13 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,18 @@ +language: node_js +node_js: + - lts/* +install: + - yarn +script: + - yarn build +deploy: + provider: pages + skip_cleanup: true + local_dir: dist + # A token generated on GitHub allowing Travis to push code on you repository. + # Set in the Travis settings page of your repository, as a secure variable. + github_token: $GITHUB_TOKEN + keep_history: true + on: + branch: main + diff --git a/package.json b/package.json index 329f84a..dc8eb4c 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,9 @@ "license": "MIT", "version": "0.0.0", "scripts": { - "dev": "vite", "build": "tsc && vite build", + "dev": "vite", + "lint": "eslint src --ext .js,.jsx,.ts,.tsx", "prepare": "husky install", "serve": "vite preview" },