Skip to content

Commit 3195672

Browse files
authored
Capacitor V3 Support (#34)
1 parent c01fbc6 commit 3195672

File tree

193 files changed

+48150
-8820
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+48150
-8820
lines changed

.eslintrc.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"plugins": ["@typescript-eslint", "prettier"],
4+
"extends": [
5+
"eslint:recommended",
6+
"plugin:@typescript-eslint/recommended",
7+
"prettier"
8+
],
9+
"rules": {
10+
"no-fallthrough": "off",
11+
"no-constant-condition": "off",
12+
"@typescript-eslint/no-this-alias": "off",
13+
"@typescript-eslint/no-explicit-any": "off",
14+
"@typescript-eslint/explicit-module-boundary-types": [
15+
"warn",
16+
{ "allowArgumentsExplicitlyTypedAsAny": true }
17+
],
18+
"prettier/prettier": "error"
19+
}
20+
}

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
pull_request:
8+
branches:
9+
- '**'
10+
11+
jobs:
12+
verify:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 30
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-node@v2
18+
with:
19+
node-version: 14.x
20+
cache: 'npm'
21+
cache-dependency-path: '**/package.json'
22+
- run: npm ci
23+
- run: npx lerna run lint
24+
- run: npx lerna run build
25+
deploy:
26+
runs-on: ubuntu-latest
27+
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && startsWith(github.event.head_commit.message, 'chore(release):')
28+
timeout-minutes: 30
29+
needs:
30+
- verify
31+
steps:
32+
- uses: actions/checkout@v2
33+
with:
34+
fetch-depth: 0
35+
- uses: actions/setup-node@v2
36+
with:
37+
node-version: 14.x
38+
cache: 'npm'
39+
cache-dependency-path: '**/package.json'
40+
- name: Setup npm auth
41+
run: |
42+
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
43+
npm whoami
44+
env:
45+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
46+
- run: npm ci
47+
- run: npx lerna run build
48+
- run: npm run lerna:publish || true
49+

.github/workflows/nodejs.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.gitignore

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
22

33
# dependencies
4-
/node_modules
4+
node_modules
55
/.pnp
66
.pnp.js
77

88
# testing
99
/coverage
1010

1111
# production
12-
/build
13-
/dist
12+
build
13+
dist
14+
types
15+
*.tgz
1416

1517
# misc
1618
.DS_Store

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=true

.prettierrc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"bracketSpacing": true,
3+
"printWidth": 100,
4+
"semi": true,
5+
"singleQuote": true,
6+
"jsxSingleQuote": false,
7+
"tabWidth": 2,
8+
"trailingComma": "es5",
9+
10+
"requirePragma": false
11+
}

0 commit comments

Comments
 (0)