Skip to content

Commit e55b64a

Browse files
authored
Initial commit
0 parents  commit e55b64a

File tree

15 files changed

+948
-0
lines changed

15 files changed

+948
-0
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
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": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
concurrency: ${{ github.workflow }}-${{ github.ref }}
7+
8+
jobs:
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
permissions:
13+
id-token: write
14+
contents: write
15+
packages: write
16+
pull-requests: write
17+
issues: read
18+
steps:
19+
- name: checkout
20+
uses: actions/checkout@v4
21+
- name: bun
22+
uses: oven-sh/setup-bun@v2
23+
with:
24+
bun-version: latest
25+
- name: install
26+
run: bun install
27+
- name: build
28+
run: bun run build
29+
- name: changesets
30+
id: changesets
31+
uses: changesets/action@v1
32+
with:
33+
publish: bun changeset publish
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
NPM_CONFIG_PROVENANCE: true

.gitignore

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/macos,node
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=macos,node
3+
4+
### macOS ###
5+
# General
6+
.DS_Store
7+
.AppleDouble
8+
.LSOverride
9+
10+
# Icon must end with two \r
11+
Icon
12+
13+
14+
# Thumbnails
15+
._*
16+
17+
# Files that might appear in the root of a volume
18+
.DocumentRevisions-V100
19+
.fseventsd
20+
.Spotlight-V100
21+
.TemporaryItems
22+
.Trashes
23+
.VolumeIcon.icns
24+
.com.apple.timemachine.donotpresent
25+
26+
# Directories potentially created on remote AFP share
27+
.AppleDB
28+
.AppleDesktop
29+
Network Trash Folder
30+
Temporary Items
31+
.apdisk
32+
33+
### macOS Patch ###
34+
# iCloud generated files
35+
*.icloud
36+
37+
### Node ###
38+
# Logs
39+
logs
40+
*.log
41+
npm-debug.log*
42+
yarn-debug.log*
43+
yarn-error.log*
44+
lerna-debug.log*
45+
.pnpm-debug.log*
46+
47+
# Diagnostic reports (https://nodejs.org/api/report.html)
48+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
49+
50+
# Runtime data
51+
pids
52+
*.pid
53+
*.seed
54+
*.pid.lock
55+
56+
# Directory for instrumented libs generated by jscoverage/JSCover
57+
lib-cov
58+
59+
# Coverage directory used by tools like istanbul
60+
coverage
61+
*.lcov
62+
63+
# nyc test coverage
64+
.nyc_output
65+
66+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
67+
.grunt
68+
69+
# Bower dependency directory (https://bower.io/)
70+
bower_components
71+
72+
# node-waf configuration
73+
.lock-wscript
74+
75+
# Compiled binary addons (https://nodejs.org/api/addons.html)
76+
build/Release
77+
78+
# Dependency directories
79+
node_modules/
80+
jspm_packages/
81+
82+
# Snowpack dependency directory (https://snowpack.dev/)
83+
web_modules/
84+
85+
# TypeScript cache
86+
*.tsbuildinfo
87+
88+
# Optional npm cache directory
89+
.npm
90+
91+
# Optional eslint cache
92+
.eslintcache
93+
94+
# Optional stylelint cache
95+
.stylelintcache
96+
97+
# Microbundle cache
98+
.rpt2_cache/
99+
.rts2_cache_cjs/
100+
.rts2_cache_es/
101+
.rts2_cache_umd/
102+
103+
# Optional REPL history
104+
.node_repl_history
105+
106+
# Output of 'npm pack'
107+
*.tgz
108+
109+
# Yarn Integrity file
110+
.yarn-integrity
111+
112+
# dotenv environment variable files
113+
.env
114+
.env.development.local
115+
.env.test.local
116+
.env.production.local
117+
.env.local
118+
119+
# parcel-bundler cache (https://parceljs.org/)
120+
.cache
121+
.parcel-cache
122+
123+
# Next.js build output
124+
.next
125+
out
126+
127+
# Nuxt.js build / generate output
128+
.nuxt
129+
dist
130+
131+
# Gatsby files
132+
.cache/
133+
# Comment in the public line in if your project uses Gatsby and not Next.js
134+
# https://nextjs.org/blog/next-9-1#public-directory-support
135+
# public
136+
137+
# vuepress build output
138+
.vuepress/dist
139+
140+
# vuepress v2.x temp and cache directory
141+
.temp
142+
143+
# Docusaurus cache and generated files
144+
.docusaurus
145+
146+
# Serverless directories
147+
.serverless/
148+
149+
# FuseBox cache
150+
.fusebox/
151+
152+
# DynamoDB Local files
153+
.dynamodb/
154+
155+
# TernJS port file
156+
.tern-port
157+
158+
# Stores VSCode versions used for testing VSCode extensions
159+
.vscode-test
160+
161+
# yarn v2
162+
.yarn/cache
163+
.yarn/unplugged
164+
.yarn/build-state.yml
165+
.yarn/install-state.gz
166+
.pnp.*
167+
168+
### Node Patch ###
169+
# Serverless Webpack directories
170+
.webpack/
171+
172+
# Optional stylelint cache
173+
174+
# SvelteKit build / generate output
175+
.svelte-kit
176+
177+
# End of https://www.toptal.com/developers/gitignore/api/macos,node

CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# @rayriffy/quick-npm
2+
3+
## 0.0.2
4+
5+
### Patch Changes
6+
7+
- 4b9e803: documentation
8+
9+
## 0.0.1
10+
11+
### Patch Changes
12+
13+
- 950e744: initialize
14+
15+
## 0.0.5
16+
17+
### Patch Changes
18+
19+
- 288f9de: staged changes
20+
- eba35dd: staged changes
21+
22+
## 0.0.4
23+
24+
### Patch Changes
25+
26+
- cea5445: staged changes
27+
28+
## 0.0.3
29+
30+
### Patch Changes
31+
32+
- 083aa7c: staged changes
33+
34+
## 0.0.2
35+
36+
### Patch Changes
37+
38+
- 59a8cde: initialize

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Phumrapee Limpianchop
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# quick-npm
2+
3+
Quick start template to rapidly develop NPM packages with speed, and automations.
4+
5+
## Install
6+
7+
```bash
8+
bun add @rayriffy/quick-npm
9+
```
10+
11+
## Setting up
12+
13+
1. Allow GitHub Actions to create pull request
14+
2. Generate NPM authotization token into `NPM_TOKEN` secret
15+
16+
## Publishing
17+
18+
This repository has been configured to automatically publish NPM packages by [Changesets](https://github.com/changesets/changesets). Run `bun changeset` command to publishing your changes before commit.

biome.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
4+
"files": { "ignoreUnknown": false, "ignore": ["**/dist/**"] },
5+
"formatter": {
6+
"enabled": true,
7+
"useEditorconfig": true,
8+
"formatWithErrors": false,
9+
"indentStyle": "space",
10+
"indentWidth": 2,
11+
"lineEnding": "lf",
12+
"lineWidth": 80,
13+
"attributePosition": "auto",
14+
"bracketSpacing": true
15+
},
16+
"organizeImports": { "enabled": true },
17+
"linter": { "enabled": true, "rules": { "recommended": true } },
18+
"javascript": {
19+
"formatter": {
20+
"jsxQuoteStyle": "double",
21+
"quoteProperties": "asNeeded",
22+
"trailingCommas": "es5",
23+
"semicolons": "asNeeded",
24+
"arrowParentheses": "asNeeded",
25+
"bracketSameLine": false,
26+
"quoteStyle": "single",
27+
"attributePosition": "auto",
28+
"bracketSpacing": true
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)