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
// make sure you have changed your working directory to your project | |
cd app | |
// svelte | |
// see https://github.com/sveltejs/svelte/issues/2900#issuecomment-701644971 | |
npm install svelte | |
sed -i 's/svelte-\$/_$/g' ./node_modules/svelte/compiler.js | |
// sapper | |
npm install sapper |
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
# https://stackoverflow.com/questions/45833873/enable-win10-inbuild-hotspot-by-cmd-batch-powershell/60444585#answer-60444585 | |
[Windows.System.UserProfile.LockScreen,Windows.System.UserProfile,ContentType=WindowsRuntime] | Out-Null | |
Add-Type -AssemblyName System.Runtime.WindowsRuntime | |
$asTaskGeneric = ([System.WindowsRuntimeSystemExtensions].GetMethods() | ? { $_.Name -eq 'AsTask' -and $_.GetParameters().Count -eq 1 -and $_.GetParameters()[0].ParameterType.Name -eq 'IAsyncOperation`1' })[0] | |
Function Await($WinRtTask, $ResultType) { | |
$asTask = $asTaskGeneric.MakeGenericMethod($ResultType) | |
$netTask = $asTask.Invoke($null, @($WinRtTask)) | |
$netTask.Wait(-1) | Out-Null | |
$netTask.Result |
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
pnpm build | |
cd .svelte | |
find -name "*svelte*" -exec rename 's/svelte-/custom-/' {} ";" | |
find -name "*svelte*" -exec rename 's/Svelte-/Custom-/' {} ";" | |
find . -type f -name "*" -print0 | xargs -0 sed -i 's/svelte-/custom-/g' | |
find . -type f -name "*" -print0 | xargs -0 sed -i 's/Svelte-/Custom-/g' | |
sed -i 's/id="svelte"/id="custom"/g' output/server/app.js |
OlderNewer