diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 59dd8bc..97b7d36 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,44 +58,3 @@ jobs: - name: Unit Test run: bun test - - js-cs-fixer: - if: github.event_name == 'pull_request' && ! startsWith(github.ref, 'refs/heads/auto-fixed/') - - steps: - - name: Checkout Code - uses: actions/checkout@v4 - - - name: Install bun - uses: oven-sh/setup-bun@v1 - - - name: Install Dependencies - run: bun install - - - name: Prepare Git User - run: | - git config --global user.name "github-actions[bot]" - git config --global user.email "action@github.com" - git checkout -B "${{ env.FIXER_BRANCH }}" - - - name: Apply auto-fixers - run: bun run lint:fix - - - name: Create Fixer PR - run: | - if [[ -z $(git status --porcelain) ]]; then - echo "Nothing to fix... Exiting." - exit 0 - fi - OPEN_PRS=`curl --silent -H "Accept: application/vnd.github.v3+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/$GITHUB_REPOSITORY/pulls?state=open"` - OPEN_FIXER_PRS=`echo ${OPEN_PRS} | grep -o "\"ref\": \"${{ env.FIXER_BRANCH }}\"" | wc -l` - git commit -am "${{ env.TITLE }}" - git push origin "${{ env.FIXER_BRANCH }}" --force - if [ ${OPEN_FIXER_PRS} -eq "0" ]; then - curl -X POST \ - -H "Accept: application/vnd.github.v3+json" \ - -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ - "https://api.github.com/repos/$GITHUB_REPOSITORY/pulls" \ - -d "{ \"head\":\"${{ env.FIXER_BRANCH }}\", \"base\":\"${{ env.SOURCE_BRANCH }}\", \"title\":\"${{ env.TITLE }}\", \"body\":\"${{ env.DESCRIPTION }}\n\nTriggered by #${{ env.PR_NUMBER }}\" }" - fi - exit 1 diff --git a/.vscode/dictionary.txt b/.vscode/dictionary.txt index 0c1fe5d..8033e6f 100644 --- a/.vscode/dictionary.txt +++ b/.vscode/dictionary.txt @@ -16,9 +16,11 @@ heroicons openweb outdir pausable +Postcardware prefetch preinstall socio +Solana stacksjs typecheck unplugin diff --git a/README.md b/README.md index e20fd99..2b31fa0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,13 @@ -# Bun Plugin - .env loader +# bun-plugin-env -## ☘️ Features +[![npm version][npm-version-src]][npm-version-href] +[![GitHub Actions][github-actions-src]][github-actions-href] +[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) +[![npm downloads][npm-downloads-src]][npm-downloads-href] + +A simple loader for your dotenv files. + +## Features - Simple `.env` file loader - Supports a wide variety of .env types @@ -49,17 +56,41 @@ For casual chit-chat with others using this package: [Join the Stacks Discord Server](https://discord.gg/stacksjs) -## 🙏🏼 Credits +## Postcardware + +You will always be free to use the Stacks framework & any of its over 80 packages. At the same time, we would love to see which parts of the world Stacks ends up in. _We would love to receive a postcard—which we publish on our website._ + +Our address is: Stacks.js, 5710 Crescent Park #107, Playa Vista 90094, CA + +##### _Thanks to Spatie for this wonderful idea._ + +## Sponsors + +We would like to extend our thanks to the following sponsors for funding Stacks development. If you are interested in becoming a sponsor, please reach out to us. + +- [JetBrains](https://www.jetbrains.com/) +- [The Solana Foundation](https://solana.com/) + +## Credits Many thanks to the following core technologies & people who have contributed to this package: -- [Mot](https://github.com/motdotla) -- [dotenv](https://github.com/motdotla/dotenv) +- [Mot](https://github.com/motdotla) & [dotenv](https://github.com/motdotla/dotenv) - [Chris Breuer](https://github.com/chrisbbreuer) - [All Contributors](../../contributors) -## 📄 License +## License The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information. Made with 💙 + + +[npm-version-src]: https://img.shields.io/npm/v/bun-plugin-env?style=flat-square +[npm-version-href]: https://npmjs.com/package/bun-plugin-env + +[npm-downloads-src]: https://img.shields.io/npm/dm/bun-plugin-env?style=flat-square +[npm-downloads-href]: https://npmjs.com/package/bun-plugin-env + +[github-actions-src]: https://img.shields.io/github/actions/workflow/status/stacksjs/bun-plugin-env/ci.yml?style=flat-square&branch=main +[github-actions-href]: https://github.com/stacksjs/bun-plugin-env/actions?query=workflow%3Aci