Skip to content

Commit 1a47a42

Browse files
committed
chore: move to new package layout
1 parent e91ba38 commit 1a47a42

Some content is hidden

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

60 files changed

+6117
-95
lines changed

.eslintrc.js

+14-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
module.exports = {
2-
extends: ['plugin:prettier/recommended'],
3-
plugins: ['prettier', '@typescript-eslint'],
4-
parser: '@typescript-eslint/parser',
2+
extends: ['plugin:prettier/recommended', 'plugin:vue/essential'],
3+
plugins: ['prettier', '@typescript-eslint', '@nativescript'],
4+
parser: 'vue-eslint-parser',
55
parserOptions: {
6-
createDefaultProgram: true,
7-
project: './tsconfig.json'
6+
ecmaVersion: 2019,
7+
sourceType: 'module',
8+
extraFileExtensions: ['.vue', '.svelte'],
9+
parser: '@typescript-eslint/parser',
10+
project: 'tsconfig.eslint.json',
11+
warnOnUnsupportedTypeScriptVersion: false,
12+
tsconfigRootDir: __dirname
813
},
914
rules: {
1015
'prettier/prettier': 'warn',
16+
'vue/custom-event-name-casing': 'off',
17+
'@nativescript/no-nativescript-angular-imports': 'warn',
18+
'@nativescript/no-tns-core-modules-imports': 'warn',
19+
'@nativescript/no-duplicate-ns-imports': 'warn',
1120
'@typescript-eslint/adjacent-overload-signatures': 'error',
1221
'@typescript-eslint/array-type': 'error',
1322
'@typescript-eslint/await-thenable': 'error',

.vscode/launch.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "pwa-chrome",
9+
"request": "launch",
10+
"name": "Launch Chrome against localhost",
11+
"url": "http://localhost:8080",
12+
"webRoot": "${workspaceFolder}"
13+
}
14+
]
15+
}

demo-snippets/react/BasicPager.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ interface Item {
1616
const cellFactory = (item: Item) => (
1717
<gridLayout backgroundColor={item.color} height={{ unit: "%", value: 100 }}>
1818
<label
19+
//@ts-ignore
1920
width="100%"
2021
text={item.title}
2122
textAlignment={"center"}

demo-snippets/react/tsconfig.json

-3
This file was deleted.

demo-snippets/svelte/tsconfig.json

-10
This file was deleted.

demo-snippets/vue/tsconfig.json

-3
This file was deleted.

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"packages": [
3-
"plugin"
3+
"packages/*"
44
],
55
"version": "13.0.30",
66
"command": {

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
"license": "ISC",
1313
"author": "",
1414
"scripts": {
15-
"build": "rm -f .tsbuildinfo && npm run tsc",
16-
"build.all": "npm run build && npm run build.angular",
17-
"build.angular": "ng-packagr -p src/angular/package.json -c src/angular/tsconfig.json",
18-
"clean": "rimraf ./plugin/**/*.d.ts ./plugin/**/*.js ./plugin/**/*.js.map node_modules package-lock.json",
15+
"build": "lerna run build",
16+
"build.all": "lerna run build.all",
17+
"build.angular": "lerna run build.angular",
18+
"clean": "rimraf packages/**/*.d.ts packages/**/*.js packages/**/*.js.map packages/**/*.metadata.json packages/**/*.ngsummary.json node_modules package-lock.json",
1919
"commitmsg": "commitlint -e $GIT_PARAMS",
2020
"demo.ng.android": "cd ./demo-ng && ns run android --no-hmr",
2121
"demo.ng.ios": "cd ./demo-ng && ns run ios --no-hmr",
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)