miseは複数のプログラミング言語やツールのバージョンを簡単に管理できる次世代バージョンマネージャーです。
Node.jsを含む多くのランタイムを一つのツールで管理できるため、開発環境をシンプルに保てます。
このガイドではWindows環境でのmiseのインストールからNode.jsバージョン管理までを詳しく解説します。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"clean": "node -e 'fs.rmSync(`./dist`, {recursive: true, force: true})'", | |
}, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@(echo '> NUL | |
echo off) | |
setlocal enableextensions | |
echo %~n0%~x0 | |
if "%~1" neq "RESTARTED" ( goto RESTART ) | |
set "THIS_PATH=%~f0" | |
set "PARAM_1=%~2" | |
PowerShell.exe -Command "iex -Command ((gc \"%THIS_PATH:`=``%\") -join \"`n\")" | |
exit /b %errorlevel% | |
:RESTART |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function () { | |
const libs = ["https://cdnjs.cloudflare.com/ajax/libs/sweetalert/2.1.2/sweetalert.min.js"]; | |
function import_script(urls){ | |
return Promise.all(urls.map(function(url){ | |
return new Promise(function(resolve,reject){ | |
var script = document.createElement('script'); | |
script.src = url; | |
script.onload = resolve; | |
document.head.appendChild(script); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@(echo '> NUL | |
echo off) | |
setlocal enableextensions | |
echo *注意1:自己署名証明書生成には管理者権限が要求されます* | |
echo *注意2:証明書ファイル(cert.txt)はデスクトップ上の『cert』フォルダへ出力されます* | |
if "%~1" neq "RESTARTED" ( goto RESTART ) | |
set "THIS_PATH=%~f0" | |
set "PARAM_1=%~2" | |
PowerShell.exe -Command "iex -Command ((gc \"%THIS_PATH:`=``%\") -join \"`n\")" | |
exit /b %errorlevel% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REM 共通変数 | |
set download_dir=%~dp0%download | |
REM ログインユーザ | |
set login_user=anonymous | |
set login_password= | |
REM メイン処理 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@(echo '> NUL | |
echo off) | |
setlocal enableextensions | |
echo %~n0%~x0 | |
if "%~1" neq "RESTARTED" ( goto RESTART ) | |
set "THIS_PATH=%~f0" | |
set "PARAM_1=%~2" | |
PowerShell.exe -Command "iex -Command ((gc \"%THIS_PATH:`=``%\") -join \"`n\")" | |
exit /b %errorlevel% | |
:RESTART |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REM 引数1から*.ps1のファイルパスを取得 | |
set PS1_FILE_PATH=%1 | |
REM 引数1の取得に失敗した場合ユーザに入力させる | |
IF "%1" EQU "" ( | |
set /P PS1_FILE_PATH="*.ps1のファイルパス:" | |
) |