merge #41

Merged
Sirherobrine23 merged 7 commits from main into stable 2021-02-16 17:46:35 +00:00
21 changed files with 60 additions and 1311 deletions
Showing only changes of commit a46f03e97a - Show all commits

View File

@ -29,7 +29,8 @@
"coenraads.bracket-pair-colorizer", "coenraads.bracket-pair-colorizer",
"aaron-bond.better-comments", "aaron-bond.better-comments",
"msjsdiag.debugger-for-chrome", "msjsdiag.debugger-for-chrome",
"smcpeak.default-keys-windows" "smcpeak.default-keys-windows",
"vscode-icons-team.vscode-icons"
], ],
// Use 'forwardPorts' to make a list of ports inside the container available locally. // Use 'forwardPorts' to make a list of ports inside the container available locally.

View File

@ -4,6 +4,8 @@ on:
push: push:
branches: branches:
- main - main
schedule:
- cron: "0 13 * */1 *"
paths-ignore: paths-ignore:
- 'README.md' - 'README.md'
- '.github/*/**' - '.github/*/**'

View File

@ -1,8 +1,5 @@
# This file is a template, and might need editing before it works on your project.
default: default:
image: node:latest image: node:current-buster
# Validate that the repository contains a package.json and extract a few values from it.
before_script: before_script:
- | - |
if [[ ! -f package.json ]]; then if [[ ! -f package.json ]]; then
@ -13,48 +10,10 @@ default:
- NPM_PACKAGE_NAME=$(node -p "require('./package.json').name") - NPM_PACKAGE_NAME=$(node -p "require('./package.json').name")
- NPM_PACKAGE_VERSION=$(node -p "require('./package.json').version") - NPM_PACKAGE_VERSION=$(node -p "require('./package.json').version")
# Validate that the package name is properly scoped to the project's root namespace. test_package:
# For more information, see https://docs.gitlab.com/ee/user/packages/npm_registry/#package-naming-convention stage: test
validate_package_scope:
stage: build
script: script:
- | - |
if [[ ! $NPM_PACKAGE_NAME =~ ^@$CI_PROJECT_ROOT_NAMESPACE/ ]]; then npm install -f
echo "Invalid package scope! Packages must be scoped in the root namespace of the project, e.g. \"@${CI_PROJECT_ROOT_NAMESPACE}/${CI_PROJECT_NAME}\"" npm update
echo 'For more information, see https://docs.gitlab.com/ee/user/packages/npm_registry/#package-naming-convention' npm run test
exit 1
fi
# If no .npmrc if included in the repo, generate a temporary one to use during the publish step
# that is configured to publish to GitLab's NPM registry
create_npmrc:
stage: build
script:
- |
if [[ ! -f .npmrc ]]; then
echo 'No .npmrc found! Creating one now. Please review the following link for more information: https://docs.gitlab.com/ee/user/packages/npm_registry/index.html#authenticating-with-a-ci-job-token'
{
echo '@${CI_PROJECT_ROOT_NAMESPACE}:registry=${CI_SERVER_PROTOCOL}://${CI_SERVER_HOST}:${CI_SERVER_PORT}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/'
echo '//${CI_SERVER_HOST}:${CI_SERVER_PORT}/api/v4/packages/npm/:_authToken=${CI_JOB_TOKEN}'
echo '//${CI_SERVER_HOST}:${CI_SERVER_PORT}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}'
} >> .npmrc
fi
artifacts:
paths:
- .npmrc
# Publish the package. If the version in package.json has not yet been published, it will be
# published to GitLab's NPM registry. If the version already exists, the publish command
# will fail and the existing package will not be updated.
publish_package:
stage: deploy
script:
- |
{
npm publish &&
echo "Successfully published version ${NPM_PACKAGE_VERSION} of ${NPM_PACKAGE_NAME} to GitLab's NPM registry: ${CI_PROJECT_URL}/-/packages"
} || {
echo "No new version of ${NPM_PACKAGE_NAME} published. This is most likely because version ${NPM_PACKAGE_VERSION} already exists in GitLab's NPM registry."
}

12
package-lock.json generated
View File

@ -2328,9 +2328,9 @@
} }
}, },
"node_modules/systeminformation": { "node_modules/systeminformation": {
"version": "5.3.0", "version": "5.3.1",
"resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.3.0.tgz", "resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.3.1.tgz",
"integrity": "sha512-pNvwU7Oray7xNkS+WOH+FE8Aks8BQ2sV8zwUiZQq97C3Co7oJVnOrgvAJwSwRlIdQTIBbe+0HZLaRrY8pdXsVw==", "integrity": "sha512-1xG+6xfKXSowtZsAlUp6jVaV0q+5rq9yUN+ds6Hp2dR3/EdEU5r0v74qi5YF8BCGZfmddiOwDNB0h7ge70fmYA==",
"os": [ "os": [
"darwin", "darwin",
"linux", "linux",
@ -4472,9 +4472,9 @@
} }
}, },
"systeminformation": { "systeminformation": {
"version": "5.3.0", "version": "5.3.1",
"resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.3.0.tgz", "resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.3.1.tgz",
"integrity": "sha512-pNvwU7Oray7xNkS+WOH+FE8Aks8BQ2sV8zwUiZQq97C3Co7oJVnOrgvAJwSwRlIdQTIBbe+0HZLaRrY8pdXsVw==" "integrity": "sha512-1xG+6xfKXSowtZsAlUp6jVaV0q+5rq9yUN+ds6Hp2dR3/EdEU5r0v74qi5YF8BCGZfmddiOwDNB0h7ge70fmYA=="
}, },
"table": { "table": {
"version": "6.0.7", "version": "6.0.7",