lint: quote paths, ignore changelog
This commit is contained in:
parent
5ef5735c35
commit
a58862e540
|
@ -1,6 +1,7 @@
|
||||||
version: "2"
|
version: "2"
|
||||||
|
|
||||||
exclude_patterns:
|
exclude_patterns:
|
||||||
|
- CHANGELOG.md
|
||||||
- docs/api/
|
- docs/api/
|
||||||
- src/migration/
|
- src/migration/
|
||||||
- vendor/
|
- vendor/
|
||||||
|
|
24
README.md
24
README.md
|
@ -1,6 +1,7 @@
|
||||||
# Rollup Template
|
# Rollup Template
|
||||||
|
|
||||||
This project contains the base configuration and build scripts for most of my Typescript/Rollup projects.
|
This project contains the base configuration and build scripts for most of
|
||||||
|
my Typescript projects, along with scripts to createe a new project.
|
||||||
|
|
||||||
[![Pipeline status](https://img.shields.io/gitlab/pipeline/ssube/rollup-template.svg?gitlab_url=https%3A%2F%2Fgit.apextoaster.com&logo=gitlab)](https://git.apextoaster.com/ssube/rollup-template/commits/master)
|
[![Pipeline status](https://img.shields.io/gitlab/pipeline/ssube/rollup-template.svg?gitlab_url=https%3A%2F%2Fgit.apextoaster.com&logo=gitlab)](https://git.apextoaster.com/ssube/rollup-template/commits/master)
|
||||||
[![MIT license](https://img.shields.io/github/license/ssube/rollup-template.svg)](https://github.com/ssube/rollup-template/blob/master/LICENSE.md)
|
[![MIT license](https://img.shields.io/github/license/ssube/rollup-template.svg)](https://github.com/ssube/rollup-template/blob/master/LICENSE.md)
|
||||||
|
@ -73,7 +74,8 @@ Once your project is set up:
|
||||||
- commit
|
- commit
|
||||||
- `make git-push`
|
- `make git-push`
|
||||||
|
|
||||||
The `git-push` target pushes to Github first, to avoid conflicts with changes from bots and other contributors.
|
The `git-push` target pushes to Github first, to avoid conflicts with changes from bots and
|
||||||
|
other contributors.
|
||||||
|
|
||||||
### To Release
|
### To Release
|
||||||
|
|
||||||
|
@ -82,18 +84,18 @@ When your project is ready to release:
|
||||||
- `make release-dry` to make sure your changelog and options look right
|
- `make release-dry` to make sure your changelog and options look right
|
||||||
- `make release`
|
- `make release`
|
||||||
|
|
||||||
Additional options can be passed with the `RELEASE_OPTS` variable. Frequently-used options include `--release-as minor`
|
Additional options can be passed with the `RELEASE_OPTS` variable. Frequently-used options
|
||||||
and `--prerelease`.
|
include `--release-as minor` and `--prerelease`.
|
||||||
|
|
||||||
## External Services
|
## External Services
|
||||||
|
|
||||||
This template works with or expects a few external services, namely a Gitlab CI server (self-hosted or using
|
This template works with or expects a few external services, namely a Gitlab CI server
|
||||||
Gitlab.com).
|
(self-hosted or using Gitlab.com).
|
||||||
|
|
||||||
### Maintenance Bots
|
### Maintenance Bots
|
||||||
|
|
||||||
Good tests and clever bots can eliminate the most painful parts of project maintenance. This repository is
|
Good tests and clever bots can eliminate the most painful parts of project maintenance. This
|
||||||
configured to work with:
|
repository is configured to work with:
|
||||||
|
|
||||||
- [CodeCov](https://codecov.io/)
|
- [CodeCov](https://codecov.io/)
|
||||||
- [Code Climate](https://codeclimate.com/)
|
- [Code Climate](https://codeclimate.com/)
|
||||||
|
@ -102,11 +104,13 @@ configured to work with:
|
||||||
- [Snyk](https://snyk.io/)
|
- [Snyk](https://snyk.io/)
|
||||||
- [SonarCloud](https://sonarcloud.io/)
|
- [SonarCloud](https://sonarcloud.io/)
|
||||||
|
|
||||||
None of these are required, but Renovate and Snyk can be very helpful when dependencies release a security patch.
|
None of these are required, but Renovate and Snyk can be very helpful when dependencies release
|
||||||
|
a security patch (and even more so when they decline).
|
||||||
|
|
||||||
## External Secrets
|
## External Secrets
|
||||||
|
|
||||||
This template expects a few secrets to exist in the environment, including tokens for the [external services](#external-services).
|
This template expects a few secrets to exist in the environment, including tokens for
|
||||||
|
the [external services](#external-services).
|
||||||
|
|
||||||
| Name | Description |
|
| Name | Description |
|
||||||
| ------------------- | ----------------------------------------------------- |
|
| ------------------- | ----------------------------------------------------- |
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"node_modules/chai/index.js": [
|
"node_modules/chai/index.js": [
|
||||||
"expect"
|
"expect",
|
||||||
|
"use"
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
PROJECT="${ROOT_PATH}"
|
PROJECT="${ROOT_PATH}"
|
||||||
PARENT="$(dirname "${PROJECT}")"
|
PARENT="$(dirname "${PROJECT}")"
|
||||||
PROJECT_PATH="$(basename ${PARENT})/$(basename ${PROJECT})"
|
PROJECT_PATH="$(basename "${PARENT}")/$(basename "${PROJECT}")"
|
||||||
|
|
||||||
echo "${PROJECT_PATH}"
|
echo "${PROJECT_PATH}"
|
|
@ -8,10 +8,10 @@ IMAGE_FULL="${IMAGE_NAME}:${IMAGE_TAG}"
|
||||||
|
|
||||||
echo "Building image: ${IMAGE_FULL}"
|
echo "Building image: ${IMAGE_FULL}"
|
||||||
|
|
||||||
docker build -t ${IMAGE_FULL} .
|
docker build -t "${IMAGE_FULL}" .
|
||||||
|
|
||||||
if [[ "${IMAGE_PUSH}" == "--push" ]];
|
if [[ "${IMAGE_PUSH}" == "--push" ]];
|
||||||
then
|
then
|
||||||
echo "Pushing image: ${IMAGE_FULL}"
|
echo "Pushing image: ${IMAGE_FULL}"
|
||||||
docker push ${IMAGE_FULL}
|
docker push "${IMAGE_FULL}"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -9,8 +9,8 @@ pushd ../"${PROJECT_NAME}"
|
||||||
|
|
||||||
echo "Setting up repository..."
|
echo "Setting up repository..."
|
||||||
git init
|
git init
|
||||||
git remote add github git@github.com:${PROJECT_PATH}/${PROJECT_NAME}.git
|
git remote add github "git@github.com:${PROJECT_PATH}/${PROJECT_NAME}.git"
|
||||||
git remote add gitlab git@git.apextoaster.com:${PROJECT_PATH}/${PROJECT_NAME}.git
|
git remote add gitlab "git@git.apextoaster.com:${PROJECT_PATH}/${PROJECT_NAME}.git"
|
||||||
|
|
||||||
echo "Setting up template..."
|
echo "Setting up template..."
|
||||||
popd
|
popd
|
||||||
|
|
Loading…
Reference in New Issue