Skip to content

Commit

Permalink
feat: setup changesets, changed default project name, setup cd
Browse files Browse the repository at this point in the history
  • Loading branch information
byt3h3ad committed Jul 31, 2024
1 parent 725ff4a commit 32c5fb1
Show file tree
Hide file tree
Showing 10 changed files with 3,117 additions and 2,035 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/fluffy-cheetahs-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"codekon": minor
---

changed default project name
6 changes: 4 additions & 2 deletions .github/workflows/beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish to npm beta
on:
push:
branches:
- 'beta'
- "beta"
jobs:
build:
runs-on: ubuntu-22.04
Expand All @@ -22,6 +22,8 @@ jobs:
- name: install dependencies
run: pnpm install
- name: build and publish
run: pnpm pub:beta
uses: changesets/action@v1
with:
publish: pnpm pub:beta
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<div align="center">

[![install size][packagephobia-image]][packagephobia-url] [![NPM version][npm-image]][npm-url]
[![install size][packagephobia-image]][packagephobia-url] [![NPM version][npm-image]][npm-url]

</div>

Expand Down Expand Up @@ -95,6 +95,7 @@ pnpx codekon my-app react-js-app
- [ ] Add screenshots and video.
- [x] Fix `pnpm dlx codekon`.
- [x] Remove `execa` and test with `child-process`. Reduced install size by 55%. Brought node support to `>=18` from `>= 20.5.0`.
- [x] Setup [changesets](https://github.com/changesets/changesets).

[packagephobia-image]: https://packagephobia.com/badge?p=codekon
[packagephobia-url]: https://packagephobia.com/result?p=codekon
Expand Down
1 change: 0 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export default [
"error",
{ alphabetize: { order: "asc", caseInsensitive: true } },
],
// "import/no-unused-modules": ["error", {"unusedExports": true}]
},
},
];
14 changes: 13 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,18 @@
"pub:beta": "pnpm build && npm publish --tag beta",
"pub": "pnpm build && npm publish"
},
"keywords": ["gdsc", "reactjs", "nodejs", "typescript", "template", "cli", "codekon", "express", "mongodb", "postgresql"],
"keywords": [
"gdsc",
"reactjs",
"nodejs",
"typescript",
"template",
"cli",
"codekon",
"express",
"mongodb",
"postgresql"
],
"repository": {
"type": "git",
"url": "git+https://github.com/gdsc-nits-org/codekon.git"
Expand All @@ -39,6 +50,7 @@
"prompts": "^2.4.2"
},
"devDependencies": {
"@changesets/cli": "^2.27.7",
"@eslint/js": "^9.4.0",
"@types/node": "^20.14.2",
"@types/prompts": "^2.4.9",
Expand Down
Loading

0 comments on commit 32c5fb1

Please sign in to comment.