Skip to content

Commit

Permalink
Fix build for more recent releases of Node.js, see GlobalNOC#101, Glo…
Browse files Browse the repository at this point in the history
…balNOC#102 and GlobalNOC#109.

This adds compatibility for Node.js >11.15.
  • Loading branch information
amo committed Nov 13, 2020
1 parent bf60e4d commit c2ae734
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
20 changes: 18 additions & 2 deletions BUILD.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Development

This project requires Node v6.xx.x and npm v3.10.10
### Node.js 6.x to 11.15
This project was originally conceived with Node v6.xx.x and npm v3.10.10.

* Clone this repository
```git clone repo_url```
Expand All @@ -11,4 +12,19 @@ This project requires Node v6.xx.x and npm v3.10.10
* Build the plugin
`npm run build` or `gulp` should create a `dist` folder that contains the transpiled code for the browser
* Make sure to build the plugin whenever there's a code change


### Node.js >11.15
When using Node.js >11.15, these commands might work already.
```
# Install dependencies.
npx yarn install
# Run build.
npx yarn build
```

When Yarn is not installed (YMMV), this command might help:
```
# Install yarn globally.
npm install yarn -g
```
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,8 @@
"lodash": "~4.17.5",
"moment": "^2.12.0",
"topojson": "^1.6.19"
},
"resolutions": {
"graceful-fs": "^4.2.4"
}
}

0 comments on commit c2ae734

Please sign in to comment.