Skip to content

Commit

Permalink
Adding some CI/CD (#30)
Browse files Browse the repository at this point in the history
* paused the tests because sharp breaks

* ADD cicd and changelog
  • Loading branch information
jonathanlurie authored Nov 2, 2023
1 parent 5b5cefb commit ef8dc44
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Objective
What is the goal?

## Description
What changed, how and why?

## Acceptance
How were changes tested?

## Checklist
- [ ] I have added relevant info to the CHANGELOG.md
24 changes: 24 additions & 0 deletions .github/workflows/format-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Format and Lint

on: [pull_request]

jobs:
format-and-lint:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install Node.js dependencies
run: npm ci

- name: Formatting with Prettier
run: npm run format

- name: Linting with ESLint
run: npm run lint
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# MapTiler Client Changelog

## DEVEL
### New Features
### Bug Fixes
### Others

## 1.7.0
### New Features
- DEM elevation API (https://github.com/maptiler/maptiler-client-js/pull/24)

### Bug Fixes
- `geocoding.byId` can now be used with the apiKey (https://github.com/maptiler/maptiler-client-js/pull/27)
- the Typescript types are now properly exported (https://github.com/maptiler/maptiler-client-js/pull/25)

### Others
- the Typescript `moduleResolution` is now `"Bundler"` (used to be `"Node"`) (https://github.com/maptiler/maptiler-client-js/pull/28)
- updated some dev-dependencies (https://github.com/maptiler/maptiler-client-js/pull/28)
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@
"build": "rm -rf dist/*; NODE_ENV=production rollup -c",
"dev": "rm -rf dist/*; NODE_ENV=development rollup -c -w",
"devserve": "rm -rf dist/*; NODE_ENV=development rollup -c -w & serve && fg",
"format": "prettier --write \"src/**/*.{js,ts,tsx}\"",
"lint": "eslint --fix \"src/**/*.{js,ts}\"",
"format:fix": "prettier --write \"src/**/*.{js,ts,tsx}\"",
"format": "prettier -c \"src/**/*.{js,ts,tsx}\"",
"lint:fix": "eslint --fix \"src/**/*.{js,ts}\"",
"lint": "eslint \"src/**/*.{js,ts}\"",
"docmd": "rm -rf docsmd/*; typedoc --readme none --plugin typedoc-plugin-markdown --out docsmd src/index.ts",
"dochtml": "rm -rf docs/*; typedoc; cp -r images docs/",
"doc": "npm run docmd; npm run dochtml",
"prepare": "npm run format; npm run lint; npm run test; npm run build",
"prepare": "npm run format:fix && npm run lint:fix && npm run test && npm run build",
"test:prod": "vitest test --run",
"test:dev": "vitest test --watch",
"test": ""
Expand Down

0 comments on commit ef8dc44

Please sign in to comment.