-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
bcb1ae8
commit b0dae5c
Showing
64 changed files
with
584 additions
and
325 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 |
---|---|---|
|
@@ -22,5 +22,4 @@ jobs: | |
node-version: 14.x | ||
|
||
- run: npm install | ||
- run: npm run build | ||
- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Publish to npm | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.author.email, '[email protected]')" | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }} | ||
- name: Identify | ||
run: | | ||
git config user.name OpenActive Bot | ||
git config user.email [email protected] | ||
- name: Use Node.js 14.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 14 | ||
registry-url: https://registry.npmjs.org/ | ||
- name: Install | ||
run: npm install | ||
- name: Test | ||
run: npm test | ||
- name: Increment Version | ||
run: npm version patch | ||
- name: Publish to npm | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
- name: Push version update | ||
run: git push | ||
|
||
dispatch: | ||
needs: publish | ||
strategy: | ||
matrix: | ||
repo: ['data-model-validator-site', 'openactive-test-suite'] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Trigger tooling update | ||
uses: peter-evans/repository-dispatch@v1 | ||
with: | ||
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }} | ||
repository: openactive/${{ matrix.repo }} | ||
event-type: rpde-validator-update |
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 |
---|---|---|
|
@@ -78,5 +78,5 @@ typings/ | |
# OSX | ||
.DS_Store | ||
|
||
# Dist | ||
dist | ||
# Local bash history | ||
bash_history.txt |
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,6 +1,6 @@ | ||
{ | ||
"name": "@openactive/rpde-validator", | ||
"version": "2.0.10", | ||
"version": "2.0.15", | ||
"description": "A library to walk and validate an RPDE feed", | ||
"homepage": "https://openactive.io", | ||
"author": "OpenActive Community <[email protected]>", | ||
|
@@ -10,7 +10,7 @@ | |
"validator", | ||
"json" | ||
], | ||
"main": "dist/index.js", | ||
"main": "src/index.js", | ||
"engines": { | ||
"node": "14.16.0" | ||
}, | ||
|
@@ -23,32 +23,26 @@ | |
}, | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "npm run build:genversion && npm run build:babel", | ||
"build:genversion": "genversion --es6 --semi src/version.js", | ||
"build:babel": "babel src --out-dir dist", | ||
"prepare": "npm run build", | ||
"lint": "eslint \"src/**/*.js\"", | ||
"e2e": "babel-node src/e2e.js", | ||
"lint-fix": "eslint \"src/**/*.js\" --fix", | ||
"e2e": "node src/e2e.js", | ||
"pretest": "npm run lint", | ||
"test": "npm run test-no-lint", | ||
"test-no-lint": "BABEL_ENV=test babel-node spec/run.js", | ||
"test-no-lint": "jasmine", | ||
"test-debug": "node --inspect-brk -i ./node_modules/jasmine/bin/jasmine.js", | ||
"postpublish": "git push", | ||
"publish-patch": "npm test && git pull && git push && npm version patch && npm publish" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.26.0", | ||
"eslint": "^5.6.1", | ||
"eslint-config-airbnb": "^17.1.0", | ||
"eslint-plugin-import": "^2.14.0", | ||
"jasmine": "^3.2.0" | ||
"eslint": "^8.36.0", | ||
"eslint-config-airbnb": "^19.0.4", | ||
"eslint-plugin-import": "^2.27.5", | ||
"jasmine": "^4.6.0" | ||
}, | ||
"dependencies": { | ||
"@openactive/data-model-validator": "^2.0.0", | ||
"babel-core": "^6.26.3", | ||
"babel-plugin-transform-builtin-extend": "^1.1.2", | ||
"babel-preset-env": "^1.7.0", | ||
"genversion": "^2.1.0", | ||
"jsonpath": "^1.0.0", | ||
"cache-parser": "^1.2.4", | ||
"jsonpath": "^1.1.1", | ||
"luxon": "^1.4.2", | ||
"node-fetch": "^2.2.0" | ||
} | ||
|
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
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,3 +1,3 @@ | ||
import ExtendableError from './extendable-error'; | ||
const ExtendableError = require('./extendable-error'); | ||
|
||
export default class TimeoutError extends ExtendableError {} | ||
module.exports = class TimeoutError extends ExtendableError {}; |
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 |
---|---|---|
|
@@ -9,4 +9,4 @@ class FeedLogPage { | |
} | ||
} | ||
|
||
export default FeedLogPage; | ||
module.exports = FeedLogPage; |
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
Oops, something went wrong.