Pug × SCSS × TypeScript Template🐶 By gulp v4
Pug × SCSS × TypeScript Template🐶 By gulp v4
(gulp v4 による Pug × SCSS × TypeScript テンプレート)
ex) _hogehoge.pug
src > pug > include > _base.pug
...
├─ gulpfile.ts
├─ src/
│ ├─ pug/
│ │ ├─ include/
│ │ │ └─ _base.pug
│ │ └─ index.pug
│ ├─ scss/
│ │ └─ style.scss
│ ├─ typescript/
│ │ └─ main.ts
│ └─ image/
│
└─ dist // What is automatically converted is stored here📦.
├─ css/
│ └─ style.css
├─ js/
│ └─ main.js
├─ image/
│
└─ index.html
If you’ve previously installed gulp globally, run npm rm --global gulp
before following these instructions.
For more information, read this Sip.
node
, npm
, and npx
.
# Check for node
$ node -v
v12.14.0
# Check for npm
$ npm -v
6.13.4
# Check for npx
$ npx -v
6.13.4
Install the gulp command line utility
$ npm install --global gulp-cli
Install the pug command line utility
$ npm install --global pug-cli
$ git clone git@github.com:deren2525/gulp4-pug-scss-ts-template.git
$ cd gulp4-pug-scss-ts-template
$ npm install
Verify your gulp and pug versions
# Check for gulp
$ gulp -v
CLI version: 2.2.0
Local version: 4.0.2
# Check for pug
$ pug --version
pug version: 2.0.0-rc.4
pug-cli version: 1.0.0-alpha6
# start
$ gulp
Go to http://localhost:3000 !