build: update dependencies and configuration files

This commit is contained in:
Karl-Philipp Wulfert
2019-11-18 15:13:43 +01:00
parent 1796e88227
commit 8a9ab5c041
5 changed files with 876 additions and 596 deletions

29
.gitignore vendored
View File

@@ -20,7 +20,7 @@ coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
@@ -29,14 +29,14 @@ bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (http://nodejs.org/api/addons.html)
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Typescript v1 declaration files
# TypeScript v1 declaration files
typings/
# Optional npm cache directory
@@ -57,6 +57,29 @@ typings/
# dotenv environment variables file
.env
# parcel-bundler cache (https://parceljs.org/)
.cache
# next.js build output
.next
# nuxt.js build output
.nuxt
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
#DynamoDB Local files
.dynamodb/
########## end of https://github.com/github/gitignore/blob/master/Node.gitignore
# ignore ide files
.idea
.vscode

View File

@@ -1,9 +1,8 @@
image: node:lts-alpine
image: registry.gitlab.com/openstapps/projectmanagement/node
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- lib
- node_modules
before_script:
@@ -18,11 +17,24 @@ build:
stage: build
script:
- npm run build
artifacts:
paths:
- lib
audit:
stage: test
allow_failure: true
except:
- schedules
script:
- npm audit
stage: test
scheduled-audit:
only:
- schedules
script:
- npm audit
stage: test
pages:
stage: deploy
@@ -34,3 +46,18 @@ pages:
artifacts:
paths:
- public
package:
dependencies:
- build
tags:
- secrecy
stage: publish
script:
- echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
- npm publish
only:
- /^v[0-9]+.[0-9]+.[0-9]+$/
artifacts:
paths:
- lib

View File

@@ -1,10 +1,9 @@
# Ignore all files/folders by default
# See https://stackoverflow.com/a/29932318
/*
# Execept this files/folders
!docs
# Except these files/folders
!lib
lib/tsconfig.tsbuildinfo
!LICENSE
!package.json
!package-lock.json

1367
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -7,31 +7,37 @@
"url": "git@gitlab.com:openstapps/gitlab-api.git"
},
"scripts": {
"build": "npm run tslint && npm run compile && npm run documentation",
"build": "npm run tslint && npm run compile",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m 'docs: update changelog'",
"compile": "tsc && sed -i '1i#!/usr/bin/env node' lib/cli.js",
"documentation": "typedoc --includeDeclarations --excludeExternals --mode modules --out docs src",
"compile": "rimraf lib && tsc && prepend lib/cli.js '#!/usr/bin/env node\n'",
"documentation": "typedoc --includeDeclarations --mode modules --out docs --readme README.md --listInvalidSymbolLinks src",
"prepublishOnly": "npm ci && npm run build",
"tslint": "tslint 'src/**/*.ts'",
"check-configuration": "openstapps-configuration"
"tslint": "tslint -p tsconfig.json -c tslint.json 'src/**/*.ts'",
"check-configuration": "openstapps-configuration",
"postversion": "npm run changelog",
"preversion": "npm run prepublishOnly",
"push": "git push && git push origin \"v$npm_package_version\""
},
"author": "Karl-Philipp Wulfert <krlwlfrt@gmail.com>",
"license": "GPL-3.0-only",
"dependencies": {
"@openstapps/logger": "0.0.5",
"@types/request": "2.48.1",
"@types/request-promise-native": "1.0.15",
"commander": "2.19.0",
"@openstapps/logger": "0.4.0",
"@types/node": "10.17.5",
"@types/request": "2.48.3",
"@types/request-promise-native": "1.0.17",
"commander": "4.0.1",
"request": "2.88.0",
"request-promise-native": "1.0.7"
"request-promise-native": "1.0.8"
},
"devDependencies": {
"@openstapps/configuration": "0.6.0",
"@types/node": "10.12.27",
"conventional-changelog-cli": "=2.0.12",
"ts-node": "8.0.2",
"typedoc": "0.14.2",
"typescript": "3.3.3333"
"@openstapps/configuration": "0.21.1",
"conventional-changelog-cli": "2.0.28",
"prepend-file-cli": "1.0.6",
"rimraf": "3.0.0",
"ts-node": "8.5.2",
"tslint": "5.20.1",
"typedoc": "0.15.2",
"typescript": "3.7.2"
},
"main": "lib/api.js",
"types": "lib/api.d.ts",