Skip to content

Commit

Permalink
Move linter to @openeo/processes-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Jan 23, 2023
1 parent 5ebe41b commit c9c0e9c
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 630 deletions.
7 changes: 1 addition & 6 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ To run the tests follow these steps:
1. Install [node and npm](https://nodejs.org) - should run with any recent version
2. Run `npm install` in this folder to install the dependencies
3. Run the tests with `npm test`. This will also lint the files and verify it follows best practices.
4. To show the files nicely formatted in a web browser, run `npm run render`. It starts a server and opens the corresponding page in a web browser.
4. To show the files nicely formatted in a web browser, run `npm start`. It starts a server and opens the corresponding page in a web browser.

## Development processes

Expand All @@ -28,8 +28,3 @@ Sometimes it is useful to define a new "data type" on top of the JSON types (num
For example, a client could make a select box with all collections available by adding a subtype `collection-id` to the JSON type `string`.
If you think a new subype should be added, you need to add it to the `meta/subtype-schemas.json` file.
It must be a valid JSON Schema. The tests mentioned above will also verify to a certain degree that the subtypes are defined correctly.

## Examples

To get out of proposal state, at least two examples must be provided.
The examples are located in the `examples` folder and will also be validated to some extent in the tests.
18 changes: 6 additions & 12 deletions tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openeo/processes-validator",
"version": "0.2.0",
"name": "@openeo/processes",
"version": "1.2.0",
"author": "openEO Consortium",
"contributors": [
{
Expand All @@ -18,19 +18,13 @@
"url": "git+https://github.com/Open-EO/openeo-processes.git"
},
"devDependencies": {
"@apidevtools/json-schema-ref-parser": "^9.0.6",
"@openeo/js-processgraphs": "^1.0.0",
"ajv": "^6.12.4",
"@openeo/processes-lint": "^0.1.3",
"concat-json-files": "^1.1.0",
"glob": "^7.1.6",
"http-server": "^14.1.1",
"jest": "^26.4.2",
"markdown-spellcheck": "^1.3.1",
"markdownlint": "^0.26.0"
"http-server": "^14.1.1"
},
"scripts": {
"test": "jest",
"test": "openeo-processes-lint testConfig.json",
"generate": "concat-json-files \"../{*,proposals/*}.json\" -t \"processes.json\"",
"render": "npm run generate && http-server -p 9876 -o docs.html -c-1"
"start": "npm run generate && http-server -p 9876 -o docs.html -c-1"
}
}
298 changes: 0 additions & 298 deletions tests/processes.test.js

This file was deleted.

29 changes: 0 additions & 29 deletions tests/subtypes-file.test.js

This file was deleted.

Loading

0 comments on commit c9c0e9c

Please sign in to comment.