Skip to content

Commit f052795

Browse files
committed
Initial commit
0 parents  commit f052795

File tree

16 files changed

+214
-0
lines changed

16 files changed

+214
-0
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/artifacts/
2+
/dist/
3+
/node_modules/

.eslintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
extends: [
3+
'@packula',
4+
],
5+
}

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
on:
3+
push:
4+
pull_request:
5+
schedule:
6+
- cron: 0 14 * * 0 # Sunday 2PM UTC = Monday 12AM AEST
7+
jobs:
8+
test:
9+
name: Node.js stable
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Set up Node.js
15+
uses: actions/setup-node@v2
16+
with:
17+
node-version: '12'
18+
- name: Check Node.js version
19+
run: node -v
20+
- name: Install dependencies
21+
run: make node_modules
22+
- name: Make
23+
run: make ci
24+
- name: Publish coverage
25+
uses: codecov/codecov-action@v1
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish package
2+
on:
3+
push:
4+
tags:
5+
- '[0-9]+.[0-9]+.[0-9]+'
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
name: Publish package
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
- name: Set up Node.js
14+
uses: actions/setup-node@v2
15+
with:
16+
node-version: '12'
17+
registry-url: 'https://registry.npmjs.org'
18+
- name: Check Node.js version
19+
run: node -v
20+
- name: Install dependencies
21+
run: make node_modules
22+
- name: Make
23+
run: make ci
24+
- name: Set package version
25+
run: make set-package-version
26+
- name: Publish package
27+
if: success()
28+
run: npm publish --access public
29+
env:
30+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Publish release
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
name: Publish release
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
- name: Publish release
14+
uses: eloquent/github-release-action@v1
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/.makefiles/
2+
/artifacts/
3+
/dist/
4+
/node_modules/
5+
/yarn-error.log
6+
/yarn.lock

LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright © REPLACE_ME Erin Millard
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
JS_SOURCE_FILES += $(shell PATH="$(PATH)" git-find '*.ts')
2+
_JS_TEST_ASSETS := $(shell find test -type f -not -iname "*.ts" 2> /dev/null)
3+
4+
################################################################################
5+
6+
-include .makefiles/Makefile
7+
-include .makefiles/pkg/js/v1/Makefile
8+
-include .makefiles/pkg/js/v1/with-yarn.mk
9+
10+
.makefiles/%:
11+
@curl -sfL https://makefiles.dev/v1 | bash /dev/stdin "$@"
12+
13+
################################################################################
14+
15+
dist: rollup.config.js tsconfig.json node_modules $(JS_SOURCE_FILES)
16+
rollup --config rollup.config.js
17+
18+
@touch "$@"

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Packula template repo
2+
3+
<!-- Uncomment this section
4+
5+
[![Current version][badge-version-image]][badge-version-link]
6+
[![Bundle size][badge-bundle-image]][badge-bundle-link]
7+
[![Build status][badge-build-image]][badge-build-link]
8+
[![Test coverage][badge-coverage-image]][badge-coverage-link]
9+
10+
[badge-build-image]: https://img.shields.io/github/workflow/status/packula/GITHUB_REPO_NAME/CI?style=for-the-badge
11+
[badge-build-link]: https://github.com/packula/GITHUB_REPO_NAME/actions/workflows/ci.yml
12+
[badge-bundle-image]: https://img.shields.io/bundlephobia/minzip/@packula/GITHUB_REPO_NAME?style=for-the-badge
13+
[badge-bundle-link]: https://bundlephobia.com/result?p=@packula/GITHUB_REPO_NAME
14+
[badge-coverage-image]: https://img.shields.io/codecov/c/gh/packula/GITHUB_REPO_NAME?style=for-the-badge
15+
[badge-coverage-link]: https://codecov.io/gh/packula/GITHUB_REPO_NAME
16+
[badge-version-image]: https://img.shields.io/npm/v/@packula/GITHUB_REPO_NAME?label=%40packula%2FGITHUB_REPO_NAME&logo=npm&style=for-the-badge
17+
[badge-version-link]: https://npmjs.com/package/@packula/GITHUB_REPO_NAME
18+
19+
-->
20+
21+
This repository is a template for Packula TypeScript projects. After creating a
22+
repository from this template, follow these steps:
23+
24+
- Uncomment the badges in this `README.md` file
25+
- Replace the string `GITHUB_REPO_NAME` in all files with the actual repo name.
26+
- Search for `REPLACE_ME` in all files to find areas that need manual input.
27+
- On the settings page (https://github.com/packula/GITHUB_REPO_NAME/settings):
28+
- Disable the "Wikis" feature
29+
- Disable the "Projects" feature
30+
- Enable "Automatically delete head branches" under the "Merge button" section

0 commit comments

Comments
 (0)