Skip to content

Commit

Permalink
chore(): initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
AmitMY committed Aug 10, 2022
0 parents commit d9ef587
Show file tree
Hide file tree
Showing 26 changed files with 25,379 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": "0.1",
"language": "en",
"words": ["esbuild", "rmrf", "gjuchault", "socio", "octocat", "comlink", "browsermt", "gemm"],
"flagWords": [],
"ignorePaths": [
"package.json",
"package-lock.json",
"tsconfig.json",
"node_modules/**"
]
}
3 changes: 3 additions & 0 deletions .czrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "./node_modules/@ryansonshine/cz-conventional-changelog"
}
65 changes: 65 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"root": true,
"env": {
"es2021": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.lint.json"
},
"plugins": [
"import",
"@typescript-eslint"
],
"ignorePatterns": [
"scripts/*",
"esbuild-hook.js"
],
"extends": [
"eslint:recommended",
"plugin:eslint-comments/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/strict",
"plugin:import/recommended",
"plugin:import/typescript",
"prettier"
],
"settings": {
"import/resolver": {
"typescript": {
"project": "tsconfig.json"
}
}
},
"rules": {
"import/order": [
"error",
{
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"import/no-extraneous-dependencies": "error",
"import/no-mutable-exports": "error",
"import/no-unused-modules": "error",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/no-unnecessary-condition": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-misused-new": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/ban-ts-comment": "off",
"no-var": "off"
}
}
50 changes: 50 additions & 0 deletions .github/workflows/browsermt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: browsermt

on:
push:
branches: [master]

env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

jobs:
typescript-library-starter:
runs-on: ubuntu-latest

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

steps:
- uses: actions/checkout@v3

- uses: volta-cli/action@v1

- run: npm ci

- name: Dependencies audit
run: npm audit

- name: Build
run: npm run build

- name: Format check
run: npm run format:check

- name: Lint check
run: npm run lint:check

- name: Spell check
run: npm run spell:check

# - name: Test
# run: npm run test
#
# - name: Setup test
# run: npm run test:setup

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run semantic-release
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.idea/

build/
node_modules/
.nyc_output/
coverage/
.DS_Store

example/src/models/
example/src/firefox-translations-models/
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.idea/
node_modules/
.nyc_output/
coverage/
example/
25 changes: 25 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"branches": [
"+([0-9])?(.{+([0-9]),x}).x",
"main",
"master",
"next",
"next-major",
{
"name": "beta",
"prerelease": true
},
{
"name": "alpha",
"prerelease": true
}
],
"repositoryUrl": "https://github.com/sign/browsermt",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/github"
]
}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `sign`/browsermt

Based on https://github.com/gjuchault/typescript-library-starter
Loading

0 comments on commit d9ef587

Please sign in to comment.