Everything you need to build a Svelte project, powered by create-svelte.
# create a new project in the current directory
npm create svelte@latest
# create a new project in my-app
npm create svelte@latest my-app
npm install (or pnpm install or yarn), start a development server:npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
npm run build
preview the production build with
npm run preview.
To deploy your app, you may need to install an adapter for your target environment.
yarn (or pnpm install or ynpm install)
npm run dev -- --open yarn dev
best to go to your branch NEVER work in MAIN
# lastly ALWAYS
git pull origin main
git branch -a
git branch grego
git checkout grego
git checkout main
git branch -d
git stash git pull origin main git stash pop
git merge --abort git pull origin main
npm uninstall @fouita/pagination --save-dev
git add yarn.lock git commit -m "Resolved merge conflict in yarn.lock"
git config --global altlokalt@gmail.com git config --global grego
git config --global --list
user.name=greg [email protected]
git checkout
yarn build --filter svelte-texbab
yarn preview --filter svelte-texbab
yarn preview --filter svelte-texbab
#
git log --oneline
git reset HEAD~1 git status
git diff HEAD..origin/main git reset --hard HEAD git pull origin main
# Install Node
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
#close and re-open your terminal window.
nvm install node
npm install -g npm@latest
wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.bashrc" SHELL="$(which bash)" bash -
npm install -g pnpm
sudo chown -R yourusername:yourusername /home/minfuel-svelte
git clone https://[email protected]/minfuel/minfuel-svelte.git
To deploy your app,adapter