Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(library-angular-components): set valie package access #16

Merged
merged 2 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@
"access": "public",
"baseBranch": "origin/master",
"updateInternalDependencies": "patch",
"ignore": ["library-components", "example-angular-workspace", "library-angular-components"]
"ignore": [
"example-angular-workspace",
"library-components",
"library-angular-components"
]
}
4 changes: 2 additions & 2 deletions examples/library-angular-components/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ npm i @web-component-wrapper/core @web-component-wrapper/angular -D
npm i my-web-components-library
```

👀 [package.json](https://github.com/SebastianSedzik/web-component-wrapper/blob/master/examples/library-angular-components/projects/library-angular-components/package.json#L15-L20)
👀 [package.json](https://github.com/SebastianSedzik/web-component-wrapper/blob/master/examples/library-angular-components/projects/library-angular-components/package.json#L16-L21)

#### Step 2: Configure the web-component-wrapper
Create file where you will specify the source of your web-components library and the destination where the generated wrappers will be stored. Consider adding the folder containing the generated wrappers to your .gitignore file.
Expand All @@ -32,7 +32,7 @@ Create file where you will specify the source of your web-components library and
#### Step 3: Generate Angular Wrapper Components (e.g., Using a Prebuild Hook)
Incorporate the generation of Angular wrappers into your build process. For instance, run the generation script before running Angular package build:

👀 [package.json](https://github.com/SebastianSedzik/web-component-wrapper/blob/master/examples/library-angular-components/projects/library-angular-components/package.json#L11)
👀 [package.json](https://github.com/SebastianSedzik/web-component-wrapper/blob/master/examples/library-angular-components/projects/library-angular-components/package.json#L12)

#### Step 4: Include the Generated Components Module in the Library's Public API Export
Export the module containing the generated components from the public API file of your library.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "library-angular-components",
"version": "0.0.1",
"private": true,
"peerDependencies": {
"@angular/common": "^15.2.0",
"@angular/core": "^15.2.0"
Expand Down