Skip to content

Commit

Permalink
Enhancement: Refactor to Services
Browse files Browse the repository at this point in the history
  • Loading branch information
paulzakin committed Feb 26, 2023
0 parents commit 1ee8011
Show file tree
Hide file tree
Showing 44 changed files with 5,166 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "sort"],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:sort/recommended"
],
"rules": {
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/semi": "off",
"curly": "warn",
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "off"
},
"ignorePatterns": ["out", "dist", "**/*.d.ts"]
}
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# The default reviewer
* @paulzakin
2 changes: 2 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## What did you do and why?

16 changes: 16 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Clean Slate security policy

## Supported versions

Markdown Wiki uses a **rolling release** model. This means only the most recent version of Markdown Wiki is supported.

## Reporting a vulnerability

If you find a vulnerability, **do not create an issue** in GitHub. Instead, email `[email protected]`.

I'll draft [a GitHub security advisory](https://docs.github.com/en/code-security/repository-security-advisories/creating-a-repository-security-advisory). Then, I'll collaborate with you to get the patch released as quickly as possible.

Once, the patch is ready to go, we will:

- Bump the version of Markdown Wiki using SemVer. For example, `1.7.1` to `1.7.2`.
- Publish the security advisory to GitHub.
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Main

on:
push:
branches:
- 'main'

jobs:
Publish:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3

- uses: pnpm/[email protected]
with:
version: 7

- name: Use Node.js 19
uses: actions/setup-node@v3
with:
node-version: 19
cache: 'pnpm'

- name: Install dependencies
run: pnpm install
30 changes: 30 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Pull Request

on:
pull_request:
branches: [main]
paths-ignore:
- 'docs/**'

jobs:
CI:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3

- uses: pnpm/[email protected]
with:
version: 7

- name: Use Node.js 19
uses: actions/setup-node@v3
with:
node-version: 19
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Run the pretest suite
run: pnpm test
29 changes: 29 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Tag

on:
push:
tags:
- '*.*.*'

jobs:
Publish:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3

- uses: pnpm/[email protected]
with:
version: 7

- name: Use Node.js 19
uses: actions/setup-node@v3
with:
node-version: 19
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Publish
run: npx vsce publish --no-dependencies --no-update-package-json --no-git-tag-version -p ${{ secrets.AZURE_TOKEN }} ${{ github.ref_name }}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.DS_Store
.vscode/ltex.dictionary.en-US.txt
*.vsix
dist
node_modules
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 19.4.0
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["dbaeumer.vscode-eslint", "amodio.tsl-problem-matcher"]
}
13 changes: 13 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"preLaunchTask": "${defaultBuildTask}"
}
]
}
13 changes: 13 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Place your settings in this file to overwrite default and user settings.
{
"files.exclude": {
"out": false, // set this to true to hide the "out" folder with the compiled JS files
"dist": false // set this to true to hide the "dist" folder with the compiled JS files
},
"search.exclude": {
"out": true, // set this to false to include "out" folder in search results
"dist": true // set this to false to include "dist" folder in search results
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off"
}
19 changes: 19 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": ["$ts-webpack-watch", "$tslint-webpack-watch"],
"isBackground": true,
"presentation": {
"reveal": "never",
"group": "watchers"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
13 changes: 13 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.vscode/**
.vscode-test/**
out/**
node_modules/**
src/**
.gitignore
.yarnrc
webpack.config.js
vsc-extension-quickstart.md
**/tsconfig.json
**/.eslintrc.json
**/*.map
**/*.ts
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Change Log

See [GitHub Releases](https://github.com/successible/markdown-wiki/releases) for the list of changes.
Loading

0 comments on commit 1ee8011

Please sign in to comment.