https://github.com/oti/boilerplate_gulp
https://github.com/oti/boilerplate_gulp
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/oti/boilerplate_gulp
- Owner: oti
- Created: 2016-01-19T17:11:15.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2024-10-15T04:04:18.000Z (over 1 year ago)
- Last Synced: 2025-02-10T14:53:07.624Z (over 1 year ago)
- Language: JavaScript
- Size: 2.32 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Gulp Web Dev Boilerplate
Gulp を使ったウェブサイト開発環境のボイラープレートです。
dependencies の過不足は適宜処理してください。
- HTML -> Pug
- CSS -> node-sass
- Image -> imagemin
- JS -> Babel + webpack
JS は Babel でコンパイル、webpack でバンドルします。CSS や画像のバンドルはしません。
webpack でも jQuery は使えるのでやりたかったら `npm i jquery` して `import jQuery from "jquery"` したら良いです。
## development
```zsh
ndenv install 18.13.0
ndenv rehash
```
```zsh
npm ci
npm start
```
`localhost:3000` が起動します。
もし `No gulpfule found` エラーが出たら、gulp-cli が v2.3.0 になっていない可能性があります。
package-lock.json を削除してから `npm i` を実行し、gulp-cli をアップデートしてください。
```zsh
npx gulp -v
CLI version: 2.3.0
Local version: 4.0.2
```
## build
```zsh
npm run build
```
`dist/` にビルドされます。
## configration
ソースやビルドのパスは `config.json` で管理しています。