Skip to content

Commit

Permalink
feat: is a browser extension
Browse files Browse the repository at this point in the history
  • Loading branch information
daiyam committed Nov 8, 2021
1 parent 3933c7d commit 9ff8a36
Show file tree
Hide file tree
Showing 19 changed files with 2,301 additions and 368 deletions.
9 changes: 9 additions & 0 deletions .artifactrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
artifacts:
- name: "@daiyam/artifact-base"
version: 0.3.0
- name: "@daiyam/artifact-lang-ts"
version: 0.2.1
- name: "@daiyam/artifact-vsx-ts"
version: 0.3.0
- name: "@daiyam/artifact-vsx-zokugun"
version: 0.2.0
18 changes: 18 additions & 0 deletions .commitlintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
extends:
- "@commitlint/config-conventional"
rules:
type-enum:
- 2
- always
- - build
- ci
- docs
- enhance
- feat
- fix
- perf
- refactor
- revert
- style
- test
- vcs
14 changes: 9 additions & 5 deletions .fixpackrc
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
{
"sortToTop": [
"name",
"name",
"displayName",
"description",
"version",
"author",
"description",
"version",
"private",
"author",
"publisher",
"license",
"homepage",
"repository",
"bugs",
"engines",
"bin",
"main",
"browser",
"types",
"scripts",
"dependencies",
"devDependencies",
Expand All @@ -23,6 +27,6 @@
"galleryBanner",
"categories",
"keywords"
],
],
"finalNewLine": true
}
2 changes: 0 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Publish Extension

on:
push:
tags:
- "*"

jobs:
publish:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
lib
out
node_modules
.vscode-test/
Expand Down
4 changes: 4 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"package.json": "fixpack",
"*.ts": "xo"
}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v14.16.1
v14.17.6
20 changes: 15 additions & 5 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// A launch configuration that compiles the extension and then opens it inside a new window
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [
Expand All @@ -14,7 +10,7 @@
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/out/**/*.js"
"${workspaceFolder}/lib/**/*.js"
],
"preLaunchTask": "npm: watch"
},
Expand All @@ -31,6 +27,20 @@
"${workspaceFolder}/out/test/*.js"
],
"preLaunchTask": "npm: watch"
},
{
"name": "Web Extension",
"type": "pwa-extensionHost",
"debugWebWorkerHost": true,
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionDevelopmentKind=web"
],
"outFiles": [
"${workspaceFolder}/lib/**/*.js"
],
"preLaunchTask": "npm: watch"
}
]
}
10 changes: 6 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"debug.onTaskErrors": "debugAnyway",
"files.exclude": {},
"search.exclude": {
"out": true
}
"lib/**": true,
"out/**": true,
},
"taskExplorer.exclude": [
".husky",
],
}
2 changes: 0 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
"version": "2.0.0",
"tasks": [
Expand Down
6 changes: 1 addition & 5 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,4 @@
!package.json
!LICENSE
!README.md
!out/disposable.js
!out/extension.js
!out/folding-hub.js
!out/folding-provider.js
!node_modules/**
!lib/**
86 changes: 86 additions & 0 deletions .xo-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"rules": {
"@typescript-eslint/brace-style": [
"error",
"stroustrup"
],
"@typescript-eslint/class-literal-property-style": [
"error",
"fields"
],
"@typescript-eslint/keyword-spacing": [
"error",
{
"overrides": {
"if": {
"after": false
},
"for": {
"after": false
},
"switch": {
"after": false
},
"while": {
"after": false
}
}
}
],
"@typescript-eslint/no-confusing-void-expression": "off",
"@typescript-eslint/no-dynamic-delete": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/object-curly-spacing": [
"error",
"always"
],
"arrow-parens": [
"error",
"always"
],
"capitalized-comments": "off",
"complexity": "off",
"default-case": "off",
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index",
"object"
],
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"max-depth": [
"error",
8
],
"max-params": [
"error",
12
],
"no-await-in-loop": "off",
"no-else-return": "off",
"no-lonely-if": "off",
"no-negated-condition": "off",
"one-var": [
"error",
"never"
],
"unicorn/empty-brace-spaces": "off",
"unicorn/no-array-callback-reference": "off",
"unicorn/prefer-module": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/prefer-switch": "off",
"unicorn/prefer-ternary": "off"
}
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2018 Baptiste Augrain
Copyright (c) 2018-present Baptiste Augrain

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
Expand Down
Loading

0 comments on commit 9ff8a36

Please sign in to comment.