Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ghalactic-repo-manager[bot] authored Aug 24, 2024
0 parents commit d70c3e4
Show file tree
Hide file tree
Showing 24 changed files with 21,847 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/** -diff linguist-generated=true
7 changes: 7 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"description": "DO NOT EDIT - This file is managed by ghalactic/repos.",
"extends": ["github>ghalactic/renovate"],
"postUpgradeTasks": {
"commands": ["make regenerate"]
}
}
14 changes: 14 additions & 0 deletions .github/workflows/ci-action-scheduled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# DO NOT EDIT - This file is managed by ghalactic/repos.
name: CI (scheduled)

on:
schedule:
- cron: 0 14 * * 0 # Sunday 2PM UTC = Monday 12AM AEST

jobs:
ci:
name: Ghalactic
uses: ghalactic/repos/.github/workflows/shared-ci-action.yml@main
secrets: inherit
with:
isScheduled: true
12 changes: 12 additions & 0 deletions .github/workflows/ci-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# DO NOT EDIT - This file is managed by ghalactic/repos.
name: CI

on:
push:
pull_request:

jobs:
ci:
name: Ghalactic
uses: ghalactic/repos/.github/workflows/shared-ci-action.yml@main
secrets: inherit
21 changes: 21 additions & 0 deletions .github/workflows/publish-release-manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# DO NOT EDIT - This file is managed by ghalactic/repos.
name: Publish release (manual)

on:
workflow_dispatch:
inputs:
tag:
description: The tag to publish
type: string
required: true

jobs:
publish:
name: Ghalactic
uses: ghalactic/repos/.github/workflows/shared-publish-release.yml@main
secrets: inherit
permissions:
contents: write
discussions: write
with:
tag: ${{ inputs.tag }}
18 changes: 18 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# DO NOT EDIT - This file is managed by ghalactic/repos.
name: Publish release

on:
push:
tags:
- "*"

jobs:
publish:
name: Ghalactic
uses: ghalactic/repos/.github/workflows/shared-publish-release.yml@main
secrets: inherit
permissions:
contents: write
discussions: write
with:
tag: ${{ github.ref_name }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.makefiles/
/artifacts/
/node_modules/
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.makefiles/
/artifacts/
/dist/
3 changes: 3 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"plugins": ["prettier-plugin-organize-imports"]
}
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Changelog

All notable changes to this project will be documented in this file. The format
is based on [Keep a Changelog], and this project adheres to [Semantic
Versioning].

[keep a changelog]: https://keepachangelog.com/
[semantic versioning]: https://semver.org/

## [v0.1.0] - TODO

[v0.1.0]: https://github.com/ghalactic/TODO/releases/v0.1.0

### Added

- Initial release.
18 changes: 18 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Copyright © 2024 Erin Millard

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
CI_VERIFY_GENERATED_FILES := true
GENERATED_FILES += dist/main.js
JS_TSC_TYPECHECK_SKIP_LIB := true

-include .makefiles/Makefile
-include .makefiles/pkg/js/v1/Makefile
-include .makefiles/pkg/js/v1/with-npm.mk
-include .makefiles/pkg/js/v1/with-tsc.mk

.makefiles/%:
@curl -sfL https://makefiles.dev/v1 | bash /dev/stdin "$@"

################################################################################

.PHONY: precommit
precommit:: verify-generated

################################################################################

dist/main.js: artifacts/link-dependencies.touch $(JS_SOURCE_FILES)
node script/build.js dist/main.js
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Action template

## Usage

1. Add a new repo to [ghalactic/repos] that uses this template.
2. Clone the new repo.
3. Search case-insensitively for instances of `TODO`, and replace.

[ghalactic/repos]: https://github.com/ghalactic/repos
14 changes: 14 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: TODO
description: TODO
author: Ghalactic
inputs:
token:
description: >-
The GitHub token to use when TODO.
default: ${{ github.token }}
branding:
icon: TODO
color: TODO
runs:
using: node20
main: dist/main.js
Loading

0 comments on commit d70c3e4

Please sign in to comment.