Skip to content
Commits on Source (3)
stages:
- build
- test
- docs
- publish
- release
- pre_release
......@@ -9,31 +7,17 @@ stages:
before_script:
- npm install
build:
stage: build
script:
- npm run build
except:
variables:
- $GITLAB_USER_ID == $GIT_BOT_USER_ID
test:
stage: test
script:
- npm run test:unit
except:
variables:
- $GITLAB_USER_ID == $GIT_BOT_USER_ID
docs:
stage: docs
script:
- .\publishDocs.ps1 $GITLAB_TOKEN
- npm run build
- npm test
except:
refs:
- tags
variables:
- $GITLAB_USER_ID == $GIT_BOT_USER_ID
publish:
stage: publish
script:
......@@ -66,6 +50,3 @@ pre_release:
except:
- tags
- master
after_script:
- Cmd /C "rmdir /S /Q node_modules"
\ No newline at end of file
## ESLint Convention
Make the changes to the code and tests and then commit to your branch. Be sure to follow the commit message conventions.
Commit message summaries must follow this basic format:
```
Tag: Message (fixes #1234)
```
`Tag` should not be confused with git tag.
`Message` should not be confused with git commit message.
The `Tag` is one of the following:
* `Fix` - for a bug fix.
* `Update` - for a backwards-compatible enhancement.
* `Breaking` - for a backwards-incompatible enhancement.
* `Docs` - changes to documentation only.
* `Build` - changes to build process only.
* `New` - implemented a new feature.
* `Upgrade` - for a dependency upgrade.
The message summary should be a one-sentence description of the change. The issue number should be mentioned at the end. * The commit message should say "(fixes #1234)" at the end of the description if it closes out an existing issue (replace 1234 with the issue number). If the commit doesn't completely fix the issue, then use `(refs #1234)` instead of `(fixes #1234)`.
Here are some good commit message summary examples:
```
Build: Update Travis to only test Node 0.10 (refs #734)
Fix: Semi rule incorrectly flagging extra semicolon (fixes #840)
Upgrade: Esprima to 1.2, switch to using Esprima comment attachment (fixes #730)
```
The commit message format is important because these messages are used to create a changelog for each release. The tag and issue number help to create more consistent and useful changelogs.
Based on https://github.com/eslint/eslint.github.io/blob/master/docs/developer-guide/contributing.md#step-2-make-your-changes
[npm-image]: https://badge.fury.io/js/conventional-changelog-eslint.svg
[npm-url]: https://npmjs.org/package/conventional-changelog-eslint
[travis-image]: https://travis-ci.org/stevemao/conventional-changelog-eslint.svg?branch=master
[travis-url]: https://travis-ci.org/stevemao/conventional-changelog-eslint
[daviddm-image]: https://david-dm.org/stevemao/conventional-changelog-eslint.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/stevemao/conventional-changelog-eslint
[coveralls-image]: https://coveralls.io/repos/stevemao/conventional-changelog-eslint/badge.svg
[coveralls-url]: https://coveralls.io/r/stevemao/conventional-changelog-eslint
\ No newline at end of file
# vue-template
This template includes:
* Vue.js application template
* Linting using TSLint and the Vue builders
* Automatic releases using semantic-release (ESLint Code Convention) and Gitlab CI / CD
* Automatic Unit tests using Mocha/Chai and the Vue cli
* Automatic documentation publishing using Gitlab CI / CD and a self written script which puts the docs in the docs folder to the wiki
* For public registry: Publishing of packages, for usage add the following lines to package.json, add the npm publish module in .releaserc and provide a valid NPM token:
```
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/",
"tag": "latest"
}
```
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run serve
```
### Compiles and minifies for production
```
npm run build
```
### Run your tests
```
npm run test
```
### Lints and fixes files
```
npm run lint
```
### Run your unit tests
```
npm run test:unit
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
### Commit convention
See [Commit convention](ESLintConvention) for the commit convention.
\ No newline at end of file
This diff is collapsed.
{
"name": "@coscine/projectview",
"version": "1.5.0",
"version": "1.5.1",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
......@@ -9,15 +9,15 @@
"test:unit": "vue-cli-service test:unit"
},
"dependencies": {
"@coscine/api-connection": "^1.8.0",
"@coscine/app-util": "^1.2.0",
"@coscine/api-connection": "^1.9.0",
"@coscine/app-util": "^1.2.2",
"@itcenter-layout/bootstrap": "^1.5.5",
"@itcenter-layout/masterpage": "^1.2.9",
"@types/jquery": "^3.3.32",
"bootstrap-vue": "^2.4.1",
"@types/jquery": "^3.3.33",
"bootstrap-vue": "^2.5.0",
"jquery": "^3.4.1",
"vue": "^2.6.11",
"vue-i18n": "^8.15.3",
"vue-i18n": "^8.15.4",
"vue-runtime-helpers": "^1.1.2"
},
"devDependencies": {
......@@ -25,18 +25,18 @@
"@semantic-release/git": "^9.0.0",
"@semantic-release/gitlab": "^6.0.2",
"@semantic-release/npm": "^7.0.3",
"@semantic-release/release-notes-generator": "^9.0.0",
"@semantic-release/release-notes-generator": "^9.0.1",
"@types/chai": "^4.2.9",
"@types/mocha": "^7.0.1",
"@vue/cli-plugin-babel": "^4.2.2",
"@vue/cli-plugin-typescript": "^4.2.2",
"@vue/cli-plugin-unit-mocha": "^4.2.2",
"@vue/cli-service": "^4.2.2",
"@vue/cli-plugin-babel": "^4.2.3",
"@vue/cli-plugin-typescript": "^4.2.3",
"@vue/cli-plugin-unit-mocha": "^4.2.3",
"@vue/cli-service": "^4.2.3",
"@vue/test-utils": "1.0.0-beta.31",
"chai": "^4.2.0",
"typescript": "^3.7.5",
"typescript": "^3.8.2",
"vue-template-compiler": "^2.6.11",
"semantic-release": "^17.0.3",
"semantic-release": "^17.0.4",
"@hutson/semantic-delivery-gitlab": "^9.1.0"
},
"directories": {
......
param(
$token
)
$remoteUrl = git config --get remote.origin.url
$remoteUrl = $remoteUrl.replace("git@", "")
$remoteUrl = $remoteUrl -replace "https(.*?)@",""
$remoteUrl = $remoteUrl.replace(":", "/")
$remoteUrl = $remoteUrl.replace(".git", ".wiki.git")
$temporaryFolderName = "publishDocsTempFolder"
git clone "https://gitlab-ci-token:$($token)@$($remoteUrl)" $temporaryFolderName
cd $temporaryFolderName
Remove-Item *
cp -r ../docs/* ./
git add .
git commit -m "Docs: Documentation Update"
git push
\ No newline at end of file