-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
28728a8
commit 210ae91
Showing
11 changed files
with
220 additions
and
340 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = tab | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[{README.md,*.yml,*.d.ts}] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: run-checks | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
# Include all major maintenance + active LTS + current Node.js versions. | ||
# https://github.com/nodejs/Release#release-schedule | ||
node: [12, 14, 16] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Build | ||
run: npm run build | ||
- name: Test | ||
run: npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
var fs = require('fs'); | ||
var jsesc = require('jsesc'); | ||
const fs = require('fs'); | ||
const jsesc = require('jsesc'); | ||
|
||
function readJSON(path) { | ||
return JSON.parse(fs.readFileSync(path, 'utf-8')); | ||
} | ||
|
||
module.exports = { | ||
'labels': jsesc(readJSON('data/labels.json'), { | ||
'compact': false, | ||
'indentLevel': 2 | ||
labels: jsesc(readJSON('data/labels.json'), { | ||
compact: false, | ||
indentLevel: 2, | ||
}), | ||
'encoded': jsesc(readJSON('data/encoded.json'), { 'wrap': true }), | ||
'decoded': jsesc(readJSON('data/decoded.json'), { 'wrap': true }), | ||
'indexByCodePoint': jsesc(readJSON('data/index-by-code-point.json')), | ||
'indexByPointer': jsesc(readJSON('data/index-by-pointer.json')), | ||
'version': readJSON('package.json').version | ||
encoded: jsesc(readJSON('data/encoded.json'), { wrap: true }), | ||
decoded: jsesc(readJSON('data/decoded.json'), { wrap: true }), | ||
indexByCodePoint: jsesc(readJSON('data/index-by-code-point.json')), | ||
indexByPointer: jsesc(readJSON('data/index-by-pointer.json')), | ||
version: readJSON('package.json').version | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.