Skip to content

Commit

Permalink
Merge pull request #86 from gluestack/feat/v2-cli
Browse files Browse the repository at this point in the history
Init command: v2
  • Loading branch information
vaibhk20 authored Sep 26, 2024
2 parents 95c86e8 + e7cdb35 commit e9ed42c
Show file tree
Hide file tree
Showing 67 changed files with 17,323 additions and 132 deletions.
5 changes: 0 additions & 5 deletions packages/create-expo-router-app-with-gluestack-ui/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4660,11 +4660,6 @@ is-typedarray@^1.0.0, is-typedarray@~1.0.0:
resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a"
integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==

is-unicode-supported@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz#d824984b616c292a2e198207d4a609983842f714"
integrity sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==

is-weakmap@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/is-weakmap/-/is-weakmap-2.0.2.tgz#bf72615d649dfe5f699079c54b83e47d1ae19cfd"
Expand Down
5 changes: 0 additions & 5 deletions packages/create-react-native-app-with-gluestack-ui/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4660,11 +4660,6 @@ is-typedarray@^1.0.0, is-typedarray@~1.0.0:
resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a"
integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==

is-unicode-supported@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz#d824984b616c292a2e198207d4a609983842f714"
integrity sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==

is-weakmap@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/is-weakmap/-/is-weakmap-2.0.2.tgz#bf72615d649dfe5f699079c54b83e47d1ae19cfd"
Expand Down
18 changes: 18 additions & 0 deletions packages/gluestack-cli/.github/workflows/test-cases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 'Integration test'
run-name: 'Integration Test'
on: [pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Run Tests
run: |
yarn
yarn test
6 changes: 6 additions & 0 deletions packages/gluestack-cli/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
/coverage.data
/coverage/
junit.xml
dist
components/
1 change: 1 addition & 0 deletions packages/gluestack-cli/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__tests__
1 change: 1 addition & 0 deletions packages/gluestack-cli/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.13.0
3 changes: 3 additions & 0 deletions packages/gluestack-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 0.4.9-alpha.0 (2023-07-21)
- Testing

21 changes: 21 additions & 0 deletions packages/gluestack-cli/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 mayank-96

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
48 changes: 48 additions & 0 deletions packages/gluestack-cli/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# GLUESTACK-UI CLI

[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)

> A CLI tool for easily initialising `gluestack-ui` and adding components to your projects.
- gluestack-ui offers a powerful and user-friendly Command Line Interface (CLI) for developers.
- Simplifies the development experience and provides a streamlined workflow.
- Includes various commands to assist with installation setup, component management, and updates.
- Some of the commands provided by the gluestack-ui CLI are:
- Installation setup command: Helps with the initial setup of the gluestack-ui library.
- Add component command: Allows users to add components from the gluestack-ui library to their projects.
- These commands help developers efficiently manage their project components and keep them up to date.
- The gluestack-ui CLI aims to enhance the development workflow and improve productivity.

## Usage

To use the gluestack-ui CLI, you can run the following commands:

- **Initialize gluestack-ui -** This command sets up the gluestack-ui library in your project.

```
npx gluestack-ui init
```

- **Add a component or a Hook -** Replace `<component-name>` with the name of the component or a hook you want to add to your project. You can also use a special flag `--all` which will add all the components to your project.

```
npx gluestack-ui add <component-name>
```

- **Get help -** This command provides help and information about using the gluestack-ui CLI.

```
npx gluestack-ui help
```

## Contributing

Contributions are welcome! If you would like to contribute to this project, please follow these steps:

1. Fork the repository.
2. Create a new branch for your feature or bug fix.
3. Make your changes and commit them.
4. Push your changes to your forked repository.
5. Submit a pull request to the main repository.

Please ensure that your code follows the project's coding conventions.
2 changes: 2 additions & 0 deletions packages/gluestack-cli/__tests__/apps/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
Loading

0 comments on commit e9ed42c

Please sign in to comment.