Vklass: Run tests with nx
This commit is contained in:
parent
1598a7e9c8
commit
5debb9a555
16
README.md
16
README.md
|
@ -29,6 +29,7 @@ The respective README files there contain more detailed descriptions.
|
||||||
* [api](#api)
|
* [api](#api)
|
||||||
* [api-skolplattformen](#api-skolplattformen)
|
* [api-skolplattformen](#api-skolplattformen)
|
||||||
* [api-hjarntorget](#api-hjarntorget)
|
* [api-hjarntorget](#api-hjarntorget)
|
||||||
|
* [api-vklass](#api-vklass)
|
||||||
* [curriculum](#curriculum)
|
* [curriculum](#curriculum)
|
||||||
* [hooks](#hooks)
|
* [hooks](#hooks)
|
||||||
* [Getting started with development](#getting-started-with-development)
|
* [Getting started with development](#getting-started-with-development)
|
||||||
|
@ -46,8 +47,8 @@ The respective README files there contain more detailed descriptions.
|
||||||
|
|
||||||
The project consists of several apps and libraries inside [a NX](https://nx.dev/) monorepo.
|
The project consists of several apps and libraries inside [a NX](https://nx.dev/) monorepo.
|
||||||
|
|
||||||
### Apps
|
### Apps
|
||||||
/apps/ contains the application projects. This is the main entry point for a runnable application.
|
/apps/ contains the application projects. This is the main entry point for a runnable application.
|
||||||
|
|
||||||
#### skolplattformen
|
#### skolplattformen
|
||||||
|
|
||||||
|
@ -64,7 +65,7 @@ For more information, check out the [source code](apps/skolplattformen-app).
|
||||||
The code for the website at https://skolplattformen.org/. It's built using Next.js.
|
The code for the website at https://skolplattformen.org/. It's built using Next.js.
|
||||||
|
|
||||||
For more information, check out the [source code](apps/website).
|
For more information, check out the [source code](apps/website).
|
||||||
### Libs
|
### Libs
|
||||||
|
|
||||||
/libs/ contains the library projects. There are many different kinds of libraries, and each library defines its own external API so that boundaries between libraries remain clear.
|
/libs/ contains the library projects. There are many different kinds of libraries, and each library defines its own external API so that boundaries between libraries remain clear.
|
||||||
|
|
||||||
|
@ -74,7 +75,11 @@ The base for all api implementations
|
||||||
|
|
||||||
#### api-hjarntorget
|
#### api-hjarntorget
|
||||||
|
|
||||||
The implementation for the school platform in Gothenburg called Hjärntorget
|
The implementation for the school platform in Gothenburg called Hjärntorget.
|
||||||
|
|
||||||
|
#### api-vklass
|
||||||
|
|
||||||
|
The implementation for the school platform Vklass.
|
||||||
|
|
||||||
#### api-skolplattformen
|
#### api-skolplattformen
|
||||||
|
|
||||||
|
@ -84,6 +89,7 @@ It also makes it easier for others to develop their own applications for the Sko
|
||||||
**Pro tip:** If you don't want the API to make requests to the back-end, you can turn on _fake mode_ to return static data instead. \
|
**Pro tip:** If you don't want the API to make requests to the back-end, you can turn on _fake mode_ to return static data instead. \
|
||||||
Do so by logging in using 12121212121212 or 1212121212 as your personal identity number.
|
Do so by logging in using 12121212121212 or 1212121212 as your personal identity number.
|
||||||
Check out the documentation [here](libs/api-skolplattformen).
|
Check out the documentation [here](libs/api-skolplattformen).
|
||||||
|
|
||||||
#### curriculum
|
#### curriculum
|
||||||
|
|
||||||
Translations of curriculum codes (sv: ämneskoder på schemat) to clear text descriptions
|
Translations of curriculum codes (sv: ämneskoder på schemat) to clear text descriptions
|
||||||
|
@ -95,7 +101,7 @@ Check out the documentation [here](libs/hooks).
|
||||||
|
|
||||||
## Getting started with Development
|
## Getting started with Development
|
||||||
|
|
||||||
To clone and build the project, you first need to install [git](https://git-scm.com/), [node](https://nodejs.org/en/) and [yarn](https://classic.yarnpkg.com/lang/en/docs/install/).
|
To clone and build the project, you first need to install [git](https://git-scm.com/), [node](https://nodejs.org/en/) and [yarn](https://classic.yarnpkg.com/lang/en/docs/install/).
|
||||||
|
|
||||||
Clone the repo with
|
Clone the repo with
|
||||||
```bash
|
```bash
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
{
|
||||||
|
"root": "libs/api-vklass",
|
||||||
|
"sourceRoot": "libs/api-vklass/src",
|
||||||
|
"projectType": "library",
|
||||||
|
"targets": {
|
||||||
|
"lint": {
|
||||||
|
"executor": "@nrwl/linter:eslint",
|
||||||
|
"outputs": ["{options.outputFile}"],
|
||||||
|
"options": {
|
||||||
|
"lintFilePatterns": ["libs/api-vklass/**/*.{ts,tsx,js,jsx}"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"test": {
|
||||||
|
"executor": "@nrwl/jest:jest",
|
||||||
|
"outputs": ["coverage/libs/api-skolplattformen"],
|
||||||
|
"options": {
|
||||||
|
"jestConfig": "libs/api-vklass/jest.config.js",
|
||||||
|
"passWithNoTests": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tags": []
|
||||||
|
}
|
|
@ -17,4 +17,4 @@
|
||||||
"**/__tests__/*",
|
"**/__tests__/*",
|
||||||
"**/__mocks__/*"
|
"**/__mocks__/*"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"projects": {
|
"projects": {
|
||||||
"api": "libs/api",
|
|
||||||
"api-hjarntorget": "libs/api-hjarntorget",
|
"api-hjarntorget": "libs/api-hjarntorget",
|
||||||
"api-skolplattformen": "libs/api-skolplattformen",
|
"api-skolplattformen": "libs/api-skolplattformen",
|
||||||
"api-test-app": "apps/api-test-app",
|
"api-vklass": "libs/api-vklass",
|
||||||
|
"api": "libs/api",
|
||||||
"curriculum": "libs/curriculum",
|
"curriculum": "libs/curriculum",
|
||||||
"hooks": "libs/hooks",
|
"hooks": "libs/hooks",
|
||||||
|
"api-test-app": "apps/api-test-app",
|
||||||
"skolplattformen-app": "apps/skolplattformen-app"
|
"skolplattformen-app": "apps/skolplattformen-app"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue