Skip to content

Commit

Permalink
chore: update module (#23)
Browse files Browse the repository at this point in the history
* chore: update module

use latest node for testing and vite for bundling

BREAKING CHANGE: the build outputs have changed

* chore: remove unused files

* chore: update checkout from v2 to v4
  • Loading branch information
kevinchappell authored Oct 20, 2024
1 parent 7c7694f commit 5541a9f
Show file tree
Hide file tree
Showing 15 changed files with 13,318 additions and 7,129 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 23
- name: Install dependencies
env:
CI: true
run: npm install
- name: Test
run: npm test
- name: Build
run: npm run build
- name: Publish
if: success()
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
17 changes: 17 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on: pull_request
name: Pull Request

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 23
- name: Install dependencies
env:
CI: true
run: npm install
- name: Test
run: npm test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# mi18n [![Build Status](https://travis-ci.org/Draggable/mi18n.svg?branch=master)](https://travis-ci.org/Draggable/mi18n) [![npm version](https://badge.fury.io/js/mi18n.svg)](https://badge.fury.io/js/mi18n) [![Gitter chat](https://img.shields.io/badge/gitter-chat-ff69b4.svg)](https://gitter.im/Draggable/mi18n)
# mi18n [![npm version](https://badge.fury.io/js/mi18n.svg)](https://badge.fury.io/js/mi18n)

Add multi-lingual support to any JavaScript app or module with this light-weight package.

Expand Down
38 changes: 38 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json",
"organizeImports": {
"enabled": true
},
"vcs": {
"clientKind": "git",
"enabled": true,
"useIgnoreFile": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": false
}
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"ignore": [],
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 120
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"semicolons": "asNeeded",
"arrowParentheses": "asNeeded"
}
},
"json": {
"formatter": {
"indentStyle": "space"
}
}
}
19 changes: 0 additions & 19 deletions demo/index.html

This file was deleted.

16 changes: 16 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
pre-push:
parallel: true
commands:
run-tests:
run: npm test

pre-commit:
parallel: true
commands:
lint:
run: npx lint-staged

commit-msg:
commands:
commitlint:
run: npx commitlint --edit $GIT_PARAMS
8 changes: 0 additions & 8 deletions now.json

This file was deleted.

Loading

0 comments on commit 5541a9f

Please sign in to comment.