Skip to content

Commit

Permalink
Merge pull request #368 from projectfluent/updates
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
eemeli committed Feb 28, 2024
2 parents 7d3bc42 + a66667d commit 5c015bd
Show file tree
Hide file tree
Showing 12 changed files with 1,338 additions and 6,096 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
@@ -1,6 +1,6 @@
{
"parserOptions": {
"ecmaVersion": 2018,
"ecmaVersion": 2022,
"sourceType": "module"
},
"env": {
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/test.yml
@@ -1,14 +1,12 @@
name: Run tests

on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches:
- master
pull_request:
branches:
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
Expand All @@ -19,8 +17,9 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '12'
- name: Run ci
run: |
npm install
npm run ci
node-version: 20
- run: npm ci
- run: npm run lint
- run: npm test
- run: npm run test:ebnf
- run: npm run test:validate
6 changes: 3 additions & 3 deletions bin/ebnf.js
Expand Up @@ -26,14 +26,14 @@ if (file_path === "-") {

function exit_help(exit_code) {
console.log(`
Usage: node -r esm ebnf.js [OPTIONS] <FILE>
Usage: node ebnf.js [OPTIONS] <FILE>
When FILE is "-", read text from stdin.
Examples:
node -r esm ebnf.js path/to/grammar.js
cat path/to/grammar.js | node -r esm ebnf.js -
node ebnf.js path/to/grammar.js
cat path/to/grammar.js | node ebnf.js -
Options:
Expand Down
6 changes: 3 additions & 3 deletions bin/parse.js
Expand Up @@ -26,14 +26,14 @@ if (file_path === "-") {

function exit_help(exit_code) {
console.log(`
Usage: node -r esm parse.js [OPTIONS] <FILE>
Usage: node parse.js [OPTIONS] <FILE>
When FILE is "-", read text from stdin.
Examples:
node -r esm parse.js path/to/file.ftl
cat path/to/file.ftl | node -r esm parse.js -
node parse.js path/to/file.ftl
cat path/to/file.ftl | node parse.js -
Options:
Expand Down

0 comments on commit 5c015bd

Please sign in to comment.