Skip to content

Commit

Permalink
Merge branch 'release/v3.1.0' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
manuth committed Oct 12, 2020
2 parents 04e0d63 + 6ae8973 commit db0da43
Show file tree
Hide file tree
Showing 232 changed files with 17,750 additions and 12,000 deletions.
131 changes: 69 additions & 62 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,69 +3,76 @@ kind: pipeline
type: docker

steps:
- name: install
image: node
commands:
- npm install
- name: lint
image: node
commands:
- npm run lint
- name: build
image: node
commands:
- npm run build
- name: test
image: manuth/vscode-test-runner
commands:
- xvfb-run npm run test
- name: build extension
image: node
commands:
- npx vsce package
when:
event:
- tag
- name: release notes
image: ubuntu
commands:
- cp -f CHANGELOG.md ReleaseNotes.md
- sed -i '0,/## .* v[0-9.]*/{ /## .* v[0-9.]*/P ; d } ; /## .* v[0-9.]*/,$d' ReleaseNotes.md
- cp -f ReleaseNotes.md ReleaseTitle.md
- sed -i '2,$d ; s/## \(.* v[0-9.]*\)/\1/' ReleaseTitle.md
when:
event:
- tag
- name: publish
image: plugins/github-release
settings:
api_key:
from_secret: github_token
files:
- "*.vsix"
title: ReleaseTitle.md
note: ReleaseNotes.md
when:
event:
- tag
- name: publish extension
image: node
environment:
ACCESS_TOKEN:
from_secret: azure_token
commands:
- npx vsce publish --pat $ACCESS_TOKEN
when:
event:
- tag
- name: install
image: node
commands:
- npm install --unsafe-perm
- name: build
image: node
commands:
- npm run build-debug
- name: lint
image: node
commands:
- npm run lint
- name: test
image: manuth/vscode-test-runner
commands:
- xvfb-run npm run test -- --disable-gpu --headless
- name: publish extension
image: node:lts
environment:
ACCESS_TOKEN:
from_secret: azure_token
commands:
- npx vsce publish --no-yarn --pat $ACCESS_TOKEN
when:
event:
- tag
ref:
- refs/tags/v[0-9].[0-9].[0-9]
- name: prepare release
image: node:lts
commands:
- npx vsce --no-yarn package
- npm install escape-string-regexp
- node -e "console.log(require('escape-string-regexp')('${DRONE_TAG}'))" > TagName.txt
when:
event:
- tag
- name: prepare release notes
image: ubuntu
commands:
- export TagName=$$(cat TagName.txt)
- export TagHeading="/## \(.* \($${TagName}\|[$${TagName}]\)\)\$/"
- export HeadingPattern='/## \(.* \(v[0-9.]*\|\[.*\]\)\)/'
- cp -f CHANGELOG.md ReleaseNotes.md
- sed -i "0,$${TagHeading}{ $${TagHeading}P ; d } ; $${HeadingPattern},\$d" ReleaseNotes.md
- cp -f ReleaseNotes.md ReleaseTitle.md
- sed -i "2,\$d ; s$${HeadingPattern}\\\\1/" ReleaseTitle.md
when:
event:
- tag
- name: publish release
image: plugins/github-release
commands: []
settings:
api_key:
from_secret: github_publish_token
files:
- "*.tgz"
title: ReleaseTitle.md
note: ReleaseNotes.md
when:
event:
- tag

trigger:
ref:
- refs/heads/master
- refs/heads/dev
- refs/pull/**
- refs/tags/**
- refs/heads/**
- refs/pull/**
- refs/tags/**
event:
- push
- pull_request
- tag
- push
- pull_request
- tag
20 changes: 20 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const { join } = require("path");

module.exports = {
extends: [
"plugin:@manuth/typescript/recommended-requiring-type-checking"
],
env: {
node: true,
es6: true
},
parserOptions: {
project: [
join(__dirname, "tsconfig.json"),
join(__dirname, "tsconfig.eslint.json"),
join(__dirname, "tsconfig.webpack.json"),
join(__dirname, "src", "test", "tsconfig.json"),
join(__dirname, "src", "tests", "tsconfig.json")
]
}
};
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2

updates:
- directory: /
package-ecosystem: npm
target-branch: dev
schedule:
timezone: 05:00 UTC
53 changes: 51 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
# Build results
[Ll]ib/

# Test-Files
[Ss]rc/test/single-folder/.vscode

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
Expand All @@ -19,11 +26,12 @@ lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# 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/)
Expand All @@ -42,12 +50,21 @@ jspm_packages/
# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

Expand All @@ -62,9 +79,41 @@ typings/

# dotenv environment variables file
.env
.env.test

# next.js build output
# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Visual Studio Code Experimental Instance
.vscode-test/

# Local Chromium Instance
.local-chromium
107 changes: 0 additions & 107 deletions .gulp/Settings.ts

This file was deleted.

17 changes: 0 additions & 17 deletions .gulp/TaskFunction.ts

This file was deleted.

Loading

0 comments on commit db0da43

Please sign in to comment.