mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 13:55:41 +01:00
Remove unused script
This commit is contained in:
parent
233ecd49b1
commit
776353f3e3
2 changed files with 0 additions and 43 deletions
|
|
@ -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');
|
|
||||||
|
|
@ -7,7 +7,6 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build-website": "node ./build/website.js && npm run typedoc",
|
"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",
|
"import-typescript": "node ./build/importTypescript.js",
|
||||||
"playwright-install": "node ./node_modules/playwright/install.js",
|
"playwright-install": "node ./node_modules/playwright/install.js",
|
||||||
"playwright-install-deps": "playwright install-deps",
|
"playwright-install-deps": "playwright install-deps",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue