Skip to content

Commit 2ddc0f9

Browse files
committed
chore: project
1 parent e3bb8b2 commit 2ddc0f9

File tree

9 files changed

+961
-1848
lines changed

9 files changed

+961
-1848
lines changed

.eslintrc.js

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

.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: 47 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,51 @@
11
{
2-
"files.exclude": {
3-
"schema": true
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"
428
},
5-
"search.exclude": {
6-
"src/**/*.js": true,
7-
"src/**/*.js.map": true
8-
},
9-
"java.configuration.updateBuildConfiguration": "disabled",
10-
"editor.snippetSuggestions": "top",
11-
"NE.enable.snippets": true,
12-
"xml.fileAssociations": [
13-
{
14-
"systemId": "/Volumes/data/dev/nativescript/nativescript-carto/schema/tns.xsd",
15-
"pattern": "**/**/*.xml"
16-
}
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"
1750
]
1851
}

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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"scripts": {
1414
"build": "lerna run build",
1515
"build.all": "npm run build",
16-
"clean": "rimraf 'packages/**/*.d.ts' 'packages/**/*.js' 'packages/**/*.js.map' 'packages/**/*.metada' 'packages/**/angular/ng-package.json'",
16+
"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'",
1717
"commitmsg": "commitlint -e $GIT_PARAMS",
1818
"demo.svelte.android": "cd ./demo-svelte && ns run android --no-hmr --env.watchNodeModules",
1919
"demo.svelte.ios": "cd ./demo-svelte && ns run ios --no-hmr --env.watchNodeModules",
@@ -27,9 +27,9 @@
2727
"setup": "npm run submodules && ts-patch install",
2828
"start": "./node_modules/.bin/ntl -A -s 15 -o",
2929
"submodules": "git submodule update --init",
30-
"sync": "node ./tools/sync.js",
30+
"sync": "node ./tools/sync.mjs",
3131
"update": "node ./tools/update.js",
32-
"fullclean": "npm run clean && rimraf 'packages/**/node_modules' 'demo-*/hooks' 'demo-*/node_modules' 'package-lock.json' 'pnpm-lock.yaml' 'node_modules'",
32+
"fullclean": "npm run clean && rimraf -g 'packages/**/node_modules' 'demo-*/hooks' 'demo-*/node_modules' 'package-lock.json' 'pnpm-lock.yaml' 'node_modules'",
3333
"doc": "node tools/builddoc.mjs",
3434
"commit_readme_doc_changes": "git add docs/** *.md ; git commit -m \"readme/doc\" ; echo \"commit readme doc done\""
3535
},

packages/ui-carto/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
"typings": "index.d.ts",
77
"sideEffects": false,
88
"scripts": {
9-
"build": "npm run tsc",
10-
"build.all": "npm run build && npm run build.angular",
9+
"build": "npm run tsc && npm run readme",
10+
"build.all": "npm run build",
1111
"readme": "readme generate -c ../../tools/readme/blueprint.json",
12-
"tsc": "cpy '**/*.d.ts' '../../packages/ui-carto' --parents --cwd=../../src/ui-carto && tsc -skipLibCheck -d",
13-
"clean": "rimraf ./*.d.ts ./*.js ./*.js.map"
12+
"tsc": "cpy '**/*.d.ts' '../../packages/ui-carto' --parents --cwd=../../src/ui-carto && tsc --build",
13+
"clean": "bin/rimraf ./*.d.ts ./*.js ./*.js.map ./*.tsbuildinfo ./*.mjs ./*.mjs.map ./angular ./svelte ./vue* ./react"
1414
},
1515
"nativescript": {
1616
"platforms": {

0 commit comments

Comments
 (0)