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
Dev Once you've created a project and installed dependencies with 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 branch -d grego git add . git commit -m "lastly" git pull origin main git push origin grego
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"
config it u dont hv one eg user.name=greg user.email=altlokalt@gmail.com
git config --global altlokalt@gmail.com git config --global grego
git config --global --list
user.name=greg user.email=altlokalt@gmail.com
git checkout git checkout -b grego
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://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@github.com/minfuel/minfuel-svelte.git
To deploy your app,adapter