Skip to content

Commit

Permalink
feat(src): move all files to src, start parsing out board w/ vanilla JS
Browse files Browse the repository at this point in the history
Original parsing logic and classes come from https://glitch.com/~jarchive-json
  • Loading branch information
cmnord committed Feb 28, 2023
1 parent 97bcfd0 commit 4963025
Show file tree
Hide file tree
Showing 13 changed files with 385 additions and 228 deletions.
57 changes: 28 additions & 29 deletions .github/workflows/deployment.yml
Expand Up @@ -3,7 +3,7 @@ name: Deployment

on:
schedule:
- cron: '31 13 * * 3'
- cron: "31 13 * * 3"
push:
tags:
- "20.*"
Expand All @@ -13,48 +13,47 @@ on:
- "24.*"

jobs:

Build:
outputs:
created: ${{ steps.daily-version.outputs.created }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: npm test # This includes the build
- uses: fregante/daily-version-action@v1
name: Create tag if necessary
id: daily-version
- name: Update extension’s meta
env:
VER: ${{ steps.daily-version.outputs.version }}
run: |
echo https://github.com/$GITHUB_REPOSITORY/tree/$VER > distribution/SOURCE_URL
npm run version
- uses: actions/upload-artifact@v2
with:
path: distribution
- uses: actions/checkout@v2
- run: npm install
- run: npm test # This includes the build
- uses: fregante/daily-version-action@v1
name: Create tag if necessary
id: daily-version
- name: Update extension’s meta
env:
VER: ${{ steps.daily-version.outputs.version }}
run: |
echo https://github.com/$GITHUB_REPOSITORY/tree/$VER > dist/SOURCE_URL
npm run version
- uses: actions/upload-artifact@v2
with:
path: dist

Chrome:
needs: Build
if: github.event_name == 'push' || needs.Build.outputs.created
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
- run: cd artifact && npx chrome-webstore-upload-cli@1 upload --auto-publish
env:
EXTENSION_ID: ${{ secrets.EXTENSION_ID }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }}
- uses: actions/download-artifact@v2
- run: cd artifact && npx chrome-webstore-upload-cli@1 upload --auto-publish
env:
EXTENSION_ID: ${{ secrets.EXTENSION_ID }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }}

Firefox:
needs: Build
if: github.event_name == 'push' || needs.Build.outputs.created
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
- run: cd artifact && npx web-ext-submit@4
env:
WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_API_KEY }}
WEB_EXT_API_SECRET: ${{ secrets.WEB_EXT_API_SECRET }}
- uses: actions/download-artifact@v2
- run: cd artifact && npx web-ext-submit@4
env:
WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_API_KEY }}
WEB_EXT_API_SECRET: ${{ secrets.WEB_EXT_API_SECRET }}
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,3 +1,3 @@
node_modules
yarn.lock
distribution
dist
118 changes: 0 additions & 118 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions package.json
Expand Up @@ -3,11 +3,11 @@
"scripts": {
"build": "webpack --mode=production",
"dev": "webpack --mode=development --watch",
"release:cws": "webstore upload --source=distribution --auto-publish",
"release:amo": "web-ext-submit --source-dir distribution",
"release:cws": "webstore upload --source=dist --auto-publish",
"release:amo": "web-ext-submit --source-dir dist",
"release": "VER=$(daily-version) run-s build version release:*",
"start:firefox": "web-ext run --source-dir distribution",
"version": "dot-json distribution/manifest.json version $VER"
"start:firefox": "web-ext run --source-dir dist",
"version": "dot-json dist/manifest.json version $VER"
},
"devDependencies": {
"@types/firefox-webext-browser": "^109.0.0",
Expand All @@ -18,7 +18,6 @@
"dot-json": "^1.1.0",
"eslint": "^6.1.0",
"npm-run-all": "^4.1.5",
"size-plugin": "^1.2.0",
"terser-webpack-plugin": "^5.3.6",
"ts-loader": "^9.4.2",
"typescript": "^4.9.5",
Expand Down
60 changes: 0 additions & 60 deletions source/content-script.ts

This file was deleted.

0 comments on commit 4963025

Please sign in to comment.