add standard package template
This commit is contained in:
Родитель
bf3680ff09
Коммит
7ea1a0b854
|
@ -0,0 +1,40 @@
|
|||
trigger:
|
||||
tags:
|
||||
include: ['*']
|
||||
pr: none
|
||||
|
||||
resources:
|
||||
repositories:
|
||||
- repository: templates
|
||||
type: github
|
||||
name: microsoft/vscode-engineering
|
||||
ref: main
|
||||
endpoint: Monaco
|
||||
|
||||
parameters:
|
||||
- name: publishExtension
|
||||
displayName: 🚀 Publish Extension
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
- name: isNightly
|
||||
displayName: 🌃 Nightly
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
extends:
|
||||
template: azure-pipelines/extension/stable.yml@templates
|
||||
parameters:
|
||||
workingDirectory: dist
|
||||
publishExtension: ${{ parameters.publishExtension }}
|
||||
buildSteps:
|
||||
- script: npm install
|
||||
displayName: Install dependencies
|
||||
|
||||
- script: cd .. && npm run compile -- package:prepare --nightly
|
||||
displayName: Package Nightly
|
||||
condition: and(succeeded(), eq(parameters.isNightly, 'true'))
|
||||
|
||||
- script: cd .. && npm run compile -- package:prepare
|
||||
displayName: Package Stable
|
||||
condition: and(succeeded(), eq(parameters.isNightly, 'false'))
|
|
@ -373,7 +373,7 @@ gulp.task(
|
|||
|
||||
/** Clean, compile, bundle, and create vsix for the extension */
|
||||
gulp.task(
|
||||
'package',
|
||||
'package:prepare',
|
||||
gulp.series(
|
||||
'clean',
|
||||
'compile:ts',
|
||||
|
@ -387,6 +387,8 @@ gulp.task(
|
|||
),
|
||||
);
|
||||
|
||||
gulp.task('package', gulp.series('package:prepare', 'package:createVSIX'));
|
||||
|
||||
gulp.task(
|
||||
'flatSessionBundle',
|
||||
gulp.series(
|
||||
|
|
|
@ -107,7 +107,7 @@ describe('constructInspectorWSUri', () => {
|
|||
|
||||
it('fails with an useful error for invalid urls', () => {
|
||||
expect(() => constructInspectorWSUri(inspectUri, '.not_an_url', browserWsInspectUri)).to.throw(
|
||||
'Invalid URL: .not_an_url',
|
||||
/Invalid URL/,
|
||||
);
|
||||
expect(() => constructInspectorWSUri(inspectUri, null, browserWsInspectUri)).to.throw(
|
||||
`A valid url wasn't supplied: <null>`,
|
||||
|
|
Загрузка…
Ссылка в новой задаче