Skip to content

Commit

Permalink
Merge pull request #368 from geostyler/next
Browse files Browse the repository at this point in the history
feat: switch to vite & produce esm build
  • Loading branch information
hwbllmnn authored Jul 2, 2024
2 parents e84e261 + c1e0ad0 commit 3ab8b65
Show file tree
Hide file tree
Showing 18 changed files with 13,179 additions and 14,161 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional']
};
File renamed without changes.
13 changes: 13 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Lint Commit Messages
on: [pull_request, push]

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5
with:
configFile: .commitlintrc.cjs
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [20.x, 22.x]

steps:
- uses: actions/checkout@v2
Expand All @@ -27,7 +27,7 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Install dependencies ⏬
run: npm install
run: npm install --force

- name: Lint code 💄
run: npm run lint
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release

on:
workflow_dispatch:
push:
branches:
- next

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout sources 🔰
uses: actions/checkout@v4

- name: Setup Node.js 20 👷🏻
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies ⏬
run: npm ci --force

- name: Build artifacts 🏗️
run: npm run build

- name: Release 🚀
uses: cycjimmy/semantic-release-action@v4.1.0
id: semantic
env:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# production
/build
/browser
/dist

# misc
.DS_Store
Expand Down
38 changes: 38 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"branches": [
"master",
{
"name": "next",
"prerelease": true
}
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits"
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"presetConfig": {
"header": "Changelog of GeoStyler SLD Parser"
}
}
],
"@semantic-release/changelog",
"@semantic-release/npm",
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md", "package.json", "package-lock.json"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"@semantic-release/github"
]
}
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## [2.0.0-next.1](https://github.com/geostyler/geostyler-shapefile-parser/compare/v1.0.0...v2.0.0-next.1) (2024-07-02)


### ⚠ BREAKING CHANGES

* You probably need to reconfigure your bundler
in order to use this module's ESM build.

### Features

* switch to vite & produce esm build ([111490c](https://github.com/geostyler/geostyler-shapefile-parser/commit/111490c0232f8bb863567edfb344b938cf332d75))
13 changes: 0 additions & 13 deletions babel.config.js

This file was deleted.

38 changes: 0 additions & 38 deletions browser-build.config.js

This file was deleted.

13 changes: 0 additions & 13 deletions jest.config.js

This file was deleted.

Loading

0 comments on commit 3ab8b65

Please sign in to comment.