Skip to content

Instantly share code, notes, and snippets.

View stfsy's full-sized avatar
🎯
Focusing

Stefan Pfaffel stfsy

🎯
Focusing
View GitHub Profile
@stfsy
stfsy / folder-structure.txt
Last active January 5, 2022 17:28
Folder structure for GitOps approach to global deployments
deployments/
├── france/
│ ├── checkout/
│ │ └── application.yml
│ ├── dashboard/
│ │ └── application.yml
│ └── login/
│ └── application.yml
├── germany/
│ ├── checkout/
@stfsy
stfsy / dashboard-frontend.yml
Last active January 5, 2022 17:46
Description of a deployment artifact with release version, team members and links to documentation
version: 1
application:
name: portfolio-dashboard
group: example.com
version: 1.2.3
repository: libs-releases
team:
product-owner: [email protected]
developers:
- [email protected]
@stfsy
stfsy / dependabot.yml
Created December 29, 2021 14:57
Dependabot configuration for Github Actions. Will check NPM dependencies and GitHub actions versions weekly and send a PR for outdated ones.
version: 2
updates:
- package-ecosystem: npm
assignees:
- stfsy
directory: /
schedule:
interval: weekly
versioning-strategy: increase
@stfsy
stfsy / stale.yml
Created December 29, 2021 14:34
GitHub Action that closes stale issues and pull requests
name: 'stale issues and prs'
on:
schedule:
- cron: '0 0 * * *'
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
@stfsy
stfsy / .versionrc.json
Created December 29, 2021 14:18
Configfile for npm standard-version
{
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
@stfsy
stfsy / main.js
Created December 29, 2021 13:50
A simple opinionated entrypoint for Vue.js with TailwindCSS
import { createApp } from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import './styles.css'
createApp(App).use(router).mount('#app')
@stfsy
stfsy / styles.css
Created December 29, 2021 13:43
A simple css file for Tailwind CSS
@tailwind base;
@tailwind components;
@tailwind utilities;
@stfsy
stfsy / tailwind.config.js
Created December 29, 2021 12:34
A simple opinionated tailwind.config
module.exports = {
purge: {
content: [
"./public/index.html",
"./src/**/*.{vue,js,ts,jsx,tsx}",
]
},
variants: {
extend: {
backdropBlur: ['hover'],
@stfsy
stfsy / postcss.config.js
Last active December 29, 2021 13:56
A simple opinionated postcss config for tailwindcss
module.exports = {
plugins: {
'@tailwindcss/postcss7-compat': {},
autoprefixer: {},
cssnano: {}
},
}
@stfsy
stfsy / package.json
Last active December 29, 2021 14:21
Package.json for Vue.js with additional script for headless testing
{
"name": "my-vue-app",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"test:unit": "vue-cli-service test:unit",
"test:e2e": "vue-cli-service test:e2e",
"test:e2e-headless": "vue-cli-service test:e2e --headless",