Skip to content

Commit 73ffe70

Browse files
author
farfromrefug
committed
chore: new repo
1 parent cd0177f commit 73ffe70

Some content is hidden

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

55 files changed

+17134
-422
lines changed

.eslintrc.js

+1-182
Original file line numberDiff line numberDiff line change
@@ -1,184 +1,3 @@
11
module.exports = {
2-
env: {
3-
browser: true
4-
},
5-
parser: '@typescript-eslint/parser',
6-
parserOptions: {
7-
ecmaVersion: 2019,
8-
sourceType: 'module',
9-
parser: '@typescript-eslint/parser',
10-
project: 'tsconfig.eslint.json',
11-
extraFileExtensions: ['.svelte'],
12-
warnOnUnsupportedTypeScriptVersion: false,
13-
tsconfigRootDir: __dirname
14-
},
15-
plugins: ['@typescript-eslint'],
16-
rules: {
17-
'@typescript-eslint/adjacent-overload-signatures': 'off',
18-
'@typescript-eslint/array-type': 'error',
19-
'@typescript-eslint/await-thenable': 'error',
20-
'@typescript-eslint/ban-types': 'off',
21-
'@typescript-eslint/class-name-casing': 'off',
22-
'@typescript-eslint/consistent-type-assertions': 'error',
23-
'@typescript-eslint/consistent-type-definitions': 'error',
24-
'@typescript-eslint/explicit-member-accessibility': [
25-
'off',
26-
{
27-
accessibility: 'explicit'
28-
}
29-
],
30-
'@typescript-eslint/indent': [
31-
'error',
32-
4,
33-
{
34-
FunctionDeclaration: {
35-
parameters: 'first'
36-
},
37-
FunctionExpression: {
38-
parameters: 'first'
39-
},
40-
SwitchCase:1
41-
}
42-
],
43-
'@typescript-eslint/interface-name-prefix': 'off',
44-
'@typescript-eslint/member-delimiter-style': 'error',
45-
'@typescript-eslint/member-ordering': 'off',
46-
'@typescript-eslint/no-empty-function': 'off',
47-
'@typescript-eslint/no-empty-interface': 'off',
48-
'@typescript-eslint/no-explicit-any': 'off',
49-
'@typescript-eslint/no-floating-promises': 'off',
50-
'@typescript-eslint/no-inferrable-types': 'off',
51-
'@typescript-eslint/no-misused-new': 'off',
52-
'@typescript-eslint/no-namespace': 'off',
53-
'@typescript-eslint/no-parameter-properties': 'off',
54-
'@typescript-eslint/no-require-imports': 'off',
55-
'@typescript-eslint/no-unnecessary-qualifier': 'error',
56-
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
57-
'@typescript-eslint/no-use-before-declare': 'off',
58-
'@typescript-eslint/no-var-requires': 'off',
59-
'@typescript-eslint/prefer-for-of': 'off',
60-
'@typescript-eslint/prefer-function-type': 'error',
61-
'@typescript-eslint/prefer-namespace-keyword': 'error',
62-
'@typescript-eslint/quotes': [
63-
'error',
64-
'single',
65-
{
66-
avoidEscape: true
67-
}
68-
],
69-
'@typescript-eslint/semi': ['error'],
70-
'@typescript-eslint/space-within-parens': ['off', 'never'],
71-
'@typescript-eslint/triple-slash-reference': 'off',
72-
'@typescript-eslint/type-annotation-spacing': 'error',
73-
'@typescript-eslint/unified-signatures': 'off',
74-
'arrow-body-style': 'error',
75-
'arrow-parens': ['off', 'as-needed'],
76-
camelcase: 'off',
77-
'capitalized-comments': 'off',
78-
complexity: 'off',
79-
'constructor-super': 'error',
80-
curly: ['error', 'multi-line'],
81-
'dot-notation': 'off',
82-
'eol-last': 'error',
83-
eqeqeq: ['error', 'smart'],
84-
'guard-for-in': 'off',
85-
'id-blacklist': 'off',
86-
'id-match': 'error',
87-
'sort-imports': [
88-
'error',
89-
{
90-
ignoreCase: false,
91-
ignoreDeclarationSort: true,
92-
ignoreMemberSort: false,
93-
memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single']
94-
}
95-
],
96-
'linebreak-style': 'off',
97-
'max-classes-per-file': 'off',
98-
'max-len': [
99-
'off',
100-
{
101-
ignorePattern: '^import |^export {(.*?)}',
102-
code: 200
103-
}
104-
],
105-
'new-parens': 'off',
106-
'newline-per-chained-call': 'off',
107-
'no-bitwise': 'off',
108-
'no-caller': 'error',
109-
'no-cond-assign': 'off',
110-
'no-console': [
111-
'off',
112-
{
113-
allow: [
114-
'log',
115-
'warn',
116-
'dir',
117-
'timeLog',
118-
'assert',
119-
'clear',
120-
'count',
121-
'countReset',
122-
'group',
123-
'groupEnd',
124-
'table',
125-
'debug',
126-
'dirxml',
127-
'error',
128-
'groupCollapsed',
129-
'Console',
130-
'profile',
131-
'profileEnd',
132-
'timeStamp',
133-
'context'
134-
]
135-
}
136-
],
137-
'no-constant-condition': 'error',
138-
'no-control-regex': 'off',
139-
'no-debugger': 'error',
140-
'no-duplicate-imports': 'error',
141-
'no-empty': 'off',
142-
'no-eval': 'off',
143-
'no-extra-semi': 'off',
144-
'no-fallthrough': 'error',
145-
'no-invalid-regexp': 'error',
146-
'no-invalid-this': 'off',
147-
'no-irregular-whitespace': 'off',
148-
'no-multiple-empty-lines': 'off',
149-
'no-new-wrappers': 'error',
150-
'no-redeclare': 'off',
151-
'no-regex-spaces': 'error',
152-
'no-return-await': 'error',
153-
'no-shadow': [
154-
'off',
155-
{
156-
hoist: 'all'
157-
}
158-
],
159-
'no-throw-literal': 'error',
160-
'no-trailing-spaces': 'error',
161-
'no-undef-init': 'error',
162-
'no-underscore-dangle': 'off',
163-
'no-unsafe-finally': 'error',
164-
'no-unused-expressions': [
165-
'error',
166-
{
167-
allowTaggedTemplates: true,
168-
allowShortCircuit: true
169-
}
170-
],
171-
'no-unused-labels': 'error',
172-
'no-var': 'error',
173-
'object-shorthand': 'error',
174-
'one-var': ['off', 'never'],
175-
'prefer-arrow/prefer-arrow-functions': 'off',
176-
'prefer-const': 'error',
177-
'quote-props': 'off',
178-
radix: 'error',
179-
'space-before-function-paren': 'off',
180-
'spaced-comment': 'error',
181-
'use-isnan': 'error',
182-
'valid-typeof': 'off'
183-
}
2+
extends: './tools/.eslintrc.js'
1843
};

.gitignore

+52-18
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,61 @@
1-
.idea
2-
.vscode
3-
node_modules
1+
# NativeScript
2+
hooks/
3+
node_modules/
44
platforms
5-
hooks
6-
package-lock.json
5+
6+
# NativeScript Template
7+
*.js.map
8+
!ngcc.config.js
9+
!webpack.config.js
10+
11+
# Logs
12+
logs
13+
*.log
14+
npm-debug.log*
15+
yarn-debug.log*
16+
yarn-error.log*
17+
18+
# General
719
.DS_Store
8-
npm-debug.log.*
9-
demo*/app/**/*.js
10-
demo*/typings
20+
.AppleDouble
21+
.LSOverride
22+
.idea
23+
.cloud
24+
.gradle
25+
.project
26+
.yarn
27+
.cxx
28+
tmp/
29+
30+
!.eslintrc.js
31+
!.prettierrc.js
32+
33+
!e2e/*.js
34+
!detox.config.js
35+
devices.js
36+
1137
*.framework
38+
*.xcframework
1239
**/*.js.map
1340
src/**/*.js
14-
plugin/**/*.js
15-
plugin/**/*.d.ts
41+
packages/**/*.js
42+
packages/**/*.d.ts
1643
bin
1744
build
1845
Pods
19-
!plugin/platforms
20-
/plugin/platforms/android/nativescript_*.aar
46+
!packages/*/platforms
47+
/packages/**/*.aar
48+
/packages/**/*.framework
49+
/packages/**/*.xcframework
50+
/demo-snippets/**/*.aar
2151
*.xcuserdatad
22-
/plugin/README.md
23-
pnpm-lock.yaml
24-
yarn.lock
25-
/plugin/platforms/android/sentry.aar
26-
.sentryclirc
27-
.yarn
52+
/packages/README.md
53+
packages/**/*js.map
54+
packages/**/*js
55+
packages/angular
56+
packages/typings
57+
!packages/**/angular/*.json
58+
packages/**/*.ngsummary.json
59+
packages/**/*.metadata.json
60+
61+
/blueprint.md

.gitmodules

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "demo-vue"]
2+
path = demo-vue
3+
url = https://github.com/nativescript-community/plugin-seed-demo-vue.git
4+
[submodule "tools"]
5+
path = tools
6+
url = https://github.com/nativescript-community/plugin-seed-tools.git

.npmrc

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
shamefully-hoist=true
2+
public-hoist-pattern[]=*eslint*
3+
public-hoist-pattern[]=source-map-support
4+
public-hoist-pattern[]=ts-patch
5+
public-hoist-pattern[]=typescript
6+
public-hoist-pattern[]=cpy-cli
27
strict-peer-dependencies=false
3-
loglevel=error
8+
shell-emulator=true
9+
auto-install-peers=false
10+
loglevel=error
11+
engine-strict=true

.prettierignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package-lock.json
2+
node_modules/
3+
plugin/
4+
docs/

.prettierrc.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
printWidth: 200,
3+
semi: true,
4+
tabWidth: 4,
5+
trailingComma: 'none',
6+
singleQuote: true
7+
};

.vscode/settings.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"terminal.integrated.env.osx": {
3+
"SENTRY_DSN": "https://[email protected]/3",
4+
"SENTRY_PREFIX": "app:///",
5+
"SOURCEMAP_REL_DIR": "../../sourcemaps",
6+
"SENTRY_URL": "https://bugs.akylas.fr",
7+
"SENTRY_PROJECT": "demoapp",
8+
"SENTRY_AUTH_TOKEN": "12b4fe0499218b528bf51c2bf148674505e3d571d47683b497ff2bdaa3d7312c",
9+
"SENTRY_ORG": "akylas"
10+
},
11+
"terminal.integrated.env.linux": {
12+
"SENTRY_DSN": "https://[email protected]/3",
13+
"SENTRY_PREFIX": "app:///",
14+
"SOURCEMAP_REL_DIR": "../../sourcemaps",
15+
"SENTRY_URL": "https://bugs.akylas.fr",
16+
"SENTRY_PROJECT": "demoapp",
17+
"SENTRY_AUTH_TOKEN": "12b4fe0499218b528bf51c2bf148674505e3d571d47683b497ff2bdaa3d7312c",
18+
"SENTRY_ORG": "akylas"
19+
},
20+
}

.yarnrc.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
compressionLevel: mixed
22

3-
enableGlobalCache: true
3+
nmHoistingLimits: workspaces
4+
5+
nodeLinker: node-modules
6+
7+
yarnPath: tools/.yarn/releases/yarn-4.0.1.cjs

config.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"readme": true,
3+
"angular": false,
4+
"demos": [
5+
"vue"
6+
]
7+
}

demo-snippets/vue/Basic.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Sentry from '@nativescript-community/sentry';
1+
import * as Sentry from 'src';
22
import { File, knownFolders, path } from '@nativescript/core';
33
import { TextEncoder } from '@nativescript/core/text';
44
import { createArrayBuffer } from '@nativescript-community/arraybuffers';

demo-vue

Submodule demo-vue added at a1ea632

lerna.json

+30-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,32 @@
11
{
2-
"packages": [
3-
"plugin"
4-
],
5-
"version": "4.6.22",
6-
"command": {
7-
"publish": {
8-
"conventionalCommits": true
9-
}
10-
}
2+
"version": "4.6.22",
3+
"$schema": "node_modules/@lerna-lite/cli/schemas/lerna-schema.json",
4+
"packages": [
5+
"packages/*"
6+
],
7+
"npmClient": "yarn",
8+
"useWorkspaces": true,
9+
"command": {
10+
"publish": {
11+
"cleanupTempFiles": true,
12+
"removePackageFields": [
13+
"devDependencies",
14+
"scripts"
15+
]
16+
}
17+
},
18+
"npmClientArgs": [
19+
"--no-package-lock"
20+
],
21+
"commitHooks": false,
22+
"createRelease": "github",
23+
"conventionalCommits": true,
24+
"private": false,
25+
"message": "chore(release): publish new version %v",
26+
"changelogPreset": "conventional-changelog-conventionalcommits",
27+
"ignoreChanges": [
28+
"**/__fixtures__/**",
29+
"**/__tests__/**",
30+
"**/*.md"
31+
]
1132
}

0 commit comments

Comments
 (0)