Skip to content

Commit 898ee8b

Browse files
committed
chore: project
1 parent 8e60798 commit 898ee8b

File tree

10 files changed

+103
-29
lines changed

10 files changed

+103
-29
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ yarn-error.log*
2121
.LSOverride
2222
.idea
2323
.cloud
24+
.gradle
2425
.project
26+
.yarn
2527
tmp/
26-
package-lock.json
2728

2829
!.eslintrc.js
2930
!.prettierrc.js
@@ -42,6 +43,7 @@ build
4243
Pods
4344
!packages/platforms
4445
/packages/**/*.aar
46+
/demo-snippets/**/*.aar
4547
*.xcuserdatad
4648
/packages/README.md
4749
packages/**/*js.map
@@ -51,6 +53,5 @@ packages/*.ngsummary.json
5153
packages/*.metadata.json
5254
packages/angular
5355
packages/typings
54-
pnpm-lock.yaml
5556

5657
/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.3.1.cjs

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: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,26 @@
1616
"build.all": "lerna run build.all",
1717
"build.angular": "lerna run build.angular",
1818
"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'",
19+
"clean": "rimraf 'packages/**/*.d.ts' 'packages/**/*.js' 'packages/**/*.js.map' 'packages/**/*.metada' 'packages/**/angular/ng-package.json'",
2020
"commitmsg": "commitlint -e $GIT_PARAMS",
21-
"demo.ng.android": "cd ./demo-ng && ns run android --no-hmr",
21+
"demo.ng.android": "cd ./demo-ng && ns run android --no-hmr --env.watchNodeModules",
2222
"demo.ng.clean": "cd ./demo-ng && ns clean",
23-
"demo.ng.ios": "cd ./demo-ng && ns run ios --no-hmr",
23+
"demo.ng.ios": "cd ./demo-ng && ns run ios --no-hmr --env.watchNodeModules",
2424
"postinstall": "npm run setup",
2525
"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",
26+
"publish": "npm run clean ; npm run build.all ; npm run readme ; npm run doc ; npm run commit_readme_doc_changes ; lerna publish",
27+
"readme": "lerna run readme && node ./tools/readme.js",
2828
"setup": "npm run submodules && ts-patch install",
2929
"start": "./node_modules/.bin/ntl -A -s 15 -o",
3030
"submodules": "git submodule update --init",
3131
"sync": "node ./tools/sync.js",
3232
"sync.test": "node ./tools/sync.js",
3333
"tsc": "cpy '**/*.d.ts' '../plugin' --parents --cwd=src && tsc -skipLibCheck -d",
3434
"update": "node ./tools/update.js",
35-
"watch": "npm run tsc -- -w"
35+
"watch": "npm run tsc -- -w",
36+
"fullclean": "npm run clean && rimraf 'packages/**/node_modules' 'demo-*/hooks' 'demo-*/node_modules' 'package-lock.json' 'pnpm-lock.yaml' 'node_modules'",
37+
"doc": "node tools/builddoc.mjs",
38+
"commit_readme_doc_changes": "git add docs *.md ; git commit -m \"readme/doc\""
3639
},
3740
"commitlint": {
3841
"extends": [
@@ -52,5 +55,19 @@
5255
"demo.ng.ios": "Runs the Angular demo on iOS.",
5356
"watch": "Watch for changes in the plugin source and re-build."
5457
}
58+
},
59+
"workspaces": [
60+
"packages/*",
61+
"demo-vue",
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
}

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

Whitespace-only changes.

svelte.config.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
const sveltePreprocess = require('svelte-preprocess');
2+
// const svelteNativePreprocessor = require('svelte-native-preprocessor');
3+
4+
module.exports = {
5+
compilerOptions: {
6+
namespace: 'foreign'
7+
},
8+
preprocess: [
9+
sveltePreprocess({
10+
typescript: {
11+
compilerOptions: {
12+
target: 'es2020'
13+
}
14+
}
15+
})
16+
// svelteNativePreprocessor()
17+
]
18+
};

0 commit comments

Comments
 (0)