Skip to content

Commit

Permalink
🐲 Release 1.2.0 (#31)
Browse files Browse the repository at this point in the history
- 🤯 Updated the getState function to return an array (tuple) similar to how React's useState hook works (#14 )
- ✅ Updated unit tests to match the updated response from Astral.context.getState.
- 📃 Fix broken hyperlink in the Getting Started section (#26 )
  - Replaced the broken hyperlink reference with the correct anchor link to the "Core Concepts" section.
  - Ensured that the anchor link matches the heading in the "Core Concepts" section.
- 🌀 Integrate Typescript or babel (#15 )
  - Converted all the source files to TypeScript namespaces.
  - Updated build process to parse the javascript files.
  - Replaced JSDOC with TypeDoc to generate documentation for the new typescript codebase.
  - Updated ESLINT configuration to be integrated with TypeScript.
  - Added some unit tests.
- 📃Break features and definitions into different lines in readme (#24 )
  - Updated readme.md to fix the line breaks and to reflect new updated features in Astral.context.getState and Astral.context.updateState.
- 📃Updated CONTRIBUTING.md
  - Updated CONTRIBUTING.md to ensure updated contributing processes.

---------


Co-authored-by: Rabis Naqvi <rabis.naqvi@xynotech.com>
Co-authored-by: Siar <83523212+Siar416@users.noreply.github.com>
Co-authored-by: HARSH SRIVASTAV <96014384+Hasrivastav@users.noreply.github.com>
  • Loading branch information
4 people committed May 26, 2023
1 parent e5af9f0 commit 9933c94
Show file tree
Hide file tree
Showing 25 changed files with 2,958 additions and 2,118 deletions.
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

10 changes: 7 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
{
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended"
"eslint:recommended", "plugin:@typescript-eslint/recommended"
],
"plugins": [
"prettier", "import"
"prettier", "import", "@typescript-eslint"
],
"rules": {
"prettier/prettier": "error"
"prettier/prettier": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-namespace": "off",
"no-inner-declarations": "off"
},
"parserOptions": {
"ecmaVersion": 2021, // Specify the ECMAScript version you are using (ES2021 or later)
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [main]
branches: [main, release-candidate]
pull_request:
types: ['opened', 'reopened', 'synchronize']
types: ['opened', 'reopened', 'synchronize', 'edited']

permissions:
contents: read
Expand Down
77 changes: 30 additions & 47 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,62 +6,45 @@ To ensure a smooth collaboration and maintain a high-quality codebase, please fo

## Table of Contents

- [Getting Started](#getting-started)
- [Installation](#installation)
- [Development Setup](#development-setup)
- [Code of Conduct](#code-of-conduct)
- [How to Contribute](#how-to-contribute)
- [Contributing Guidelines](#contributing-guidelines)
- [Bug Reports](#bug-reports)
- [Feature Requests](#feature-requests)
- [Code Style](#code-style)
- [License](#license)

## Getting Started

### Installation
Thank you for your interest in contributing to this project! We welcome contributions from everyone. Please read this document to understand the process for contributing.

Before you start contributing to Astral.js, make sure you have it installed. You can install it using npm:
## Code of Conduct

```bash
npm install astral.js
```
This project adheres to the [Contributor Covenant Code of Conduct](https://www.contributor-covenant.org/version/2/1/code_of_conduct/). By participating, you are expected to uphold this code. Please report any unacceptable behavior to the project maintainers.

## How to Contribute

To contribute to this project, please follow these steps:

### Development Setup

To set up the development environment, follow these steps:To set up the development environment and start contributing, follow these steps:

1. Clone the Astral.js repository to your local machine:

```bash
git clone https://github.com/rabisnaqvi/Astral.js.git
```
2. Navigate to the project directory:

```bash
cd Astral.js
```
3. Install the dependencies:

```bash
npm install
```
4. Create a new branch for your changes:

```bash
git checkout -b my-branch-name
```
5. Make your desired changes and ensure that the code passes all tests.
6. Commit your changes with a descriptive commit message:
```bash
git commit -m "Add feature X"
```
7. Push your changes to the remote repository:
```bash
git push origin my-branch-name
```
8. Go to the Astral.js repository on GitHub and create a new pull request from your branch.
9. Provide a clear title and description for your pull request, explaining the purpose of the changes.
10. Wait for the pull request to be reviewed and merged.
11. Celebrate! 🎉
1. Make sure there is an internal branch associated with the issue you are working on. If the branch doesn't exist, create one.
2. Fork this repository to your own GitHub account.
3. Clone the forked repository to your local machine.
4. Create a new branch from the internal branch for the specific issue you are working on.
5. Implement your changes or fixes in the new branch.
6. Make sure your code follows the project's code style and guidelines.
7. Run the tests `npm run test` to ensure that your changes don't break any existing functionality.
8. Run the formatter `npm run format` to ensure that your code is formatted correctly.
9. Run the linter `npm run lint` to ensure that your code adheres to the project's code style.
10. Run the build `npm run build` to ensure that your code builds successfully.
11. Commit your changes with descriptive commit messages. (🤗 Emojis are appreciated!)
12. Push the branch to your forked repository.
13. Open a pull request (PR) from your branch to the internal branch associated with the issue.
14. The PR will be reviewed by the project maintainers. Please be patient during the review process.
15. Once the PR is approved, your changes will be merged into the internal feature branch.
16. A new PR will be generated to merge the internal feature branch into the release-candidate branch.
17. The features/fixes will undergo testing and pre-release tasks on the release-candidate branch.
18. When the features/fixes are tested and ready to be released, a PR will be generated to merge the release-candidate branch into the main branch.

Please note that the project maintainers may request further changes to the code before merging the PR. By submitting a PR, you confirm that you have the right to license your contribution under the project's license.


## Contributing Guidelines
Expand Down Expand Up @@ -93,8 +76,8 @@ If you have a suggestion for a new feature or improvement in Astral.js, we'd lov
To maintain a consistent code style throughout the project, we use ESLint and Prettier. Before submitting a pull request, please ensure that your code adheres to the linting rules and passes all tests. You can run the following command to check your code:

```bash
npm run lint
npm run format
npm run lint
```

## License
Expand Down
6 changes: 6 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
presets: [
'@babel/preset-env',
'@babel/preset-typescript',
],
};
2 changes: 1 addition & 1 deletion dist/astral.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/astral.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ module.exports = {
testEnvironment: 'jsdom', // Use Node.js environment for running tests
roots: ['<rootDir>/specs'], // Specify the root directory for tests
moduleDirectories: ['node_modules', 'src'], // Define the directories Jest should look for modules
moduleFileExtensions: ['js'], // Specify the file extensions of test files
moduleFileExtensions: ['js', 'ts'], // Specify the file extensions of test files
testMatch: ['**/*.spec.js'], // Pattern for matching test files
verbose: true, // Output detailed information for each test
collectCoverage: true, // Enable code coverage collection
coverageDirectory: '<rootDir>/coverage', // Specify the directory for coverage reports
collectCoverageFrom: ['src/**/*.js'], // Specify the files to include for code coverage
collectCoverageFrom: ['src/**/*.ts'], // Specify the files to include for code coverage
coverageReporters: ['lcov', 'text-summary'], // Define the coverage report formats
transform: {
'^.+\\.js?$': 'babel-jest',
'^.+\\.(js|jsx|ts|tsx)$': 'babel-jest',
},
};
15 changes: 0 additions & 15 deletions jsdoc.json

This file was deleted.

0 comments on commit 9933c94

Please sign in to comment.