Skip to content

Commit

Permalink
feat: monorepo setup (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
KagChi authored Mar 22, 2022
1 parent 389af3b commit 7e488e0
Show file tree
Hide file tree
Showing 25 changed files with 1,243 additions and 35 deletions.
41 changes: 33 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
# dependencies
node_modules
.pnp
.pnp.js

# testing
coverage

# next.js
.next/
out/
build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local
.env

# turbo
.turbo

# Ignore a blackhole and the folder for development
node_modules/
.vs/
Expand All @@ -6,19 +39,11 @@ node_modules/
coverage/
docs/

# Yarn files
.yarn/install-state.gz
.yarn/build-state.yml

# Ignore tsc dist folder
dist/

# Ignore JavaScript files
**/*.js
**/*.mjs
**/*.js.map
**/*.d.ts
!src/**/*.d.ts
**/*.tsbuildinfo
!jest.config.ts

Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

![Kirishima Banner](https://cdn.discordapp.com/attachments/891939988088975372/931079377771450388/kirishima-ship-banner.png)

# @kirishima/template
# @kirishima/sources

</div>
A list of available resolve-able sources in plugin module

# Features
- lorem
- ipsum
</div>
38 changes: 21 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "kirishima-template",
"author": {
"name": "KagChi"
},
"version": "0.1.0",
"name": "@kirishima/sources",
"version": "0.0.0",
"private": true,
"workspaces": [
"packages/*"
],
"license": "GPL-3.0",
"repository": {
"url": "https://github.com/kirishima-ship/kirishima-template"
Expand All @@ -12,26 +13,29 @@
"url": "https://github.com/kirishima-ship/kirishima-template/issues"
},
"readme": "https://github.com/kirishima-ship/kirishima-template/blob/main/README.md",
"engines": {
"node": ">=14.0.0",
"npm": ">=7.0.0"
},
"scripts": {
"build": "rimraf dist && unbuild && tsc",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"format": "prettier --write {src,tests}/**/*.ts"
"build": "turbo run build",
"dev": "turbo run dev --parallel",
"lint": "turbo run lint",
"lint:fix": "turbo run lint:fix",
"format": "prettier --write \"**/*.{ts,tsx,md}\""
},
"devDependencies": {
"prettier": "^2.5.1",
"@babel/types": "7.17.0",
"@sapphire/eslint-config": "4.3.2",
"@sapphire/prettier-config": "1.4.1",
"@sapphire/ts-config": "3.3.3",
"eslint": "8.11.0",
"prettier": "2.6.0",
"rimraf": "3.0.2",
"typescript": "4.6.2",
"unbuild": "0.7.0"
"unbuild": "0.7.0",
"turbo": "latest"
},
"engines": {
"npm": ">=7.0.0",
"node": ">=14.0.0"
},
"prettier": "@sapphire/prettier-config"
}
"prettier": "@sapphire/prettier-config",
"packageManager": "[email protected]"
}
3 changes: 3 additions & 0 deletions packages/deezer/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@sapphire"
}
2 changes: 2 additions & 0 deletions packages/deezer/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
1 change: 1 addition & 0 deletions packages/deezer/.github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @KagChi
5 changes: 5 additions & 0 deletions packages/deezer/.github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [
"config:base"
]
}
27 changes: 27 additions & 0 deletions packages/deezer/.github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: build

on:
push:
branches:
- "**"
pull_request:
branches:
- "**"

jobs:
compile:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build
27 changes: 27 additions & 0 deletions packages/deezer/.github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: eslint-check

on:
push:
branches:
- "**"
pull_request:
branches:
- "**"

jobs:
eslint:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run lint
26 changes: 26 additions & 0 deletions packages/deezer/.github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on:
release:
types:
- published
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Installing Node.js v16
uses: actions/setup-node@v3
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org/'
- run: |
git fetch origin main
git checkout main
- name: Installing dependencies
run: yarn install --frozen-lockfile
- name: Compile source
run: yarn build
- name: Publish source
run: |
npm publish --access public || true
env:
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'
36 changes: 36 additions & 0 deletions packages/deezer/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Ignore a blackhole and the folder for development
node_modules/
.vs/
.idea/
*.iml
coverage/
docs/

# Yarn files
.yarn/install-state.gz
.yarn/build-state.yml

# Ignore tsc dist folder
dist/

# Ignore JavaScript files
**/*.js
**/*.mjs
**/*.js.map
**/*.d.ts
!src/**/*.d.ts
**/*.tsbuildinfo
!jest.config.ts

# Ignore heapsnapshot and log files
*.heapsnapshot
*.log

# Ignore package locks
package-lock.json

# Ignore the GH cli downloaded by workflows
gh

# Ignore the "wiki" folder so we can checkout the wiki inside the same folder
wiki/
Loading

0 comments on commit 7e488e0

Please sign in to comment.