Skip to content

Commit 042ba5c

Browse files
committed
chore: project
1 parent fff44d5 commit 042ba5c

File tree

13 files changed

+31472
-30
lines changed

13 files changed

+31472
-30
lines changed

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ yarn-error.log*
2121
.LSOverride
2222
.idea
2323
.cloud
24+
.gradle
2425
.project
26+
.yarn
27+
.cxx
2528
tmp/
26-
package-lock.json
2729

2830
!.eslintrc.js
2931
!.prettierrc.js
@@ -33,6 +35,7 @@ package-lock.json
3335
devices.js
3436

3537
*.framework
38+
*.xcframework
3639
**/*.js.map
3740
src/**/*.js
3841
packages/**/*.js
@@ -42,6 +45,7 @@ build
4245
Pods
4346
!packages/platforms
4447
/packages/**/*.aar
48+
/demo-snippets/**/*.aar
4549
*.xcuserdatad
4650
/packages/README.md
4751
packages/**/*js.map
@@ -51,6 +55,5 @@ packages/*.ngsummary.json
5155
packages/*.metadata.json
5256
packages/angular
5357
packages/typings
54-
pnpm-lock.yaml
5558

5659
/blueprint.md

.npmrc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
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
3-
loglevel=error
8+
shell-emulator=true
9+
auto-install-peers=false
10+
loglevel=error
11+
engine-strict=true

.yarnrc.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
nmHoistingLimits: workspaces
2+
3+
nodeLinker: node-modules
4+
5+
yarnPath: tools/.yarn/releases/yarn-3.6.4.cjs

demo-snippets/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@nativescript-community/template-snippet",
33
"version": "0.0.1",
4+
"private": true,
45
"dependencies": {
56
"@nativescript-community/ui-checkbox": "file:../packages/checkbox"
67
}

lerna.json

Lines changed: 40 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,43 @@
11
{
2-
"packages": [
3-
"packages/*"
4-
],
5-
"npmClient": "npm",
6-
"command": {
7-
"publish": {
8-
"conventionalCommits": true,
9-
"ignoreChanges": [
10-
"ignored-file",
11-
"*.md"
12-
]
13-
},
14-
"bootstrap": {
15-
"npmClientArgs": [
16-
"--no-package-lock"
17-
]
2+
"version": "2.0.8",
3+
"packages": [
4+
"packages/*"
5+
],
6+
"npmClient": "yarn",
7+
"useWorkspaces": true,
8+
"command": {
9+
"publish": {
10+
"conventionalCommits": true,
11+
"conventionalBlacklist": [
12+
"chore"
13+
],
14+
"changelogPreset": "angular",
15+
"createRelease": "github",
16+
"commitHooks": false,
17+
"private": false,
18+
"ignoreChanges": [
19+
"*.md",
20+
"docs/**"
21+
]
22+
},
23+
"version": {
24+
"conventionalCommits": true,
25+
"conventionalBlacklist": [
26+
"chore"
27+
],
28+
"changelogPreset": "angular",
29+
"createRelease": "github",
30+
"commitHooks": false,
31+
"private": false,
32+
"ignoreChanges": [
33+
"*.md",
34+
"docs/**"
35+
]
36+
},
37+
"bootstrap": {
38+
"npmClientArgs": [
39+
"--no-package-lock"
40+
]
41+
}
1842
}
19-
},
20-
"version": "2.0.8"
2143
}

package.json

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"name": "@nativescript-community/ui-checkbox",
32
"version": "1.0.0",
43
"homepage": "https://github.com/@nativescript-community/ui-checkbox#readme",
54
"bugs": {
@@ -16,23 +15,26 @@
1615
"build.all": "lerna run build.all",
1716
"build.angular": "lerna run build.angular",
1817
"build.win": "lerna run build-win",
19-
"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'",
18+
"clean": "rimraf 'packages/**/*.d.ts' 'packages/**/*.js' 'packages/**/*.js.map' 'packages/**/*.metada' 'packages/**/angular/ng-package.json'",
2019
"commitmsg": "commitlint -e $GIT_PARAMS",
21-
"demo.ng.android": "cd ./demo-ng && ns run android --no-hmr",
20+
"demo.ng.android": "cd ./demo-ng && ns run android --no-hmr --env.watchNodeModules",
2221
"demo.ng.clean": "cd ./demo-ng && ns clean",
23-
"demo.ng.ios": "cd ./demo-ng && ns run ios --no-hmr",
22+
"demo.ng.ios": "cd ./demo-ng && ns run ios --no-hmr --env.watchNodeModules",
2423
"postinstall": "npm run setup",
2524
"prepare": "npm run setup",
26-
"publish": "npm run setup && npm run build.all && lerna publish --create-release=github --force-publish",
27-
"readme": "node ./tools/readme.js",
25+
"publish": "npm run setup && npm run clean && npm run build.all && npm run readme && npm run doc && npm run commit_readme_doc_changes ; lerna publish",
26+
"readme": "lerna run readme && node ./tools/readme.js",
2827
"setup": "npm run submodules && ts-patch install",
2928
"start": "./node_modules/.bin/ntl -A -s 15 -o",
3029
"submodules": "git submodule update --init",
3130
"sync": "node ./tools/sync.js",
3231
"sync.test": "node ./tools/sync.js",
3332
"tsc": "cpy '**/*.d.ts' '../plugin' --parents --cwd=src && tsc -skipLibCheck -d",
3433
"update": "node ./tools/update.js",
35-
"watch": "npm run tsc -- -w"
34+
"watch": "npm run tsc -- -w",
35+
"fullclean": "npm run clean && rimraf 'packages/**/node_modules' 'demo-*/hooks' 'demo-*/node_modules' 'package-lock.json' 'pnpm-lock.yaml' 'node_modules'",
36+
"doc": "node tools/builddoc.mjs",
37+
"commit_readme_doc_changes": "git add docs/** *.md ; git commit -m \"readme/doc\""
3638
},
3739
"commitlint": {
3840
"extends": [
@@ -52,5 +54,20 @@
5254
"demo.ng.ios": "Runs the Angular demo on iOS.",
5355
"watch": "Watch for changes in the plugin source and re-build."
5456
}
57+
},
58+
"workspaces": [
59+
"packages/*",
60+
"demo-vue",
61+
"demo-vue3",
62+
"demo-ng",
63+
"demo-svelte",
64+
"demo-react",
65+
"demo-snippets"
66+
],
67+
"engines": {
68+
"npm": "please use yarn or pnpm",
69+
"yarn": ">=1.19.1",
70+
"pnpm": ">=7.0.0",
71+
"node": "^14.20.0 || ^16.13.0 || >=18.10.0"
5572
}
5673
}

0 commit comments

Comments
 (0)