Skip to content

Commit

Permalink
Add metadata and pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Fcmam5 committed Jun 20, 2024
1 parent 4872ad7 commit 2818baa
Show file tree
Hide file tree
Showing 6 changed files with 119 additions and 7 deletions.
12 changes: 12 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: https://ko-fi.com/fcmam5
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
polar: # Replace with a single Polar username
buy_me_a_coffee: https://www.buymeacoffee.com/ngcmbf6
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
50 changes: 50 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI

on:
pull_request:
branches:
- master
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js 20
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Cache npm modules
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Install dependencies
run: npm install
env:
NODE_ENV: development

- name: Lint code
run: npm run lint

- name: Compile code
run: npm run compile

- name: Compile tests
run: npm run compile-tests

- name: Run tests
run: npm test

- name: Package
run: npm run package
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish Extension

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Node.js 20
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install dependencies
run: npm install

- name: Lint code
run: npm run lint

- name: Compile code
run: npm run compile

- name: Package Extension
run: npm run package

- name: Publish Extension
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
run: |
npm install -g vsce
vsce publish
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.13.1
9 changes: 6 additions & 3 deletions package-lock.json

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

17 changes: 13 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,24 @@
"displayName": "nimiro",
"description": "Juxtapose numbers for developers with dyslexia",
"publisher": "fcmam5",
"version": "0.0.1",
"version": "0.0.2",
"engines": {
"vscode": "^1.90.0"
"vscode": "^1.0.0"
},
"author": "Abdeldjalil Fortas (Fcmam5)",
"repository": {
"type": "git",
"url": "https://github.com/Fcmam5/vscode-nimiro"
},
"funding": {
"url": "https://ko-fi.com/fcmam5"
},
"keywords": [
"accessibility",
"a11y",
"dyslexia",
"adhd"
],
"categories": [
"Other"
],
Expand All @@ -37,13 +46,13 @@
]
},
"scripts": {
"vscode:prepublish": "pnpm run package",
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "pnpm run compile-tests && pnpm run compile && pnpm run lint",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "vscode-test"
},
Expand Down

0 comments on commit 2818baa

Please sign in to comment.