1
0
Fork 0

lint: quote paths, ignore changelog

This commit is contained in:
ssube 2019-09-23 08:13:44 -05:00
parent 5ef5735c35
commit a58862e540
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
6 changed files with 22 additions and 16 deletions

View File

@ -1,6 +1,7 @@
version: "2"
exclude_patterns:
- CHANGELOG.md
- docs/api/
- src/migration/
- vendor/

View File

@ -1,6 +1,7 @@
# 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)
[![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
- `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
@ -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`
Additional options can be passed with the `RELEASE_OPTS` variable. Frequently-used options include `--release-as minor`
and `--prerelease`.
Additional options can be passed with the `RELEASE_OPTS` variable. Frequently-used options
include `--release-as minor` and `--prerelease`.
## External Services
This template works with or expects a few external services, namely a Gitlab CI server (self-hosted or using
Gitlab.com).
This template works with or expects a few external services, namely a Gitlab CI server
(self-hosted or using Gitlab.com).
### Maintenance Bots
Good tests and clever bots can eliminate the most painful parts of project maintenance. This repository is
configured to work with:
Good tests and clever bots can eliminate the most painful parts of project maintenance. This
repository is configured to work with:
- [CodeCov](https://codecov.io/)
- [Code Climate](https://codeclimate.com/)
@ -102,11 +104,13 @@ configured to work with:
- [Snyk](https://snyk.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
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 |
| ------------------- | ----------------------------------------------------- |

View File

@ -1,5 +1,6 @@
{
"node_modules/chai/index.js": [
"expect"
"expect",
"use"
]
}

View File

@ -2,6 +2,6 @@
PROJECT="${ROOT_PATH}"
PARENT="$(dirname "${PROJECT}")"
PROJECT_PATH="$(basename ${PARENT})/$(basename ${PROJECT})"
PROJECT_PATH="$(basename "${PARENT}")/$(basename "${PROJECT}")"
echo "${PROJECT_PATH}"

View File

@ -8,10 +8,10 @@ IMAGE_FULL="${IMAGE_NAME}:${IMAGE_TAG}"
echo "Building image: ${IMAGE_FULL}"
docker build -t ${IMAGE_FULL} .
docker build -t "${IMAGE_FULL}" .
if [[ "${IMAGE_PUSH}" == "--push" ]];
then
echo "Pushing image: ${IMAGE_FULL}"
docker push ${IMAGE_FULL}
docker push "${IMAGE_FULL}"
fi

View File

@ -9,8 +9,8 @@ pushd ../"${PROJECT_NAME}"
echo "Setting up repository..."
git init
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 github "git@github.com:${PROJECT_PATH}/${PROJECT_NAME}.git"
git remote add gitlab "git@git.apextoaster.com:${PROJECT_PATH}/${PROJECT_NAME}.git"
echo "Setting up template..."
popd