From 776353f3e317df7953fca3f8c57f75a2fe4fd670 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Wed, 8 Dec 2021 14:04:58 +0100 Subject: [PATCH] Remove unused script --- build/prepare-website-branch.js | 42 --------------------------------- package.json | 1 - 2 files changed, 43 deletions(-) delete mode 100644 build/prepare-website-branch.js diff --git a/build/prepare-website-branch.js b/build/prepare-website-branch.js deleted file mode 100644 index 2f550900..00000000 --- a/build/prepare-website-branch.js +++ /dev/null @@ -1,42 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ - -//@ts-check - -/** @typedef {import('../build/utils').IFile} IFile */ - -const path = require('path'); -const cp = require('child_process'); -const { REPO_ROOT } = require('./utils'); - -cp.execSync('git init', { - cwd: path.join(REPO_ROOT, '../monaco-editor-website') -}); - -const remoteUrl = cp.execSync('git remote get-url origin'); -const committerUserName = cp.execSync("git log --format='%an' -1"); -const committerEmail = cp.execSync("git log --format='%ae' -1"); - -cp.execSync(`git config user.name ${committerUserName}`, { - cwd: path.join(REPO_ROOT, '../monaco-editor-website') -}); -cp.execSync(`git config user.email ${committerEmail}`, { - cwd: path.join(REPO_ROOT, '../monaco-editor-website') -}); - -cp.execSync(`git remote add origin ${remoteUrl}`, { - cwd: path.join(REPO_ROOT, '../monaco-editor-website') -}); -cp.execSync('git checkout -b gh-pages', { - cwd: path.join(REPO_ROOT, '../monaco-editor-website') -}); -cp.execSync('git add .', { - cwd: path.join(REPO_ROOT, '../monaco-editor-website') -}); -cp.execSync('git commit -m "Publish website"', { - cwd: path.join(REPO_ROOT, '../monaco-editor-website') -}); - -console.log('RUN monaco-editor-website>git push origin gh-pages --force'); diff --git a/package.json b/package.json index a7983357..7ab278c3 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,6 @@ "license": "MIT", "scripts": { "build-website": "node ./build/website.js && npm run typedoc", - "build-website-ci": "node ./build/website.js && npm run typedoc && node ./build/prepare-website-branch.js", "import-typescript": "node ./build/importTypescript.js", "playwright-install": "node ./node_modules/playwright/install.js", "playwright-install-deps": "playwright install-deps",