Giter Club home page Giter Club logo

rules.mk's Introduction

rules.mk

๐Ÿ˜„ rules.mk

CircleCI License GitHub release CodeFactor Made by Manfred Touron

Usage

Install

  1. Copy rules.mk to your repo (wget https://raw.githubusercontent.com/moul/rules.mk/master/rules.mk)
  2. Configure your project variables and import rules.mk from your Makefile
    GOPKG =         moul.io/golang-repo-template  # optional
    GOBINS =        . ./cmd/secondary-app         # optional
    DOCKER_IMAGE =  moul/golang-repo-template     # optional
    NPM_PACKAGES =  .                             # optional
    
    include rules.mk                              # required
  3. Profit

Minimal config

include rules.mk

Update

  1. Run make bumpdeps
  2. Profit

Examples

See the ./test directory

make help at the root of this repo

General commands:
  bumpdeps
  generate
  test

make help in test/docker

General commands:
  build
  test

make help in test/go-binary

General commands:
  build
  bumpdeps
  fmt
  generate
  install
  lint
  release
  test
  tidy
  unittest
  verify

make help in test/go-binary-and-docker

General commands:
  build
  bumpdeps
  fmt
  generate
  install
  lint
  release
  test
  tidy
  unittest
  verify

make help in test/go-library

General commands:
  build
  bumpdeps
  fmt
  generate
  lint
  test
  tidy
  unittest
  verify

License

ยฉ 2019-2020 Manfred Touron - Apache-2.0 License

rules.mk's People

Contributors

dependabot[bot] avatar moul avatar moul-bot avatar renovate-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

azrod

rules.mk's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

circleci
.circleci/config.yml
  • moul 1.16.0
  • circleci/golang 1.15
  • circleci/golang 1.15
  • circleci/golang 1.15
  • circleci/golang 1.15
github-actions
.github/workflows/release.yml
  • codfish/semantic-release-action v1.9.0

  • Check this box to trigger a request for Renovate to run again on this repository

[META] Ideas ๐Ÿ’ก

General

  • top-level command aggregators: help, build, bumpdeps, fmt, generate, install, lint, release, test, tidy, unittest
  • self-update with make bumpdeps
  • generate AUTHORS file with make generate
  • _linguist-kept and _linguist-ignored helpers
  • print-% helper
  • support embedmd
  • create a new repoman repo and rewrite rules.mk in go with an easy-to-use CLI?
  • add --dry-run, --verbose
  • bot that runs various rules.mk commands on repos and open PRs

Go

  • go.unittest
  • go.lint (with golangci-lint)
  • go.release (with goreleaser)
  • go.checkdoc (with go doc)
  • go.coverfunc
  • go.tidy
  • go.build
  • go.bumpdeps (with go mod)
  • go.fmt (with goimports)
  • CI optimizations
  • support CompileDaemon

Node

  • npm.publish

Docker

  • docker.build

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.