Skip to content

Commit 7d962f7

Browse files
committed
chore: project
1 parent 43d8595 commit 7d962f7

File tree

12 files changed

+5557
-5187
lines changed

12 files changed

+5557
-5187
lines changed

.eslintrc.js

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

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
if: steps.yarn-node_modules.outputs.cache-hit != 'true'
8080
uses: bahmutov/npm-install@v1
8181
with:
82-
install-command: yarn install --silent
82+
install-command: corepack yarn --silent
8383
env:
8484
YARN_ENABLE_IMMUTABLE_INSTALLS: false
8585

.gitignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,11 @@ Pods
5252
/packages/README.md
5353
packages/**/*js.map
5454
packages/**/*js
55-
packages/angular
5655
packages/typings
57-
packages/**/angular/*.json
56+
packages/**/angular
5857
packages/**/*.ngsummary.json
5958
packages/**/*.metadata.json
6059

61-
.vscode/settings.json
60+
/blueprint.md
6261

63-
/blueprint.md
62+
*.tsbuildinfo

.prettierrc.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
module.exports = {
2+
plugins: ['prettier-plugin-svelte'],
3+
overrides: [{ files: '*.svelte', options: { parser: 'svelte' } }],
24
printWidth: 200,
35
semi: true,
46
tabWidth: 4,
57
trailingComma: 'none',
6-
singleQuote: true
8+
singleQuote: true,
9+
svelteSortOrder: 'options-styles-scripts-markup',
10+
svelteStrictMode: false,
11+
svelteBracketNewLine: false,
12+
svelteIndentScriptAndStyle: true
713
};

.vscode/settings.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"typescript.tsdk": "node_modules/typescript/lib",
3+
"svelte.plugin.svelte.compilerWarnings": {
4+
"missing-declaration": "ignore",
5+
"a11y-aria-attributes": "ignore",
6+
"a11y-incorrect-aria-attribute-type": "ignore",
7+
"a11y-unknown-aria-attribute": "ignore",
8+
"a11y-hidden": "ignore",
9+
"a11y-misplaced-role": "ignore",
10+
"a11y-unknown-role": "ignore",
11+
"a11y-no-abstract-role": "ignore",
12+
"a11y-no-redundant-roles": "ignore",
13+
"a11y-role-has-required-aria-props": "ignore",
14+
"a11y-accesskey": "ignore",
15+
"a11y-autofocus": "ignore",
16+
"a11y-misplaced-scope": "ignore",
17+
"a11y-positive-tabindex": "ignore",
18+
"a11y-invalid-attribute": "ignore",
19+
"a11y-missing-attribute": "ignore",
20+
"a11y-img-redundant-alt": "ignore",
21+
"a11y-label-has-associated-control": "ignore",
22+
"a11y-media-has-caption": "ignore",
23+
"a11y-distracting-elements": "ignore",
24+
"a11y-structure": "ignore",
25+
"a11y-mouse-events-have-key-events": "ignore",
26+
"a11y-missing-content": "ignore",
27+
"illegal-attribute-character": "ignore"
28+
},
29+
"scss.lint.validProperties": [
30+
"max-font-size",
31+
"min-font-size",
32+
"ios-a11y-adjusts-font-size",
33+
"status-bar-style",
34+
"navigation-bar-color",
35+
"status-bar-color",
36+
"ripple-color",
37+
"stroke-color",
38+
"fill-color",
39+
"on-check-color",
40+
"on-tint-color",
41+
"shape",
42+
"elevation",
43+
"horizontal-align",
44+
"horizontal-alignment",
45+
"vertical-text-alignment",
46+
"floating",
47+
"vertical-alignment",
48+
"placeholder-color",
49+
"variant"
50+
]
51+
}

.yarnrc.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@ compressionLevel: mixed
33
nmHoistingLimits: workspaces
44

55
nodeLinker: node-modules
6-
7-
yarnPath: tools/.yarn/releases/yarn-4.0.1.cjs

eslint.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import defaultConfig from './tools/eslint.config.mjs';
2+
3+
export default defaultConfig;

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Nativescript plugin for https requests",
44
"scripts": {
55
"tsc": "cp src/index.d.ts src/request.d.ts plugin && tsc -skipLibCheck -d",
6-
"clean": "rimraf 'packages/**/*.d.ts' 'packages/**/*.js' 'packages/**/*.js.map' 'packages/**/*.metada' 'packages/**/angular/ng-package.json'",
6+
"clean": "rimraf -g 'packages/**/*.d.ts' 'packages/**/*.tsbuildinfo' 'packages/**/*.js' 'packages/**/*.mjs' 'packages/**/*.js.map' 'packages/**/*.mjs.map' 'packages/**/*.metada' 'packages/**/angular/ng-package.json'",
77
"build.plugin": " cp README.md plugin/ && rm -f .tsbuildinfo && npm run tsc",
88
"build.android": "bash src-native/android/build.sh",
99
"build.ios": "bash src-native/ios/build.sh",
@@ -18,10 +18,10 @@
1818
"plugin.watch": "npm run plugin.watch.tsc & npm run plugin.watch.android & npm run plugin.watch.ios",
1919
"publish": "npm run setup && npm run clean && npm run build.all && npm run readme && npm run doc && npm run commit_readme_doc_changes && lerna publish",
2020
"publish.major": "npm run build && lerna publish major --create-release=github --force-publish",
21-
"sync": "node ./tools/sync.js",
21+
"sync": "node ./tools/sync.mjs",
2222
"commitmsg": "commitlint -e $GIT_PARAMS",
2323
"build.all": "lerna run build.all",
24-
"fullclean": "npm run clean && rimraf 'packages/**/node_modules' 'demo-*/hooks' 'demo-*/node_modules' 'package-lock.json' 'pnpm-lock.yaml' 'node_modules'",
24+
"fullclean": "npm run clean && rimraf -g 'packages/**/node_modules' 'demo-*/hooks' 'demo-*/node_modules' 'package-lock.json' 'pnpm-lock.yaml' 'node_modules'",
2525
"demo.vue.android": "cd ./demo-vue && ns run android --no-hmr --env.watchNodeModules",
2626
"demo.vue.clean": "cd ./demo-vue && ns clean",
2727
"demo.vue.ios": "cd ./demo-vue && ns run ios --no-hmr --env.watchNodeModules",
@@ -77,7 +77,7 @@
7777
"homepage": "https://github.com/nativescript-community/https",
7878
"readmeFilename": "README.md",
7979
"devDependencies": {
80-
"@nativescript-community/plugin-seed-tools": "file:tools",
80+
"@nativescript-community/plugin-seed-tools": "portal:tools",
8181
"@nativescript-community/template-snippet": "file:demo-snippets"
8282
},
8383
"bootstrapper": "nativescript-plugin-seed",
@@ -106,5 +106,6 @@
106106
"yarn": ">=1.19.1",
107107
"pnpm": ">=7.0.0",
108108
"node": "^14.20.0 || ^16.13.0 || >=18.10.0"
109-
}
109+
},
110+
"packageManager": "[email protected]"
110111
}

packages/https/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
}
1414
},
1515
"scripts": {
16-
"tsc": "cpy '**/*.d.ts' '../../packages/https' --parents --cwd=../../src/https && tsc -d",
16+
"tsc": "cpy '**/*.d.ts' '../../packages/https' --parents --cwd=../../src/https && tsc --build",
1717
"readme": "readme generate -c ../../tools/readme/blueprint.json",
18-
"build": "npm run tsc",
18+
"build": "npm run tsc && npm run readme",
1919
"build.watch": "npm run tsc -- -w",
2020
"build.win": "npm run tsc-win",
2121
"build.all": "npm run build && npm run build.angular",
2222
"build.angular": "ng-packagr -p ../../src/https/angular/ng-package.json -c ../../src/https/angular/tsconfig.json && rm angular/.npmignore",
2323
"build.all.win": "npm run build.win",
24-
"clean": "rimraf ./*.d.ts ./*.js ./*.js.map"
24+
"clean": "bin/rimraf ./*.d.ts ./*.js ./*.js.map ./*.tsbuildinfo ./*.mjs ./*.mjs.map ./angular ./svelte ./vue* ./react"
2525
},
2626
"contributors": [
2727
{

0 commit comments

Comments
 (0)