Skip to content

Commit

Permalink
1.9.0-alpha (#115)
Browse files Browse the repository at this point in the history
* Updated to ESM + Vite, touch events

* Dist paths

* Node 18

* Workflows

* Npm files
  • Loading branch information
w8r authored Mar 5, 2024
1 parent b6af21f commit 59b28aa
Show file tree
Hide file tree
Showing 43 changed files with 2,697 additions and 24,657 deletions.
76 changes: 23 additions & 53 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,61 +1,31 @@
{
"env": {
"browser": true
"browser": true,
"es6": true,
},
"globals": {
"L": true
"extends": ["plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
},
"plugins": ["@typescript-eslint", "prettier"],
"rules": {
"yoda": 0,
"block-scoped-var": 2,
"camelcase": 1,
"comma-style": 2,
"curly": [
2,
"all"
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-loss-of-precision": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" },
],
"dot-notation": 0,
"eqeqeq": [
2,
"allow-null"
"prettier/prettier": [
"error",
{
"bracketSameLine": true,
"semi": true,
"singleQuote": true,
},
],
"guard-for-in": 2,
"key-spacing": 0,
"new-cap": 2,
"no-bitwise": 2,
"no-caller": 2,
"no-cond-assign": [
2,
"except-parens"
],
"no-debugger": 2,
"no-empty": 2,
"no-eval": 2,
"no-extend-native": 2,
"no-extra-parens": 0,
"no-irregular-whitespace": 2,
"no-iterator": 2,
"no-loop-func": 2,
"no-multi-spaces": 0,
"no-multi-str": 0,
"no-mixed-spaces-and-tabs": 0,
"no-new": 2,
"no-plusplus": 0,
"no-proto": 2,
"no-script-url": 2,
"no-sequences": 2,
"no-shadow": 2,
"no-undef": 2,
"no-underscore-dangle": 0,
"no-unused-vars": [2, {"vars": "all", "args": "none"}],
"no-use-before-define": [2, "nofunc"],
"no-with": 2,
"quotes": [2, "single"],
"semi": [2, "always"],
"no-extra-semi": 2, // disallow unnecessary semicolons
"semi-spacing": [1, {"before": false, "after": true}], // enforce spacing before and after semicolons
"strict": 0,
"valid-typeof": 2,
"wrap-iife": [2, "inside"]
}
},
"settings": {},
}
7 changes: 4 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,17 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [18.x]

steps:
- uses: browser-actions/setup-chrome@latest
- run: chrome --version
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: chrome --version
- run: npm ci
- run: npm run build --if-present
- run: npm run demo
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 12
node-version: 18
- run: npm ci
- run: npm run build --if-present
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry=https://registry.npmjs.org/
Loading

0 comments on commit 59b28aa

Please sign in to comment.