How to install Svelte on macOS using Node Package Manager (NPM)
Create a high-performance, lightweight, web application using Svelte framework.
Unlike React or Vue, Svelte is not a framework that relies on a virtual DOM. Instead, Svelte is a compiler that publishes highly efficient code. If you develop a decentralized application (DApp), package size and performance may be worth the tradeoff.
My favorite benefit of using Svelt is that you don't have to compromise SEO.
Step 0 - Install Global Libraries
degit is a tool that enables you to make copies of repositories without downloading all the git history. The goal here is to make things run faster.
degit is how we will install things from Github.
npm i -g degit
Step 1 - Create New Project
Install svelte package via npx. NPX is a way to work with the Node module without having to install it. This command below will clone Github with this repo.
package.json is the standard file with the dev dependencies for rollup. rollup.config.js is the configuration file for rollup. This is where you customize your application if you want to. rollup.config.js is the process that runs when rollup is started.
Rollup is a module bundler Svelte-traditional uses as its build tool. It's similar to Webpack.
npx is a way to work with the node module without installing it. Requires Node v8.0+.
degit helps you make copies of repositories faster, without downloading all the git history.