This project is based on Svelte, SAPPER, rollup.js, Bootstrap and sapper-blog-template.
npm install
npm run init
npm run dev
npm run export
Note that 301
on index.html
and 404
on 404/index.html
are expected.
To test the exported site,
npm run serve
npm run lint
npm run lint-fix # lint with --fix option
Please try to keep code conventions.
Do not deploy to public repository. If you want to test deployment, use your own repository.
npm run deploy
root
├ data
├ src
│ ├ components # Individual components
│ ├ routes # Pages of website (index, people, etc..)
│ ├ utils # Utilities
│ ├ client.js # Sapper related file (You may not need to change it)
│ ├ server.js # Sapper related file (You may not need to change it)
│ ├ service-worker.js # Sapper related file (You may not need to change it)
│ └ template.html # Template of all pages
├ static # Static files
├ .eslintignore # ESLint related file
├ .eslintrc.js # ESLint config file
├ .gitignore # GIT related file
├ package-lock.json # NPM related file
├ package.json # NPM related file
├ rollup.config.js # Rollup config file
└ svelte.config.js # Svelte config file for VSCode
The majority of time, you may work with components
and routes
.