Skip to content

Commit

Permalink
Use node16 and asdf
Browse files Browse the repository at this point in the history
Introduce .tool-versions with newest nodejs 16 and update documentation to reference this file. This way the current node version is saved in one place that can be read by runtime version managing software, eg. https://asdf-vm.com/

Also small restructuring of the installation instruction list, including pietervdvn#483.
  • Loading branch information
tordans committed Sep 22, 2021
1 parent 285ca2e commit cdb3daa
Show file tree
Hide file tree
Showing 3 changed files with 15,570 additions and 46 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 14.14.0
nodejs 16.9.1
16 changes: 9 additions & 7 deletions Docs/Development_deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,17 @@ Devcontainer (see more details later).

To develop and build MapComplete, you

0. Make sure you have a recent version of nodejs - at least 12.0, preferably 15
0. Make a fork and clone the repository.
1. Install `npm`. Linux: `sudo apt install npm` (or your favourite package manager), Windows: install
0. Install the nodejs version specified in [.tool-versions](./.tool-versions)
- You can [use asdf to manage your runtime versions](https://asdf-vm.com/).
0. Install `npm`. Linux: `sudo apt install npm` (or your favourite package manager), Windows: install
nodeJS: https://nodejs.org/en/download/
3. Run `npm run init` and generate some additional dependencies and generated files. Note that it'll install the
dependencies too
4. Run `npm run start` to host a local testversion at http://localhost:1234/index.html
5. By default, a landing page with available themes is served. In order to load a single theme, use `layout=themename`
0. Install `wget`, `brew install wget`
0. Run `npm run init` which …
- runs `npm install`
- generates some additional dependencies and files
0. Run `npm run start` to host a local testversion at http://localhost:1234/index.html
0. By default, a landing page with available themes is served. In order to load a single theme, use `layout=themename`
or `userlayout=true#<layout configuration>` as [Query parameter](URL_Parameters.md). Note that the shorter URLs (
e.g. `bookcases.html`, `aed.html`, ...) _don't_ exist on the development version.

Expand Down Expand Up @@ -125,4 +128,3 @@ Overview of package.json-scripts
- `deploy:staging`,`deploy:pietervdvn`, `deploy:production`: deploy the latest code on various locations
- `lint`: get depressed by the amount of warnings
- `clean`: remove some generated files which are annoying in the repo

Loading

0 comments on commit cdb3daa

Please sign in to comment.