$pm add vite
# should be success
$pm run vite --version
# shoud be fail
$pm run esbuild --version
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
I faced this issue with the following environment: | |
iPhoneX iOS 16.5.1, palera1n rootless jb, ellekit 1.0 |
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
import { readFileSync, writeFileSync } from 'fs' | |
import semver from 'semver' | |
import { exec } from 'child_process' | |
// Currently, pnpm (version 8.5.1) is not recognizing overrides properly on install | |
// This is a temporary solution that simplifies the overrides generated by pnpm audit -P --json | |
// It basically gets rid of the vulnerable version specifier | |
interface SimplifiedPackageConfig { | |
pnpm?: { |
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
""" | |
Refactoring tool using ChatGPT from Vue 2 to Vue 3 | |
$ export OPENAPI_APIKEY=sk......... | |
$ python refactor.py MyView.vue | |
""" | |
import os | |
import re | |
import sys |
- The following notes are a 'checklist' for migrating a large Vue2 / Vuetify2 project to Vue3 / Nuxt3 / Vuetify3. It is NOT intended to be a step-by-step migration guide, they are rough notes our team used for migration
- Our team decided to create a brand new Nuxt3 app, instead of tyring a 'bridge' or running Vue2/Vue3 side-by-side:
- nuxi init our-new-app-v3
- We also changed our store from Vuex to Pinia
- We decided to use the experimental @vue/reactivity-transform. This provides the ability to use a ref in the script block without having to use .value everywhere
- without reactivity-transform
let userName = ref<string>('')
userName.value = "John Doe"
- without reactivity-transform
- with reactivity-transform
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
// See https://github.com/Uninen/tauri-vue-template for more info | |
#![cfg_attr( | |
all(not(debug_assertions), target_os = "windows"), | |
windows_subsystem = "windows" | |
)] | |
use cocoa::appkit::{NSWindow, NSWindowStyleMask, NSWindowTitleVisibility}; | |
use tauri::api::shell; | |
use tauri::{CustomMenuItem, Manager, Menu, Runtime, Submenu, Window, WindowEvent}; |
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
// abstract class, not intended to be instantiated directly | |
class CalendarItem { | |
static #UNSET = Symbol("unset") | |
static #isUnset(v) { | |
return v === this.#UNSET; | |
} | |
static { | |
for (let [idx,msg] of [ | |
"ID is already set.", | |
"ID is unset.", |
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
import * as path from 'node:path'; | |
import * as fs from 'node:fs/promises'; | |
const nodeModules = path.resolve('node_modules'); | |
let moduleNames = await fs.readdir(nodeModules); | |
moduleNames = (await Promise.all( | |
moduleNames.map(async name => { | |
if (name.startsWith('.')) { | |
return []; |
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
#!/usr/bin/env python | |
__author__ = 'surister' | |
__author_contact__ = 'github/surister' | |
import pathlib | |
import sys | |
if len(sys.argv) < 2: | |
raise Exception('Expected one argument with ".../project/node_modules/@vue/" path') | |
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
#!/usr/bin/env bash | |
# This script should help facilitate setting up a new worktree, including: | |
# - creating a new worktree | |
# - installing dependencies | |
# - creating a new branch | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT |
NewerOlder