Skip to content

Commit

Permalink
Merge branch 'release/0.3.0' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveKeehl committed Jan 14, 2023
2 parents 3600b75 + 827f6a6 commit 889e42a
Show file tree
Hide file tree
Showing 91 changed files with 18,397 additions and 13,192 deletions.
38 changes: 19 additions & 19 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.205.2/containers/docker-existing-dockerfile
{
"name": "fonts-jar",
"name": "fonts-jar",

// Sets the run context to one level up instead of the .devcontainer folder.
"context": "..",
// Sets the run context to one level up instead of the .devcontainer folder.
"context": "..",

// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
"dockerFile": "../Dockerfile",
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
"dockerFile": "../Dockerfile",

// Set *default* container specific settings.json values on container create.
"settings": {},
// Set *default* container specific settings.json values on container create.
"settings": {},

// Add the IDs of extensions you want installed when the container is created.
"extensions": []
// Add the IDs of extensions you want installed when the container is created.
"extensions": []

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Uncomment the next line to run commands after the container is created - for example installing curl.
// "postCreateCommand": "apt-get update && apt-get install -y curl",
// Uncomment the next line to run commands after the container is created - for example installing curl.
// "postCreateCommand": "apt-get update && apt-get install -y curl",

// Uncomment when using a ptrace-based debugger like C++, Go, and Rust
// "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],
// Uncomment when using a ptrace-based debugger like C++, Go, and Rust
// "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],

// Uncomment to use the Docker CLI from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker.
// "mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ],
// Uncomment to use the Docker CLI from inside the container. See https://aka.ms/vscode-remote/samples/docker-from-docker.
// "mounts": [ "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind" ],

// Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root.
// "remoteUser": "vscode"
// Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root.
// "remoteUser": "vscode"
}
72 changes: 66 additions & 6 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,68 @@
node_modules/*
dist/*
*.config.*
*.js

# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

#cache
.turbo
.next
.vercel
.npm
.eslintcache
.cache

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*

out/
build/
dist/

# plasmo - https://www.plasmo.com
.plasmo

# bpp - http://bpp.browser.market/
keys.json

# typescript
.tsbuildinfo

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
coverage/*

# Coverage directory used by tools like istanbul
coverage
*.lcov
.DS_Store

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# Mac
.DS_Store

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
49 changes: 12 additions & 37 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: CI/CD
name: CI

on:
push:
branches:
- main
- develop
on: [push]

jobs:
CI:
Expand All @@ -18,42 +14,21 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
node-version: "18"
cache: "npm"

- name: Instal dependencies
- name: Install dependencies
run: npm install

- name: Build
run: npm run build
- name: Lint
run: npm run lint

- name: Build and zip extension artifact
run: npm run build -- --zip

- name: Upload build artifact
uses: actions/upload-artifact@master
with:
name: build-artifact
path: ./fonts-jar.tgz
name: fonts-jar
path: ./build/chrome-mv3-prod.zip
retention-days: 1

CD:
needs: [CI]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Download artifact
uses: actions/download-artifact@master
with:
name: build-artifact
path: ./fonts-jar.tgz

# - name: Upload to Chrome Web Store
# uses: mnao305/[email protected]
# with:
# file-path: ./fonts-jar.tgz
# extension-id: fonts-jar
# client-id: ${{ secrets.CLIENT_ID }}
# refresh-token: ${{ secrets.REFRESH_TOKEN }}
# publish-target: trustedTesters
35 changes: 35 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish

on:
push:
branches:
- "main"

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
CD:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "npm"

- name: Install dependencies
run: npm install

- name: Build and zip extension artifact
run: npm run build -- --zip

# - name: Browser Platform Publish
# uses: PlasmoHQ/bpp@v3
# with:
# keys: ${{ secrets.SUBMIT_KEYS }}
# artifact: build/chrome-mv3-prod.zip
132 changes: 47 additions & 85 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,106 +1,68 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# Runtime data
pids
*.pid
*.seed
*.pid.lock
# dependencies
/node_modules
/.pnp
.pnp.js

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov
# testing
/coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components
#cache
.turbo
.next
.vercel
.npm
.eslintcache
.cache

# node-waf configuration
.lock-wscript
# misc
.DS_Store
*.pem

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# Dependency directories
node_modules/
jspm_packages/
# local env files
.env*

# TypeScript v1 declaration files
typings/
out/
build/
dist/

# TypeScript cache
*.tsbuildinfo
# plasmo - https://www.plasmo.com
.plasmo

# Optional npm cache directory
.npm
# bpp - http://bpp.browser.market/
keys.json

# Optional eslint cache
.eslintcache
# typescript
.tsbuildinfo

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Optional REPL history
.node_repl_history
# Coverage directory used by tools like istanbul
coverage
*.lcov

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# Mac
.DS_Store

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

.DS_Store
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
6 changes: 0 additions & 6 deletions .prettierrc

This file was deleted.

Loading

0 comments on commit 889e42a

Please sign in to comment.