Skip to content

Commit 3d703c5

Browse files
roblourensconnor4312
authored andcommitted
Tweaks to the gulpfile and nightly build (#85)
- Include README in the package - Adds message to README for nightly - Tweak grammar
1 parent e281e84 commit 3d703c5

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

README.nightly.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
> **This is a nightly version of this extension for early feedback and testing. This extension works best with [VS Code Insiders](https://code.visualstudio.com/insiders)**

gulpfile.js

+13-3
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,14 @@ gulp.task('compile:ts', () =>
108108
.pipe(gulp.dest(buildSrcDir)),
109109
);
110110

111+
async function fixNightlyReadme() {
112+
const readmePath = `${buildDir}/README.md`;
113+
const readmeText = await readFile(readmePath);
114+
const readmeNightlyText = await readFile(`README.nightly.md`);
115+
116+
await writeFile(readmePath, readmeNightlyText + '\n' + readmeText);
117+
}
118+
111119
gulp.task('compile:dynamic', async () => {
112120
const [contributions, strings] = await Promise.all([
113121
runBuildScript('generate-contributions'),
@@ -119,8 +127,10 @@ gulp.task('compile:dynamic', async () => {
119127
if (isNightly) {
120128
const date = new Date();
121129
const monthMinutes = (date.getDate() - 1) * 24 * 60 + date.getHours() * 60 + date.getMinutes();
122-
packageJson.displayName += ' Nightly';
130+
packageJson.displayName += ' (Nightly)';
123131
packageJson.version = `${date.getFullYear()}.${date.getMonth() + 1}.${monthMinutes}`;
132+
133+
await fixNightlyReadme();
124134
}
125135

126136
Object.assign(packageJson.contributes, contributions);
@@ -134,7 +144,7 @@ gulp.task('compile:dynamic', async () => {
134144
gulp.task('compile:static', () =>
135145
merge(
136146
gulp.src(['LICENSE', 'package.json']).pipe(replaceNamespace()),
137-
gulp.src('resources/**/*', { base: '.' }),
147+
gulp.src(['resources/**/*', 'README.md'], { base: '.' }),
138148
).pipe(gulp.dest(buildDir)),
139149
);
140150

@@ -188,7 +198,7 @@ gulp.task('package:webpack-bundle', async () => {
188198
/** Copy the extension static files */
189199
gulp.task('package:copy-extension-files', () =>
190200
merge(
191-
gulp.src([`${buildDir}/LICENSE`, `${buildDir}/package.json`, `${buildDir}/resources/**/*`], {
201+
gulp.src([`${buildDir}/LICENSE`, `${buildDir}/package.json`, `${buildDir}/resources/**/*`, `${buildDir}/README.md`], {
192202
base: buildDir,
193203
}),
194204
gulp.src(`${buildDir}/src/**/*.sh`).pipe(rename({ dirname: 'src' })),

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "js-debug",
3-
"displayName": "VSCode JavaScript Debugger",
3+
"displayName": "VS Code JavaScript Debugger",
44
"version": "0.9.0",
55
"publisher": "ms-vscode",
66
"author": {
77
"name": "Microsoft Corporation"
88
},
9-
"description": "An extension for debugger Node.js programs and Chrome.",
9+
"description": "An extension for debugging Node.js programs and Chrome.",
1010
"license": "MIT",
1111
"engines": {
1212
"vscode": "^1.30.0-insider",

0 commit comments

Comments
 (0)