-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(prettier): update config and reformat codebase
- Loading branch information
1 parent
b3ef14f
commit 855609b
Showing
115 changed files
with
3,058 additions
and
2,816 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,60 @@ | ||
name: Publish Dev Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'packages/commandkit/**' | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'packages/commandkit/**' | ||
|
||
jobs: | ||
release: | ||
name: 🚀 Publish Dev Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
|
||
- name: 📚 Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: 🟢 Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 18 | ||
registry-url: https://registry.npmjs.org | ||
|
||
- name: 🍳 Prepare | ||
run: pnpm install | ||
|
||
- name: 🔢 Update Version | ||
run: | | ||
cd packages/commandkit | ||
node -e "const pkg = require('./package.json'); \ | ||
const newVersion = pkg.version + '-dev.' + new Date().toISOString().replace(/[:\-T]/g, '').substr(0,14); \ | ||
pkg.version = newVersion; \ | ||
require('fs').writeFileSync('./package.json', JSON.stringify(pkg, null, 2));" | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
|
||
- name: 🚚 Publish | ||
run: pnpm run deploy:package-dev | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} | ||
|
||
- name: 🚫 Deprecate Previous Dev Version | ||
run: | | ||
PACKAGE_NAME=$(node -e "console.log(require('./packages/commandkit/package.json').name);") | ||
ALL_VERSIONS=$(npm info $PACKAGE_NAME versions -json) | ||
VERSION_TO_DEPRECATE=$(echo $ALL_VERSIONS | node -e " | ||
const versions = JSON.parse(require('fs').readFileSync('/dev/stdin', 'utf-8')); | ||
const devVersions = versions.filter(v => v.includes('-dev.')); | ||
const versionToDeprecate = devVersions[devVersions.length - 2]; | ||
console.log(versionToDeprecate); | ||
") | ||
echo Deprecating version $VERSION_TO_DEPRECATE | ||
npm deprecate $PACKAGE_NAME@$VERSION_TO_DEPRECATE "Deprecated dev version." | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} | ||
release: | ||
name: 🚀 Publish Dev Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
|
||
- name: 📚 Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: 🟢 Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 18 | ||
registry-url: https://registry.npmjs.org | ||
|
||
- name: 🍳 Prepare | ||
run: pnpm install | ||
|
||
- name: 🔢 Update Version | ||
run: | | ||
cd packages/commandkit | ||
node -e "const pkg = require('./package.json'); \ | ||
const newVersion = pkg.version + '-dev.' + new Date().toISOString().replace(/[:\-T]/g, '').substr(0,14); \ | ||
pkg.version = newVersion; \ | ||
require('fs').writeFileSync('./package.json', JSON.stringify(pkg, null, 2));" | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
|
||
- name: 🚚 Publish | ||
run: pnpm run deploy:package-dev | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} | ||
|
||
- name: 🚫 Deprecate Previous Dev Version | ||
run: | | ||
PACKAGE_NAME=$(node -e "console.log(require('./packages/commandkit/package.json').name);") | ||
ALL_VERSIONS=$(npm info $PACKAGE_NAME versions -json) | ||
VERSION_TO_DEPRECATE=$(echo $ALL_VERSIONS | node -e " | ||
const versions = JSON.parse(require('fs').readFileSync('/dev/stdin', 'utf-8')); | ||
const devVersions = versions.filter(v => v.includes('-dev.')); | ||
const versionToDeprecate = devVersions[devVersions.length - 2]; | ||
console.log(versionToDeprecate); | ||
") | ||
echo Deprecating version $VERSION_TO_DEPRECATE | ||
npm deprecate $PACKAGE_NAME@$VERSION_TO_DEPRECATE "Deprecated dev version." | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
name: Lint | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
push: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
build: | ||
name: 🔍 Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
build: | ||
name: 🔍 Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
|
||
- name: 📚 Checkout | ||
uses: actions/checkout@v3 | ||
- name: 📚 Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: 🟢 Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
registry-url: https://registry.npmjs.org | ||
- name: 🟢 Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
registry-url: https://registry.npmjs.org | ||
|
||
- name: 🍳 Prepare | ||
run: pnpm install | ||
- name: 🍳 Prepare | ||
run: pnpm install | ||
|
||
- name: ✨ Lint | ||
run: pnpm lint | ||
- name: ✨ Lint | ||
run: pnpm lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
name: Publish to NPM | ||
|
||
on: | ||
release: | ||
types: [created] | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
release: | ||
name: 🚀 Publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
release: | ||
name: 🚀 Publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
|
||
- name: 📚 Checkout | ||
uses: actions/checkout@v3 | ||
- name: 📚 Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: 🟢 Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
registry-url: https://registry.npmjs.org | ||
- name: 🟢 Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
registry-url: https://registry.npmjs.org | ||
|
||
- name: 🍳 Prepare | ||
run: pnpm install | ||
- name: 🍳 Prepare | ||
run: pnpm install | ||
|
||
- name: 🚚 Publish | ||
run: pnpm run deploy:package | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} | ||
- name: 🚚 Publish | ||
run: pnpm run deploy:package | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,9 @@ pnpm-debug.log* | |
|
||
.env | ||
.env.production | ||
.env.* | ||
|
||
.gitignore | ||
.npmignore | ||
|
||
turbo-lint.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"printWidth": 100, | ||
"tabWidth": 4, | ||
"singleQuote": true, | ||
"arrowParens": "always" | ||
"printWidth": 80, | ||
"tabWidth": 2, | ||
"singleQuote": true, | ||
"arrowParens": "always" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
const withNextra = require('nextra')({ | ||
theme: 'nextra-theme-docs', | ||
themeConfig: './theme.config.tsx', | ||
theme: 'nextra-theme-docs', | ||
themeConfig: './theme.config.tsx', | ||
}); | ||
|
||
module.exports = withNextra(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
{ | ||
"name": "commandkit-docs", | ||
"version": "0.0.0", | ||
"private": true, | ||
"scripts": { | ||
"dev": "next dev", | ||
"build": "next build", | ||
"start": "next start" | ||
}, | ||
"dependencies": { | ||
"@types/node": "^20.11.6", | ||
"@types/react": "^18.2.48", | ||
"@types/react-dom": "^18.2.18", | ||
"autoprefixer": "^10.4.17", | ||
"next": "^14.1.0", | ||
"nextra": "^2.13.2", | ||
"nextra-theme-docs": "^2.13.2", | ||
"postcss": "^8.4.33", | ||
"react": "18.2.0", | ||
"react-dom": "18.2.0", | ||
"tailwindcss": "^3.4.1", | ||
"typescript": "^5.3.3" | ||
} | ||
"name": "commandkit-docs", | ||
"version": "0.0.0", | ||
"private": true, | ||
"scripts": { | ||
"dev": "next dev", | ||
"build": "next build", | ||
"start": "next start" | ||
}, | ||
"dependencies": { | ||
"@types/node": "^20.11.6", | ||
"@types/react": "^18.2.48", | ||
"@types/react-dom": "^18.2.18", | ||
"autoprefixer": "^10.4.17", | ||
"next": "^14.1.0", | ||
"nextra": "^2.13.2", | ||
"nextra-theme-docs": "^2.13.2", | ||
"postcss": "^8.4.33", | ||
"react": "18.2.0", | ||
"react-dom": "18.2.0", | ||
"tailwindcss": "^3.4.1", | ||
"typescript": "^5.3.3" | ||
} | ||
} |
Oops, something went wrong.