Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
🚚 move to monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Shiru committed Sep 14, 2023
0 parents commit a5f4aa1
Show file tree
Hide file tree
Showing 1,011 changed files with 37,902 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .c8rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"exclude": ["**/dist/**", "**/tests/**"],
"reporter": ["html", "lcov", "text-summary"]
}
8 changes: 8 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://raw.githubusercontent.com/changesets/changesets/main/packages/config/schema.json",
"changelog": "@vangware/configs/changelog.cjs",
"commit": false,
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch"
}
52 changes: 52 additions & 0 deletions .github/workflows/document.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Document

on:
push:
branches:
- main

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Use Checkout 4
uses: actions/checkout@v4

- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20

- name: Use pnpm 8
uses: pnpm/action-setup@v2
with:
version: 8
run_install: true

- name: Compile code
run: pnpm compile

- name: Generate Documentation
run: pnpm document

- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./docs
name: github-pages
retention-days: 1
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
39 changes: 39 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test

on:
push:
branches:
- main

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Use Checkout 4
uses: actions/checkout@v4

- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20

- name: Use pnpm 8
uses: pnpm/action-setup@v2
with:
version: 8
run_install: true

- name: Compile
run: pnpm compile

- name: Install again (to fix binary links) # Horrible, but tbh IDK how to make this better for now
run: pnpm install

- name: Run tests
run: pnpm test

- name: Use Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
167 changes: 167 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
### Linux ######################################################################

*~

# Temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### macOS ######################################################################

# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Node #######################################################################

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

### Windows ####################################################################

# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

### Project ####################################################################

# Distribution directory
dist/

# Documentation
docs/

# Lock files
bun.lockb
package-lock.json
pnpm-lock.yaml
yarn.lock
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
message="πŸ”– version bump to v%s."
8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"stylelint.vscode-stylelint",
"wayou.vscode-todo-highlight"
]
}
15 changes: 15 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"editor.codeActionsOnSave": {
"source.organizeImports": true,
"source.fixAll.eslint": true
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"typescript.tsdk": "./node_modules/typescript/lib"
}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<img id="logo" alt="@vangware/ansi" src="./logo.svg" height="128" />

πŸ“š Vangware libraries monorepo
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from "@vangware/configs/eslint.config.js";
Binary file added favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
66 changes: 66 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"name": "@vangware/libraries",
"description": "πŸ“š Vangware libraries monorepo",
"version": "1.0.0",
"author": {
"email": "hello@vangware.com",
"name": "Vangware",
"url": "https://vangware.com"
},
"bugs": {
"email": "issues@vangware.com",
"url": "https://github.com/vangware/libraries/issues"
},
"dependencies": {
"@vangware/configs": "workspace:*",
"@vangware/test": "workspace:*"
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@types/node": "^20.6.0",
"c8": "^8.0.1",
"cpy-cli": "^5.0.0",
"eslint": "^8.49.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.3",
"rimraf": "^5.0.1",
"simple-git-hooks": "^2.9.0",
"stylelint": "^15.10.3",
"tsx": "^3.12.9",
"typedoc": "^0.25.1",
"typescript": "^5.2.2"
},
"engines": {
"node": ">=20",
"pnpm": ">=8"
},
"homepage": "https://libraries.vangware.com",
"keywords": [
"libraries",
"typescript",
"vangware"
],
"license": "MIT",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/vangware/libraries.git"
},
"scripts": {
"changesets": "changesets",
"changesets:version": "changesets version",
"clean": "pnpm --recursive --parallel clean",
"compile": "pnpm --recursive compile",
"document": "typedoc && cpy --flat ./packages/**/*.svg docs/modules && cpy ./{favicon.ico,logo.svg} docs",
"git:pre-push": "pnpm --recursive git:pre-push",
"lint": "pnpm --recursive lint",
"prepare": "simple-git-hooks",
"publish": "pnpm --recursive publish",
"test": "c8 pnpm --recursive test"
},
"sideEffects": false,
"simple-git-hooks": {
"pre-push": "pnpm git:pre-push"
},
"type": "module"
}
Loading

0 comments on commit a5f4aa1

Please sign in to comment.