Skip to content

Commit d003138

Browse files
committed
Review by @matthieubosquet
Add codecov integration to GitHub action Publish package to NPM from GitHub action Encode/decode SPARQL properly when adding to URL fragment Use TypeScript linting and fix warnings Demo webroot is only in /docs Add blank text to literals in toolbox Extract alias types Validate LANGTAG in langString Add description to lib package Remove unused dependency from lib package
1 parent 4ce5567 commit d003138

40 files changed

+2389
-1184
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,7 @@ jobs:
2929
- run: npm ci
3030
- run: npm run build --if-present
3131
- run: npm test
32+
- name: Upload coverage to Codecov
33+
uses: codecov/codecov-action@v1
34+
with:
35+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish to NPM
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2
13+
with:
14+
node-version: '12.x'
15+
registry-url: 'https://registry.npmjs.org'
16+
- run: npm install
17+
- run: npm publish package
18+
env:
19+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules
22
.vs
33
obj
44
bin
5+
.eslintcache

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# sparql-blockly
22

3-
[![Build Status](https://github.com/langsamu/sparql-blockly/actions/workflows/node.js.yml/badge.svg)](https://github.com/langsamu/sparql-blockly/actions)
4-
[![npm version](https://badge.fury.io/js/sparql-blockly.svg)](https://badge.fury.io/js/sparql-blockly)
3+
[![Build Status](https://github.com/langsamu/sparql-blockly/actions/workflows/ci.yml/badge.svg)](https://github.com/langsamu/sparql-blockly/actions)
4+
[![npm version](https://badge.fury.io/js/sparql-blockly.svg)](https://www.npmjs.com/package/sparql-blockly)
5+
[![codecov](https://codecov.io/gh/langsamu/sparql-blockly/branch/main/graph/badge.svg?token=X55Y21AMAE)](https://codecov.io/gh/langsamu/sparql-blockly)
56

67
## [Online demo](https://langsamu.github.io/sparql-blockly/)
78

demo/.eslintrc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": [
5+
"@typescript-eslint"
6+
],
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/recommended"
10+
]
11+
}

demo/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
transpiled
2-
wwwroot/app.js

0 commit comments

Comments
 (0)