Skip to content

Commit ed80d23

Browse files
squash!
1 parent 84a2a10 commit ed80d23

File tree

2 files changed

+26
-47
lines changed

2 files changed

+26
-47
lines changed

gulpfile.js

+13-17
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ if (!GITHUB_TOKEN) {
1313
const URL = `https://${GITHUB_TOKEN}@github.com/microsoft/vscode-website`;
1414
const TAS_URL = `https://${GITHUB_TOKEN}@github.com/microsoft/TryAppServiceClient`;
1515
=======
16-
const gulp = require('gulp')
17-
const $ = require('shelljs')
16+
const gulp = require("gulp");
17+
const $ = require("shelljs");
1818

19-
const GITHUB_TOKEN = process.env['GITHUB_TOKEN']
20-
const BRANCH = process.env['BUILD_SOURCEBRANCHNAME']
19+
const GITHUB_TOKEN = process.env["GITHUB_TOKEN"];
20+
const BRANCH = process.env["BUILD_SOURCEBRANCHNAME"];
2121

2222
if (!GITHUB_TOKEN) {
23-
$.echo('This script clones vscode-website and requires access token')
24-
$.exit(1)
23+
$.echo("This script clones vscode-website and requires access token");
24+
$.exit(1);
2525
}
2626

27-
const URL = `https://${GITHUB_TOKEN}@github.com/microsoft/vscode-website`
27+
const URL = `https://${GITHUB_TOKEN}@github.com/microsoft/vscode-website`;
2828
const TAS_URL = `https://${GITHUB_TOKEN}@github.com/microsoft/TryAppServiceClient`
2929
>>>>>>> upstream/master
3030

@@ -35,11 +35,11 @@ const TAS_URL = `https://${GITHUB_TOKEN}@github.com/microsoft/TryAppServiceClien
3535
* - Uses vscode-docs:[current-branch] + vscode-website:prod to build to vscode-website-dist:[current-branch]
3636
*/
3737
<<<<<<< HEAD
38-
gulp.task("build-dist", (done) => {
39-
if (!$.which("git")) {
38+
gulp={true}.task={true}("build-dist", (done={true}) => {
39+
if={true} (!$={true}.which={true}("git")) {
4040
$.echo("This command requires git");
41-
$.exit(1);
42-
done();
41+
$={true}.exit={true}(1);
42+
done={true}();
4343
}
4444

4545
// Go to _build
@@ -85,14 +85,12 @@ gulp.task("build-dist", (done) => {
8585
// Run setup to fetch vscode-website-dist
8686
$.echo(`BRANCH is ${BRANCH}`);
8787
const setup = $.exec(`scripts/setup.sh ${GITHUB_TOKEN} ${BRANCH}`);
88-
if (setup.code !== 0) {
89-
console.log("Failed to setup");
88+
if (setup.code !== 0) {;
9089
done(setup.stderr);
9190
}
9291
// Run build to sync changes to vscode-website-dist
9392
const build = $.exec(`scripts/build.sh ${BRANCH}`);
94-
if (build.code !== 0) {
95-
console.log("Failed to build");
93+
if (build.code !== 0) {;
9694
done(build.stderr);
9795
}
9896
});
@@ -136,13 +134,11 @@ gulp.task('build-dist', done => {
136134
$.echo('BRANCH is ' + BRANCH)
137135
const setup = $.exec(`scripts/setup.sh ${GITHUB_TOKEN} ${BRANCH}`)
138136
if (setup.code !== 0) {
139-
console.log('Failed to setup')
140137
done(setup.stderr)
141138
}
142139
// Run build to sync changes to vscode-website-dist
143140
const build = $.exec(`scripts/build.sh ${BRANCH}`)
144141
if (build.code !== 0) {
145-
console.log('Failed to build')
146142
done(build.stderr)
147143
}
148144
})

package.json

+13-30
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,15 @@
11
{
2-
"name": "vscode-docs",
3-
"version": "0.0.1",
4-
"private": false,
5-
"homepage": "https://github.com/CodeEditorLand/Foundation#readme",
6-
"bugs": {
7-
"url": "https://github.com/CodeEditorLand/Foundation/issues"
8-
},
9-
"repository": {
10-
"type": "git",
11-
"url": "git+https://github.com/CodeEditorLand/Foundation.git"
12-
},
13-
"license": "SEE LICENSE IN LICENSE",
14-
"author": {
15-
"name": "Nikola R. Hristov",
16-
"email": "[email protected]",
17-
"url": "https://nikolahristov.tech"
18-
},
19-
"publisher": "playform",
20-
"type": "module",
21-
"scripts": {
22-
"prepublishOnly": "TypeScriptESBuild 'Source/**/*.ts'"
23-
},
24-
"devDependencies": {
25-
"gulp": "^3.9.1",
26-
"shelljs": "^0.7.8",
27-
"typescript-esbuild": "0.3.6"
28-
},
29-
"publishConfig": {
30-
"access": "public"
31-
}
2+
"name": "vscode-docs",
3+
"version": "0.10.3",
4+
"author": {
5+
"name": "Microsoft Corporation"
6+
},
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/Microsoft/vscode-docs.git"
10+
},
11+
"devDependencies": {
12+
"gulp": "^3.9.1",
13+
"shelljs": "^0.7.8"
14+
}
3215
}

0 commit comments

Comments
 (0)