Skip to content

Commit c202868

Browse files
committed
feat: initial release
1 parent 046a092 commit c202868

File tree

12 files changed

+732
-2
lines changed

12 files changed

+732
-2
lines changed

.gitignore

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
2+
# Created by https://www.gitignore.io/api/macos,windows,linux,node
3+
4+
### Linux ###
5+
*~
6+
7+
# temporary files which can be created if a process still has a handle open of a deleted file
8+
.fuse_hidden*
9+
10+
# KDE directory preferences
11+
.directory
12+
13+
# Linux trash folder which might appear on any partition or disk
14+
.Trash-*
15+
16+
# .nfs files are created when an open file is removed but is still being accessed
17+
.nfs*
18+
19+
### macOS ###
20+
*.DS_Store
21+
.AppleDouble
22+
.LSOverride
23+
24+
# Icon must end with two \r
25+
Icon
26+
27+
# Thumbnails
28+
._*
29+
30+
# Files that might appear in the root of a volume
31+
.DocumentRevisions-V100
32+
.fseventsd
33+
.Spotlight-V100
34+
.TemporaryItems
35+
.Trashes
36+
.VolumeIcon.icns
37+
.com.apple.timemachine.donotpresent
38+
39+
# Directories potentially created on remote AFP share
40+
.AppleDB
41+
.AppleDesktop
42+
Network Trash Folder
43+
Temporary Items
44+
.apdisk
45+
46+
### Node ###
47+
# Logs
48+
logs
49+
*.log
50+
npm-debug.log*
51+
yarn-debug.log*
52+
yarn-error.log*
53+
54+
# Runtime data
55+
pids
56+
*.pid
57+
*.seed
58+
*.pid.lock
59+
60+
# Directory for instrumented libs generated by jscoverage/JSCover
61+
lib-cov
62+
63+
# Coverage directory used by tools like istanbul
64+
coverage
65+
66+
# nyc test coverage
67+
.nyc_output
68+
69+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
70+
.grunt
71+
72+
# Bower dependency directory (https://bower.io/)
73+
bower_components
74+
75+
# node-waf configuration
76+
.lock-wscript
77+
78+
# Compiled binary addons (http://nodejs.org/api/addons.html)
79+
build/Release
80+
81+
# Dependency directories
82+
node_modules/
83+
jspm_packages/
84+
85+
# Typescript v1 declaration files
86+
typings/
87+
88+
# Optional npm cache directory
89+
.npm
90+
91+
# Optional eslint cache
92+
.eslintcache
93+
94+
# Optional REPL history
95+
.node_repl_history
96+
97+
# Output of 'npm pack'
98+
*.tgz
99+
100+
# Yarn Integrity file
101+
.yarn-integrity
102+
103+
# dotenv environment variables file
104+
.env
105+
106+
107+
### Windows ###
108+
# Windows thumbnail cache files
109+
Thumbs.db
110+
ehthumbs.db
111+
ehthumbs_vista.db
112+
113+
# Folder config file
114+
Desktop.ini
115+
116+
# Recycle Bin used on file shares
117+
$RECYCLE.BIN/
118+
119+
# Windows Installer files
120+
*.cab
121+
*.msi
122+
*.msm
123+
*.msp
124+
125+
# Windows shortcuts
126+
*.lnk
127+
128+
# End of https://www.gitignore.io/api/macos,windows,linux,node
129+
130+
package-lock.json
131+
yarn.lock

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

.travis.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
notifications:
2+
email: false
3+
4+
language: node_js
5+
node_js:
6+
- 9
7+
- 8
8+
9+
services:
10+
- docker
11+
12+
addons:
13+
apt:
14+
packages:
15+
# See https://github.com/atom/ci
16+
- libsecret-1-dev
17+
18+
# Trigger a push build on master and greenkeeper branches + PRs build on every branches
19+
# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147)
20+
branches:
21+
only:
22+
- master
23+
- /^greenkeeper.*$/
24+
25+
install:
26+
# Retry install on fail to avoid failing a build on network/disk/external errors
27+
- travis_retry npm install
28+
# See https://github.com/atom/ci
29+
- curl -s -O https://raw.githubusercontent.com/atom/ci/master/build-package.sh
30+
- chmod u+x build-package.sh
31+
- ./build-package.sh
32+
# Add apm to the PATH
33+
- export PATH=$PATH:~/atom/usr/bin
34+
35+
script:
36+
- npm run test
37+
38+
after_success:
39+
- npm run codecov
40+
- npm run semantic-release

.yarnrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--install.no-lockfile true

LICENSE

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

README.md

Lines changed: 69 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,69 @@
1-
# gitlab-config
2-
:fox_face: Semantic-release shareable config for GitLab
1+
# @semantic-release/gitlab-config
2+
3+
[Semantic-release](https://github.com/semantic-release/semantic-release) shareable config for [GitLab](https://gitlab.com).
4+
5+
[![Travis](https://img.shields.io/travis/semantic-release/gitlab-config.svg)](https://travis-ci.org/semantic-release/gitlab-config)
6+
[![Codecov](https://img.shields.io/codecov/c/github/semantic-release/gitlab-config.svg)](https://codecov.io/gh/semantic-release/gitlab-config)
7+
[![Greenkeeper badge](https://badges.greenkeeper.io/semantic-release/gitlab-config.svg)](https://greenkeeper.io/)
8+
9+
## Usage
10+
11+
### Local installation
12+
13+
```bash
14+
$ npm install --save-dev semantic-release @semantic-release/gitlab-config
15+
```
16+
17+
In `package.json`:
18+
19+
```json
20+
{
21+
"release": {
22+
"extends": "@semantic-release/gitlab-config"
23+
}
24+
}
25+
```
26+
27+
### Global installation
28+
29+
```bash
30+
$ npm install -g semantic-release @semantic-release/gitlab-config
31+
$ semantic-release -e @semantic-release/gitlab-config
32+
```
33+
34+
## Configuration
35+
36+
### GitLab authentication
37+
38+
The GitLab authentication configuration is **required** and can be set via [environment variables](#environment-variables).
39+
40+
See [GitLab authentication](https://github.com/semantic-release/gitlab#gitlab-authentication).
41+
42+
### Npm registry authentication
43+
44+
The npm authentication configuration is **required** and can be set via [environment variables](#environment-variables).
45+
46+
See [Npm registry authentication](https://github.com/semantic-release/npm#npm-registry-authentication)
47+
48+
### Environment variables
49+
50+
| Variable | Description |
51+
|------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|
52+
| `GL_TOKEN` or `GITLAB_TOKEN` | **Required.** The token used to authenticate with GitLab repository. |
53+
| `NPM_TOKEN` | **Required.** Npm token created via [npm token create](https://docs.npmjs.com/getting-started/working_with_tokens#how-to-create-new-tokens) |
54+
55+
### Additional options
56+
57+
This shareable config uses the [`@semantic-release/npm`](https://github.com/semantic-release/npm) and [`@semantic-release/gitlab`](https://github.com/semantic-release/gitlab) plugins. See the documentation of each plugins for additional options.
58+
Options can be set in the Semantic-release configuration.
59+
60+
For example to set a custom GitLab URL:
61+
62+
```json
63+
{
64+
"release": {
65+
"extends": "@semantic-release/gitlab-config",
66+
"gitlabUrl": "https://custom.gitlab.com"
67+
}
68+
}
69+
```

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
verifyConditions: ['@semantic-release/npm', '@semantic-release/gitlab'],
3+
getLastRelease: '@semantic-release/npm',
4+
publish: ['@semantic-release/npm', '@semantic-release/gitlab'],
5+
};

package.json

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
{
2+
"name": "@semantic-release/gitlab-config",
3+
"description": "Semantic-release shareable config for GitLab",
4+
"version": "0.0.0-development",
5+
"author": "Pierre Vanduynslager (https://github.com/pvdlg)",
6+
"bugs": {
7+
"url": "https://github.com/semantic-release/gitlab-config/issues"
8+
},
9+
"config": {
10+
"commitizen": {
11+
"path": "cz-conventional-changelog"
12+
}
13+
},
14+
"contributors": [
15+
"Stephan Bönnemann <stephan@boennemann.me> (http://boennemann.me)",
16+
"Gregor Martynus (https://twitter.com/gr2m)"
17+
],
18+
"dependencies": {
19+
"@semantic-release/gitlab": "^1.0.0",
20+
"@semantic-release/npm": "^2.4.0"
21+
},
22+
"devDependencies": {
23+
"ava": "^0.24.0",
24+
"codecov": "^3.0.0",
25+
"commitizen": "^2.9.6",
26+
"cz-conventional-changelog": "^2.0.0",
27+
"delay": "^2.0.0",
28+
"dockerode": "^2.5.3",
29+
"eslint-config-prettier": "^2.3.0",
30+
"eslint-plugin-prettier": "^2.3.0",
31+
"execa": "^0.8.0",
32+
"fs-extra": "^5.0.0",
33+
"get-stream": "^3.0.0",
34+
"got": "^8.0.1",
35+
"mockserver-client": "^5.3.0",
36+
"nyc": "^11.1.0",
37+
"p-retry": "^1.0.0",
38+
"prettier": "~1.9.2",
39+
"semantic-release": "^11.1.0",
40+
"sinon": "^4.1.2",
41+
"strip-ansi": "^4.0.0",
42+
"tempy": "^0.2.1",
43+
"xo": "^0.18.2"
44+
},
45+
"engines": {
46+
"node": ">=4"
47+
},
48+
"files": [
49+
"index.js"
50+
],
51+
"homepage": "https://github.com/semantic-release/gitlab-config#readme",
52+
"keywords": [
53+
"gitlab",
54+
"conventional-changelog",
55+
"release",
56+
"semantic-release",
57+
"semantic-release-config",
58+
"version"
59+
],
60+
"license": "MIT",
61+
"main": "index.js",
62+
"nyc": {
63+
"include": [
64+
"index.js"
65+
],
66+
"reporter": [
67+
"json",
68+
"text",
69+
"html"
70+
],
71+
"all": true
72+
},
73+
"peerDependencies": {
74+
"semantic-release": ">=12.0.0"
75+
},
76+
"prettier": {
77+
"printWidth": 120,
78+
"singleQuote": true,
79+
"bracketSpacing": false,
80+
"trailingComma": "es5"
81+
},
82+
"publishConfig": {
83+
"access": "public"
84+
},
85+
"repository": {
86+
"type": "git",
87+
"url": "https://github.com/semantic-release/gitlab-config.git"
88+
},
89+
"scripts": {
90+
"cm": "git-cz",
91+
"codecov": "codecov -f coverage/coverage-final.json",
92+
"lint": "xo",
93+
"pretest": "npm run lint",
94+
"semantic-release": "semantic-release",
95+
"test": "nyc ava -v"
96+
},
97+
"xo": {
98+
"extends": [
99+
"prettier"
100+
],
101+
"plugins": [
102+
"prettier"
103+
],
104+
"rules": {
105+
"prettier/prettier": 2
106+
}
107+
}
108+
}

0 commit comments

Comments
 (0)