Skip to content

Commit 3e9a197

Browse files
committed
chore: project
1 parent df3e02c commit 3e9a197

File tree

6 files changed

+40
-30
lines changed

6 files changed

+40
-30
lines changed

.npmrc

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
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
8+
shell-emulator=true
9+
auto-install-peers=false
310
loglevel=error
4-
engine-strict=true

demo-snippets/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"name": "@nativescript-community/template-snippet",
33
"version": "0.0.1",
44
"dependencies": {
5-
"@nativescript-community/perms":"2.2.0",
6-
"@nativescript-community/ui-webview": "file:../packages/webview",
7-
"fast-deep-equal":"3.1.3",
8-
"url":"0.11.0"
5+
"@nativescript-community/perms": "2.2.0",
6+
"@nativescript-community/ui-webview": "link:../packages/webview",
7+
"fast-deep-equal": "3.1.3",
8+
"url": "0.11.0"
99
}
10-
}
10+
}

package.json

+22-20
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,23 @@
1818
"build.angular": "lerna run build.angular",
1919
"build.angular.win": "lerna run build.angular.win",
2020
"build.win": "lerna run build.win",
21-
"clean": "rimraf 'packages/**/*.d.ts' 'packages/**/*.js' 'packages/**/*.js.map' 'packages/**/*.metadata.json' 'packages/**/*.ngsummary.json' 'packages/**/*.mjs' 'packages/**/*.mjs.map' 'packages/**/node_modules' 'packages/**/angular/package.json' 'package-lock.json' 'pnpm-lock.yaml' 'node_modules'",
21+
"clean": "rimraf 'packages/**/*.d.ts' 'packages/**/*.js' 'packages/**/*.js.map' 'packages/**/*.metada' 'packages/**/angular/ng-package.json'",
2222
"clean.win": "rimraf packages\\**\\*.d.ts packages\\**\\*.js packages\\**\\*.js.map packages\\**\\*.metadata.json packages\\**\\*.ngsummary.json node_modules package-lock.json",
2323
"commitmsg": "commitlint -e $GIT_PARAMS",
24-
"demo.ng.android": "cd ./demo-ng && ns run android --no-hmr",
24+
"demo.ng.android": "cd ./demo-ng && ns run android --no-hmr --env.watchNodeModules",
2525
"demo.ng.clean": "cd ./demo-ng && ns clean",
26-
"demo.ng.ios": "cd ./demo-ng && ns run ios --no-hmr",
27-
"demo.react.android": "cd ./demo-react && ns run android --no-hmr",
26+
"demo.ng.ios": "cd ./demo-ng && ns run ios --no-hmr --env.watchNodeModules",
27+
"demo.react.android": "cd ./demo-react && ns run android --no-hmr --env.watchNodeModules",
2828
"demo.react.clean": "cd ./demo-react && ns clean",
29-
"demo.react.ios": "cd ./demo-react && ns run ios --no-hmr",
30-
"demo.svelte.android": "cd ./demo-svelte && ns run android --no-hmr",
29+
"demo.react.ios": "cd ./demo-react && ns run ios --no-hmr --env.watchNodeModules",
30+
"demo.svelte.android": "cd ./demo-svelte && ns run android --no-hmr --env.watchNodeModules",
3131
"demo.svelte.clean": "cd ./demo-svelte && ns clean",
32-
"demo.svelte.ios": "cd ./demo-svelte && ns run ios --no-hmr",
33-
"demo.vue.android": "cd ./demo-vue && ns run android --no-hmr",
32+
"demo.svelte.ios": "cd ./demo-svelte && ns run ios --no-hmr --env.watchNodeModules",
33+
"demo.vue.android": "cd ./demo-vue && ns run android --no-hmr --env.watchNodeModules",
3434
"demo.vue.clean": "cd ./demo-vue && ns clean",
35-
"demo.vue.ios": "cd ./demo-vue && ns run ios --no-hmr",
35+
"demo.vue.ios": "cd ./demo-vue && ns run ios --no-hmr --env.watchNodeModules",
3636
"postinstall": "npm run setup",
37-
"publish": "npm run setup && npm run build.all && lerna publish --create-release=github --force-publish",
37+
"publish": "npm run clean && npm run build.all && npm run readme && lerna publish --no-private --create-release=github --force-publish",
3838
"readme": "node ./tools/readme.js",
3939
"setup": "npm run submodules && ts-patch install",
4040
"start": "./node_modules/.bin/ntl -A -s 15 -o",
@@ -44,7 +44,8 @@
4444
"tsc": "cpy '**/*.d.ts' '../plugin' --parents --cwd=src && tsc -skipLibCheck -d",
4545
"update": "node ./tools/update.js",
4646
"watch": "npm run tsc -- -w",
47-
"doc": "node tools/builddoc.mjs && git add docs/* && git commit -m \"chore:doc\""
47+
"doc": "node tools/builddoc.mjs && git add docs/* && git commit -m \"chore:doc\"",
48+
"fullclean": "npm run clean && rimraf 'packages/**/node_modules' 'demo-*/hooks' 'package-lock.json' 'pnpm-lock.yaml' 'node_modules'"
4849
},
4950
"commitlint": {
5051
"extends": [
@@ -55,13 +56,6 @@
5556
"@nativescript-community/plugin-seed-tools": "file:tools",
5657
"ts-node": "10.9.1"
5758
},
58-
"workspaces": [
59-
"packages/*",
60-
"demo-vue",
61-
"demo-ng",
62-
"demo-svelte",
63-
"demo-react"
64-
],
6559
"ntl": {
6660
"descriptions": {
6761
"build": "Build the plugin",
@@ -81,7 +75,15 @@
8175
},
8276
"engines": {
8377
"npm": "please use yarn or pnpm",
84-
"yarn": ">= 1.19.1",
85-
"pnpm": ">= 7.0.0"
78+
"yarn": ">=1.19.1",
79+
"pnpm": ">=7.0.0"
80+
},
81+
"workspaces": {
82+
"0": "packages/*",
83+
"1": "demo-vue",
84+
"2": "demo-ng",
85+
"3": "demo-svelte",
86+
"4": "demo-react",
87+
"5": "demo-snippets"
8688
}
8789
}

pnpm-workspace.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
packages:
2+
- packages/*
3+
- demo-*

references.d.ts

-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
/// <reference path="./node_modules/@nativescript/types-ios/lib/ios.d.ts" />
2-
/// <reference path="./node_modules/@nativescript/types-android/lib/android-28.d.ts" />
3-
/// <reference path="./node_modules/@nativescript/core/global-types.d.ts" />

tsconfig.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"compilerOptions": {
44
"paths": {
55
"@nativescript-community/ui-webview": ["src/ui-webview"],
6-
"@nativescript-community/ui-webview/*": ["src/ui-webview/*"]
6+
"@nativescript-community/ui-webview/*": ["src/ui-webview/*"],
7+
"@nativescript-community/ui-webview-rtc": ["src/ui-webview-rtc"],
8+
"@nativescript-community/ui-webview-rtc/*": ["src/ui-webview-rtc/*"]
79
}
810
}
911
}

0 commit comments

Comments
 (0)