A simple Git strategy for teams
Use git branching. Branching is the fundamental point of git and what separates it from most other source control systems. The ease of branching and then picking or merging those branches is what makes git, git.
| // A simple Deno Oak web server + router that parses a greeting from the URL | |
| // and returns it as the response body | |
| // Import the required modules | |
| import { Application, Router } from "https://deno.land/x/oak/mod.ts"; | |
| // Create a new instance of the Oak router | |
| const router = new Router(); | |
| // Define our greeting route e.g. /say/{greeting} |
| [build] | |
| # The build output folder | |
| publish = "_site" | |
| # The build command | |
| command = "eleventy" | |
| [build.environment] | |
| # Environment variables are set here | |
| NODE_VERSION = "16.18.0" |
| 16.18.0 |
| const lodash = require("lodash"); | |
| module.exports = function(eleventyConfig) { | |
| eleventyConfig.addFilter("include", (arr, path, value) => { | |
| value = lodash.deburr(value).toLowerCase(); | |
| return arr.filter((item) => { | |
| let pathValue = lodash.get(item, path); |
| name: Deploy | |
| on: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest |