Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update module #23

Merged
merged 3 commits into from
Oct 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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