Skip to content

Commit

Permalink
chore: Update plugin tools and simplify tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
keerl committed Oct 1, 2021
1 parent bd000d6 commit 556e80b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 41 deletions.
10 changes: 10 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"type": "single",
"angular": true,
"demos": [
"ng",
"react",
"svelte",
"vue"
]
}
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"author": "",
"scripts": {
"build": "rm -f .tsbuildinfo && npm run tsc",
"build.angular": "ng-packagr -p src/angular/package.json -c src/angular/tsconfig.json",
"build.all": "npm run build && npm run build.angular",
"build.angular": "ng-packagr -p src/angular/package.json -c src/angular/tsconfig.json",
"clean": "rimraf ./plugin/**/*.d.ts ./plugin/**/*.js ./plugin/**/*.js.map node_modules package-lock.json",
"commitmsg": "commitlint -e $GIT_PARAMS",
"demo.ng.android": "cd ./demo-ng && ns run android --no-hmr",
Expand All @@ -25,15 +25,15 @@
"demo.svelte.ios": "cd ./demo-svelte && ns run ios --no-hmr",
"demo.vue.android": "cd ./demo-vue && ns run android --no-hmr",
"demo.vue.ios": "cd ./demo-vue && ns run ios --no-hmr",
"setup": "npm run submodules && ts-patch install",
"tsc": "cpy '**/*.d.ts' '../plugin' --parents --cwd=src && tsc -skipLibCheck -d",
"publish": "npm run setup && npm run build.all && lerna publish --create-release=github --force-publish",
"postinstall": "npm run setup",
"publish": "npm run setup && npm run build.all && lerna publish --create-release=github --force-publish",
"setup": "npm run submodules && ts-patch install",
"start": "./node_modules/.bin/ntl -A -s 15 -o",
"submodules": "git submodule update --init",
"sync": "node ./tools/sync.js -w && npx sort-package-json",
"sync.test": "node ./tools/sync.js",
"watch": "npm run tsc -- -w",
"submodules": "git submodule update --init"
"tsc": "cpy '**/*.d.ts' '../plugin' --parents --cwd=src && tsc -skipLibCheck -d",
"watch": "npm run tsc -- -w"
},
"commitlint": {
"extends": [
Expand All @@ -45,7 +45,7 @@
},
"devDependencies": {
"@angular/animations": "~12.2.4",
"@angular/common": "~12.2.4",
"@angular/common": "~12.2.5",
"@angular/compiler": "~12.2.4",
"@angular/compiler-cli": "~12.2.4",
"@angular/core": "~12.2.4",
Expand Down Expand Up @@ -109,4 +109,4 @@
"watch": "Watch for changes in the plugin source and re-build."
}
}
}
}
35 changes: 3 additions & 32 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,9 @@
{
"extends": "./tools/tsconfig",
"compilerOptions": {
"target": "es2017",
"module": "esnext",
"moduleResolution": "node",
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": false,
"experimentalDecorators": true,
"jsx": "react",
"lib": ["es6", "dom"],
"sourceMap": true,
"pretty": true,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"noEmitHelpers": true,
"noEmitOnError": false,
"noImplicitAny": false,
"noImplicitReturns": true,
"noImplicitUseStrict": true,
"noFallthroughCasesInSwitch": true,
"skipLibCheck": true,
"sourceRoot": "../src",
"baseUrl": ".",
"outDir": "./plugin",
"paths": {
"tns-core-modules": ["./node_modules/@nativescript/core"],
"tns-core-modules/*": ["./node_modules/@nativescript/core/*"],
"@nativescript-community/ui-pager": ["src"],
"@nativescript-community/ui-pager/*": ["src/*"],
"*": ["node_modules/*"]
},
"plugins": [{ "transform": "./node_modules/@nativescript/webpack/dist/transformers/NativeClass", "type": "raw" }]
},
"include": ["src/**/*", "./references.d.ts"],
"exclude": ["node_modules", "platforms", "src/angular", "demo-svelte", "demo-vue", "demo-ng", "demo-react"],
"compileOnSave": false
}
}
}

0 comments on commit 556e80b

Please sign in to comment.