Skip to content

Commit 6533ab6

Browse files
committed
chore: project
1 parent 4a84182 commit 6533ab6

File tree

7 files changed

+41
-26
lines changed

7 files changed

+41
-26
lines changed

.npmrc

Lines changed: 7 additions & 1 deletion
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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"name": "@nativescript-community/template-snippet",
3+
"private": true,
34
"version": "0.0.1",
45
"dependencies": {
5-
"@nativescript-community/gesturehandler": "^0.2.1",
6-
"@nativescript-community/ui-persistent-bottomsheet": "file:../packages/ui-persistent-bottomsheet"
6+
"@nativescript-community/gesturehandler": "^2.0.8",
7+
"@nativescript-community/ui-persistent-bottomsheet": "0.0.24"
78
}
89
}

package.json

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"name": "@nativescript-community/ui-persistent-bottomsheet",
32
"version": "1.0.0",
43
"homepage": "https://github.com/nativescript-community/ui-persistent-bottomsheet#readme",
54
"bugs": {
@@ -15,22 +14,22 @@
1514
"build": "lerna run build",
1615
"build.all": "lerna run build.all",
1716
"build.angular": "lerna run build.angular",
18-
"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'",
17+
"clean": "rimraf 'packages/**/*.d.ts' 'packages/**/*.js' 'packages/**/*.js.map' 'packages/**/*.metada' 'packages/**/angular/ng-package.json'",
1918
"commitmsg": "commitlint -e $GIT_PARAMS",
20-
"demo.ng.android": "cd ./demo-ng && ns run android --no-hmr",
19+
"demo.ng.android": "cd ./demo-ng && ns run android --no-hmr --env.watchNodeModules",
2120
"demo.ng.clean": "cd ./demo-ng && ns clean",
22-
"demo.ng.ios": "cd ./demo-ng && ns run ios --no-hmr",
23-
"demo.react.android": "cd ./demo-react && ns run android --no-hmr",
21+
"demo.ng.ios": "cd ./demo-ng && ns run ios --no-hmr --env.watchNodeModules",
22+
"demo.react.android": "cd ./demo-react && ns run android --no-hmr --env.watchNodeModules",
2423
"demo.react.clean": "cd ./demo-react && ns clean",
25-
"demo.react.ios": "cd ./demo-react && ns run ios --no-hmr",
26-
"demo.svelte.android": "cd ./demo-svelte && ns run android --no-hmr",
24+
"demo.react.ios": "cd ./demo-react && ns run ios --no-hmr --env.watchNodeModules",
25+
"demo.svelte.android": "cd ./demo-svelte && ns run android --no-hmr --env.watchNodeModules",
2726
"demo.svelte.clean": "cd ./demo-svelte && ns clean",
28-
"demo.svelte.ios": "cd ./demo-svelte && ns run ios --no-hmr",
29-
"demo.vue.android": "cd ./demo-vue && ns run android --no-hmr",
27+
"demo.svelte.ios": "cd ./demo-svelte && ns run ios --no-hmr --env.watchNodeModules",
28+
"demo.vue.android": "cd ./demo-vue && ns run android --no-hmr --env.watchNodeModules",
3029
"demo.vue.clean": "cd ./demo-vue && ns clean",
31-
"demo.vue.ios": "cd ./demo-vue && ns run ios --no-hmr",
30+
"demo.vue.ios": "cd ./demo-vue && ns run ios --no-hmr --env.watchNodeModules",
3231
"postinstall": "npm run setup",
33-
"publish": "npm run setup && npm run build.all && lerna publish --create-release=github --force-publish",
32+
"publish": "npm run clean && npm run build.all && npm run readme && lerna publish --no-private --create-release=github --force-publish",
3433
"readme": "node ./tools/readme.js",
3534
"setup": "npm run submodules && ts-patch install",
3635
"start": "./node_modules/.bin/ntl -A -s 15 -o",
@@ -39,7 +38,8 @@
3938
"sync.test": "node ./tools/sync.js",
4039
"tsc": "cpy '**/*.d.ts' '../plugin' --parents --cwd=src && tsc -skipLibCheck -d",
4140
"update": "node ./tools/update.js",
42-
"doc": "node tools/builddoc.mjs && git add docs/* && git commit -m \"chore:doc\""
41+
"doc": "node tools/builddoc.mjs && git add docs/* && git commit -m \"chore:doc\"",
42+
"fullclean": "npm run clean && rimraf 'packages/**/node_modules' 'demo-*/hooks' 'package-lock.json' 'pnpm-lock.yaml' 'node_modules'"
4343
},
4444
"commitlint": {
4545
"extends": [
@@ -69,7 +69,15 @@
6969
},
7070
"engines": {
7171
"npm": "please use yarn or pnpm",
72-
"yarn": ">= 1.19.1",
73-
"pnpm": ">= 7.0.0"
74-
}
72+
"yarn": ">=1.19.1",
73+
"pnpm": ">=7.0.0"
74+
},
75+
"workspaces": [
76+
"packages/*",
77+
"demo-vue",
78+
"demo-ng",
79+
"demo-svelte",
80+
"demo-react",
81+
"demo-snippets"
82+
]
7583
}

packages/ui-persistent-bottomsheet/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
"scripts": {
99
"build": "npm run tsc && npm run readme",
1010
"build.all": "npm run build && npm run build.angular",
11-
"build.angular": "../../node_modules/.bin/ng-packagr -p ../../src/ui-persistent-bottomsheet/angular/ng-package.json -c ../../src/ui-persistent-bottomsheet/angular/tsconfig.json",
12-
"readme": "../../node_modules/.bin/readme generate -c ../../tools/readme/blueprint.json",
13-
"tsc": "../../node_modules/.bin/cpy '**/*.d.ts' '../../packages/ui-persistent-bottomsheet' --parents --cwd=../../src/ui-persistent-bottomsheet && ../../node_modules/.bin/tsc -skipLibCheck -d",
14-
"clean": "../../node_modules/.bin/rimraf ./*.d.ts ./*.js ./*.js.map"
11+
"build.angular": "ng-packagr -p ../../src/ui-persistent-bottomsheet/angular/ng-package.json -c ../../src/ui-persistent-bottomsheet/angular/tsconfig.json",
12+
"readme": "readme generate -c ../../tools/readme/blueprint.json",
13+
"tsc": "cpy '**/*.d.ts' '../../packages/ui-persistent-bottomsheet' --parents --cwd=../../src/ui-persistent-bottomsheet && tsc -skipLibCheck -d",
14+
"clean": "rimraf ./*.d.ts ./*.js ./*.js.map"
1515
},
1616
"nativescript": {
1717
"platforms": {

packages/ui-persistent-bottomsheet/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"tns-core-modules/*": ["./node_modules/@nativescript/core/*"]
99
}
1010
},
11-
"include": ["../../src/ui-persistent-bottomsheet/**/*", "../../references.d.ts", "../../src/references.d.ts"],
11+
"include": ["../../src/ui-persistent-bottomsheet/**/*", "../../references.d.ts", "../../tools/references.d.ts", "../../src/references.d.ts"],
1212
"exclude": ["../../src/ui-persistent-bottomsheet/angular/**"]
1313
}

pnpm-workspace.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
packages:
2+
- packages/*
3+
- demo-*

references.d.ts

Lines changed: 0 additions & 3 deletions
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" />

0 commit comments

Comments
 (0)