- clone this repo and give it your own name
git clone https://github.com/Ricka7x/static-web-boilerplate.git name-of-your-repo
-
open package.json and change the name,description, and version(optional)
-
customize your README.md to fit your needs
-
run
$ yarn
or$ npm install
$ yarn start
or $ npm run start
Just copy the example index.ejs
just add any image to .src/images
just add it to fonts folder... the file name structure should be <family>[-<weight>][-<style>].<extension>
example: Lato-400-italic.ttf or Lato-bold-italic
visit gulp-font2css for more information
just add it to images folder... the file must be named favicon.png though
- open config.js and change domain to anything you like("no spaces allowed") and run
$ yarn deploy
- if you don't have a surge account you will be prompted to create it, otherwise your done 😄
- open .gitignore and remove /docs line
- push to github
- go to your repo then go to settings
- go to github pages section and choose master branch /docs folder