Skip to content

Commit f5c6827

Browse files
authored
Merge pull request #6 from BBVA/release/1.0.0
Release/1.0.0
2 parents f990a57 + 9318dc8 commit f5c6827

File tree

187 files changed

+20584
-386
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

187 files changed

+20584
-386
lines changed

.changeset/config.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.github/workflows/build.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Build node CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Use Node.js
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version: '20.x'
16+
- run: npm ci
17+
- run: npm run build --if-present

.github/workflows/publish.yml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Publish to NPM
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v4
11+
- name: Setup Node
12+
uses: actions/setup-node@v4
13+
with:
14+
node-version: '20'
15+
registry-url: 'https://registry.npmjs.org'
16+
- name: Install dependencies and build
17+
run: |
18+
npm i --package-lock-only
19+
npm ci
20+
npm run build --if-present
21+
- name: Publish core package on NPM.js
22+
working-directory: ./packages/core
23+
run: npm publish
24+
env:
25+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
26+
- name: Publish core-plugin package on NPM.js
27+
working-directory: ./packages/core-plugin
28+
run: npm publish
29+
env:
30+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
31+
- name: Publish element-controller package on NPM.js
32+
working-directory: ./packages/element-controller
33+
run: npm publish
34+
env:
35+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
36+
- name: Publish page-controller package on NPM.js
37+
working-directory: ./packages/page-controller
38+
run: npm publish
39+
env:
40+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
41+
- name: Publish page-mixin package on NPM.js
42+
working-directory: ./packages/page-mixin
43+
run: npm publish
44+
env:
45+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
46+
- name: Publish page-transitions package on NPM.js
47+
working-directory: ./packages/page-transitions
48+
run: npm publish
49+
env:
50+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
51+
- name: Publish localize package on NPM.js
52+
working-directory: ./packages/localize
53+
run: npm publish
54+
env:
55+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
56+
- name: Publish create-app package on NPM.js
57+
working-directory: ./packages/create-app
58+
run: npm publish
59+
env:
60+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ server
1616
/playwright/.cache/
1717
/packages/example/*
1818
!/packages/example/recipes-app/
19+
/packages/example/recipes-app/types/
20+
!/packages/example/blank-app/
21+
/packages/example/blank-app/types/

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry="https://registry.npmjs.org/"

CODE_OF_CONDUCT.md

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8+
9+
## Our Standards
10+
11+
Examples of behavior that contributes to a positive environment for our community include:
12+
13+
- Demonstrating empathy and kindness toward other people
14+
- Being respectful of differing opinions, viewpoints, and experiences
15+
- Giving and gracefully accepting constructive feedback
16+
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17+
- Focusing on what is best not just for us as individuals, but for the overall community
18+
19+
Examples of unacceptable behavior include:
20+
21+
- The use of sexualized language or imagery, and sexual attention or
22+
advances of any kind
23+
- Trolling, insulting or derogatory comments, and personal or political attacks
24+
- Public or private harassment
25+
- Publishing others' private information, such as a physical or email
26+
address, without their explicit permission
27+
- Other conduct which could reasonably be considered inappropriate in a
28+
professional setting
29+
30+
## Enforcement Responsibilities
31+
32+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33+
34+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35+
36+
## Scope
37+
38+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39+
40+
## Enforcement
41+
42+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [[email protected]](mailto:[email protected]). All complaints will be reviewed and investigated promptly and fairly.
43+
44+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45+
46+
## Enforcement Guidelines
47+
48+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49+
50+
### 1. Correction
51+
52+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53+
54+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55+
56+
### 2. Warning
57+
58+
**Community Impact**: A violation through a single incident or series of actions.
59+
60+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61+
62+
### 3. Temporary Ban
63+
64+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65+
66+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67+
68+
### 4. Permanent Ban
69+
70+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71+
72+
**Consequence**: A permanent ban from any sort of public interaction within the project community.
73+
74+
## Attribution
75+
76+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77+
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78+
79+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80+
81+
[homepage]: https://www.contributor-covenant.org
82+
83+
For answers to common questions about this code of conduct, see the FAQ at
84+
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.

CONTRIBUTING.md

+112
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
# Contributing
2+
3+
## Contributing Policy
4+
5+
Thank you for considering contributing to our project. Your interest and support are greatly appreciated.
6+
7+
> This project adheres to the Contributor Covenant [code of conduct](./CODE_OF_CONDUCT.md). By participating in this project, you agree to abide by its terms.
8+
9+
As of the current moment, our project is focusing on actively managing and addressing issues within the repository. Therefore, **we are not accepting pull requests at this time.** Our team is dedicated to resolving existing issues and improving the project based on community feedback.
10+
11+
If you encounter any issues or have suggestions for enhancements, please feel free to create a new issue outlining the situation in detail. We encourage you to contribute to the discussion and help us prioritize and resolve these matters.
12+
13+
While we are not accepting pull requests at this time, your involvement through issue creation, feedback, and discussion is invaluable to the project's growth and development.
14+
15+
We sincerely appreciate your understanding and cooperation in this matter. Your contributions, whether through issue reporting or other means, play a crucial role in making our project better for everyone.
16+
17+
Please note that while we are not currently accepting pull requests, we plan to revisit this decision in the future as our project evolves. We appreciate your patience and understanding.
18+
19+
<!--
20+
21+
## Getting Started
22+
23+
First, create a fork of the [BBVA/open-cells](https://github.com/BBVA/open-cells) repository by hitting the `fork` button on the GitHub page.
24+
25+
Next, clone your fork onto your computer (replacing YOUR_USERNAME with your actual GitHub username).
26+
27+
```sh
28+
git clone [email protected]:YOUR_USERNAME/open-cells.git
29+
```
30+
31+
Once cloning is complete, change directory to the repository and add the Open Web Components project as a remote.
32+
33+
```sh
34+
cd open-cells
35+
git remote add upstream [email protected]:BBVA/open-cells.git
36+
```
37+
38+
## Preparing Your Local Environment for Development
39+
40+
Now that you have cloned the repository, ensure you have Node 18+ installed, then run the following command to set up the development environment.
41+
42+
```sh
43+
npm install
44+
```
45+
46+
This will download and install all packages needed.
47+
48+
## Making Your Changes
49+
50+
First, update your fork with the latest code from upstream, then create a new branch for your work.
51+
52+
```sh
53+
git checkout master
54+
git pull upstream master --rebase
55+
git checkout -b my-awesome-fix
56+
```
57+
58+
### Linting
59+
60+
Commits are linted using precommit hooks, meaning that any code that raises a linting error cannot be committed. In order to help avoid that, we recommend using an IDE or editor with an ESLint plugin in order to streamline the development process. Plugins are available for all the popular editors. For more information see [ESLint Integrations](https://eslint.org/docs/user-guide/integrations)
61+
62+
### Running Tests on Core
63+
64+
To run the tests of core package, it's recommended to `cd` into the package directory and then using `npm test` to run them. This way you're only running tests of that specific package.
65+
66+
### Creating a Changeset
67+
68+
If you made changes for which you want to trigger a release, you need to create a changeset.
69+
This documents your intent to release and allows you to specify a message that will be put into the changelog(s) of the package(s).
70+
71+
[More information on changesets](https://github.com/atlassian/changesets)
72+
73+
To create a changeset, run:
74+
75+
```sh
76+
npx changeset
77+
```
78+
79+
Use the menu to select for which packages you need a release, and then select what kind of release. For the release type, we follow [Semantic Versioning](https://semver.org/), so please take a look if you're unfamiliar.
80+
81+
In short:
82+
83+
- A documentation change or similar chore usually does not require a release
84+
- A bugfix requires a patch
85+
- A new feature (feat) requires a minor
86+
- A breaking change requires a major
87+
88+
Exceptions:
89+
90+
- For alpha (<1.0.0), bugfixes and feats are both patches, and breaking changes are allowed as minors.
91+
- For release-candidate and other special cases, other rules may follow.
92+
93+
## Committing Your Changes
94+
95+
Commit messages must follow the [conventional commit format](https://www.conventionalcommits.org/en/v1.0.0/).
96+
Open Cells uses the package name as the scope. So for example if you fix a _terrible bug_ in the package `@open-cells/core`, the commit message should look like this:
97+
98+
```sh
99+
fix(core): fix terrible bug
100+
```
101+
102+
## Create a Pull Request
103+
104+
After you commit your changes, it's time to push your branch.
105+
106+
```sh
107+
git push -u origin my-awesome-fix
108+
```
109+
110+
After a successful push, visit your fork on GitHub. You should see a button that will allow you to create a pull request.
111+
112+
-->

0 commit comments

Comments
 (0)