Skip to content

codeforwings/nuxt3-win32-posix-path

Repository files navigation

CodeForWings - Path Cheatsheet

Replacement Scripts

inPathWin32.replace(/\\/g,"/");

Binary Test Strategy

pnpm run test:unit
pnpm run build-bins

mocha --recursive --timeout 10000 --exit tests/unit
mocha --recursive --timeout 10000 --exit tests/cli/wsl/wsl-cli-to-wsl.test.mjs
npx mocha --recursive --timeout 10000 --exit tests/cli/wsl/wsl-cli-to-wsl.test.mjs

lib/bin_build/dist/index-linux ssdf

Next Steps

  • Migrate UI to VitePress
  • Cleanup and move to src/ and test/ etc.
  • For UX, i feel like just convert everything from backslash to slash
    • then dont have to deal with anything... have to double check spaces
  • Update nuxt version / vuetify
  • Recordings / Documentation
  • auto combine docs into one dashboard / repo
  • node path / glob
  • Python? maybe later... Pathlike etc.
  • file url?

Dev Steps

  • Publish package
  • use pkg
  • try various path with wsl etc.
  • generate path using nodejs and c:/users/public
  • append wsl commands?

Nuxt 3 Minimal Starter

pnpm

cd $env:Public/Documents/WebstormProejcts
pnpm dlx nuxi@latest init nuxt3-win32-posix-path
pnpm dlx nuxi@latest init vite-win32-posix-path

debug

# might be easier like this...
pnpm create vite vite-src --template vue

Look at the Nuxt 3 documentation to learn more.

Setup

Make sure to install the dependencies:

# yarn
yarn install

# npm
npm install

# pnpm
pnpm install --shamefully-hoist

Development Server

Start the development server on http://localhost:3000

npm run dev

Production

Build the application for production:

npm run build


#    "build-bins": "pnpm run /build-bins:.*/",
#    "pwsh:ghGenerateAndDeploy": "c:/progra~1/PowerShell/7/pwsh.exe -File lib/deploy/ghPagesDeploy.ps1",
# didnt work...
# https://github.com/codeforwings/nuxt3-win32-posix-path/deployments/activity_log?environment=github-pages

Locally preview production build:

npm run preview

Check out the deployment documentation for more information.