Harp + browser-sync + Bootstrap-Sass
Harp - the static web server with built-in preprocessing
$ sudo npm install -g harp
$ cd bs-harp-sass
$ npm install
Start harp server(harp server を起動)
$ harp server
and open a new tab(新しいタブを開く)
command + t
Start proxy of harp server using browsersync Livereload on that tab(そのタブでbrowsersync Livereloadを使って harp server のプロキシを開始)
$ gulp server
When you write the code to jade files , there is a need to write root path.(jadeファイルにコードを書くときには、ルートパスを書く必要がある)
img(src="/assets/images/demo.png", alt="demo")
On the corresponding tab(該当タブで)
control + c
Compile source non-minify-html in /dist(コンパイルされたHTMLは /distディレクトリ内に保存され non-minify-html になる)
If you don't need to convert relative path to the dist directory, you change config.relativePath to false in gulpfile.js.(相対パスをdist
ディレクトリに変換する必要がない場合は、gulpfile.jsでconfig.relativePathをfalseに変更)
$ gulp dist
Fix file structure
CSS structor
Add Japanese to Readme
Change the structure of css Change all indent_style to 2space Change Compile source
Fix bugs
Change Log Bs-Harp
Use Bootstrap Sass
Install gulp-autoprefixer Use browser-sync with gulp
Use gulp-cssnano instead of gulp-minify-css Install gulp-sourcemaps
Install JS and css libraries from npm
It is possible to convert relative path, even if there are lower directories.
- gulp-csscomb
- gulp-minify-css
- gulp-uglify
- .editorconfig
- .jsbeautifyrc
- .jshintrc
- .tern-project
- gulp-html-prettify