Skip to content

Commit

Permalink
improve(dev) ci & dx (#1009)
Browse files Browse the repository at this point in the history
  • Loading branch information
kellymears authored Jan 24, 2022
1 parent d03f711 commit 978ade2
Show file tree
Hide file tree
Showing 948 changed files with 996 additions and 22,126 deletions.
43 changes: 5 additions & 38 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,49 +1,16 @@
{
"name": "bud",
"codespaces": {},
"dockerComposeFile": ["../docker-compose.yml", "docker-compose.yml"],
"dockerComposeFile": ["../docker-compose.yml"],
"extensions": [
"arcanis.vscode-zipfs",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"ms-vscode-remote.remote-containers"
],
"forwardPorts": [4873],
"postCreateCommand": "cd /roots/bud && yarn && yarn @bud build",
"postCreateCommand": [
"yarn"
],
"remoteUser": "root",
"service": "bud",
"settings": {
"eslint.nodePath": "bud/dev/yarn/sdks/eslint",
"eslint.validate": ["javascript", "typescript"],
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"**/node_modules": false
},
"prettier.configPath": "bud/config/prettier.config.js",
"prettier.ignorePath": "bud/config/.prettierignore",
"prettier.prettierPath": "bud/dev/yarn/sdks/prettier/index.js",
"search.exclude": {
"bin": true,
"dev/yarn": true,
"coverage": true,
"verdaccio": true,
"**/pnp.*": true,
"**/node_modules": true,
"**/.budfiles/**/*": true
},
"typescript.tsdk": "bud/node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"files.associations": {
"*.ts": "typescript",
"*.tsx": "typescriptreact",
"*.mdx": "mdx",
"bud.config.json": "json5"
},
},
"workspaceFolder": "/roots"
"workspaceFolder": "/srv/bud"
}
5 changes: 0 additions & 5 deletions .devcontainer/docker-compose.yml

This file was deleted.

1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ cache/yarn
**/node_modules
sources/@roots/*/types
sources/@roots/*/lib
sources/@roots/*/node_modules/**/*
**/.budfiles
1 change: 0 additions & 1 deletion .env.example

This file was deleted.

6 changes: 1 addition & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ on:
required: true

jobs:
test:
uses: roots/bud/.github/workflows/test.yml@main

release:
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -43,7 +39,7 @@ jobs:
NPM_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
YARN_RC_FILENAME: '.yarnrc.yml'
run: |
yarn @bud : release --tag latest --version ${{ github.event.inputs.version }}
docker-compose run bash yarn @bud release --tag latest --version ${{ github.event.inputs.version }}
- name: Configure Git
run: |
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
pull_request:
branches:
- main
- next
workflow_dispatch:
workflow_call:

Expand Down Expand Up @@ -46,16 +45,20 @@ jobs:
- name: Setup
run: |
yarn @bud $ yarn install --immutable
docker compose run bud yarn install --immutable
- name: Lint
run: |
yarn @bud : lint --skypack --eslint
docker compose run bud yarn @bud lint --skypack --eslint
- name: Publish
run: |
yarn @bud : release --tag latest
docker compose run bud yarn @bud release --tag latest
- name: Test
- name: Unit
run: |
yarn @bud : test all --coverage --maxWorkers 50%
docker compose run bud yarn @bud test unit --coverage --maxWorkers 50%
- name: Integration
run: |
docker compose run bud yarn @bud test integration --coverage --maxWorkers 50%
38 changes: 8 additions & 30 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,46 +1,24 @@
# secret
.env

cache/yarn/**/*
cache/global/**/*
cache/install-state.gz
!cache/yarn/.gitkeep
!cache/verdaccio/.gitkeep

*.log
coverage
storage

**/*.log
**/lib
**/*.tsbuildinfo
**/profiles
**/.budfiles
coverage

# pacman
/dev/yarn/*
!/dev/yarn/patches
!/dev/yarn/releases
!/dev/yarn/plugins
!/dev/yarn/sdks
!/dev/yarn/versions
.pnp.*
/.npmrc
node_modules
**/.pnp.*
**/.yarn

# bud

.netlify
.docusaurus
.cache-loader

# verdaccio
/verdaccio
**/node_modules

# Sources
/sources/@roots/*/types

# Docs
/sources/docs/api
/sources/docs/build
/sources/docs/src/api/**/*.*
/sources/docs/.docusaurus

# Examples
/examples/*/dist
Expand Down
73 changes: 42 additions & 31 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,43 @@
{
"eslint.nodePath": "dev/yarn/sdks/eslint",
"eslint.validate": ["javascript", "typescript"],
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"**/node_modules": false
},
"prettier.configPath": "config/prettier.config.js",
"prettier.ignorePath": "config/.prettierignore",
"prettier.prettierPath": "dev/yarn/sdks/prettier/index.js",
"search.exclude": {
"dev/yarn": true,
"coverage": true,
"verdaccio": true,
"**/pnp.*": true,
"**/node_modules": true,
"**/.budfiles/**/*": true
},
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"files.associations": {
"*.ts": "typescript",
"*.tsx": "typescriptreact",
"*.mdx": "mdx",
"bud.config.json": "json5"
}
}
"debug.javascript.terminalOptions": {
"skipFiles": [
"<node_internals>/**",
"!**/node_modules/**",
"**/$KNOWN_TOOLS$/**"
]
},
"eslint.options": {
"overrideConfigFile": "config/eslint.config.js"
},
"eslint.nodePath": "dev/yarn/sdks/eslint",
"eslint.validate": ["javascript", "typescript"],
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"**/node_modules": false
},
"prettier.configPath": "dev/config/prettier.config.js",
"prettier.ignorePath": "dev/config/.prettierignore",
"prettier.prettierPath": "dev/yarn/sdks/prettier/index.js",
"search.exclude": {
"bin": true,
"dev/yarn": true,
"coverage": true,
"verdaccio": true,
"**/pnp.*": true,
"**/node_modules": true,
"**/.budfiles/**/*": true
},
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"files.associations": {
"*.ts": "typescript",
"*.tsx": "typescriptreact",
"*.mdx": "mdx",
"bud.config.json": "json5"
}
}
12 changes: 0 additions & 12 deletions .vscode/tasks.json

This file was deleted.

12 changes: 7 additions & 5 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
cacheFolder: cache/yarn
cacheFolder: storage/yarn/cache

enableTelemetry: false

defaultSemverRangePrefix: ''

enableMessageNames: false

globalFolder: cache/global
globalFolder: storage/yarn/global

installStatePath: cache/install-state.gz
installStatePath: storage/yarn/install-state.gz

nodeLinker: node-modules

npmAuthToken: ${NPM_AUTH_TOKEN-fallback}
npmAuthToken: ${NPM_AUTH_TOKEN:-fallback}

npmPublishAccess: public

Expand All @@ -25,7 +27,7 @@ plugins:
spec: '@yarnpkg/plugin-interactive-tools'
- path: dev/yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: '@yarnpkg/plugin-workspace-tools'
- sources/yarn-plugin-bud/bundles/@yarnpkg/plugin-bud.js
- sources/private/yarn-plugin-bud/bundles/@yarnpkg/plugin-bud.js

pnpDataPath: dev/yarn/pnp.data.json

Expand Down
Loading

0 comments on commit 978ade2

Please sign in to comment.