Hello, Indonesia
We are glad to join this camp to share our experience for you and not only tech but also exchange.
If you have any question, any suggest or any idea to implement, just write down on issues or just send email to us.
Terima kasih 謝謝 (xie xie)
Moko365 Inc. (Tapei, Taiwan)
Notice: Always pull/push after commit all tracking files.
git push (need network)
git pull (need network)
git checkout files
git diff
$ npm install -g jade
$ jade templateFolderName
$ jade template.jade
$ jade views/*.jade -o public/
** It's not working on Windows, so please use html2jade.aaron-powell.com instead.
$ npm install -g html2jade
$ html2jade *.html
$ html2jade *.html -o outFolder
npm install -g sass
sass style.sass:style.css
sass --watch style.sass:style.css
Also you can watch a folder. For example, wath all sass files in sass folder and publish css into public/css folder.
sass --watch sass:public/css
```
$ sass-convert -F css -T sass public/css/wiki.css sass/wiki.sass
```
$ npm install -g bower
$ bower init
$ bower install bootstrap --save
$ bower list
$ bower uninstall bootstrap --save
Bower will install your packages on bower_components folder in default, so you need a config file to change default install folder.
.bowerrc
{
"directory": "public/vendor"
}
$ npm install -g express
$ express
Please run this command on your project folder like this:
C:\Users\Hank\myProjects\booklog-camp>
C:\Users\Hank\myProjects\booklog-camp> express
$ npm i
$ node app.js
Jade will install by npm (include inside NodeJS) So we need:
Please visit nodejs website
http://nodejs.org
npm install jade --global
npm is a command line tool from NodeJS.
-- 1.1 visit http://sublime.wbond.net/installation -- 1.2 Ctrl + ` -- 1.3 Copy and paste install command, press enter
-- 2.1 Ctrl + Shift + P -- 2.2 Type 'Package Control: Install Package' -- 2.3 Type 'Emmet' to find and install. -- 2.4 Restart Sublime after installed. -- 2.5 Happy Zen Coding!
See also
<script src="https://github.com/MokoVersity/mokoid-camp2-booklog/raw/master/jquery.min.js"></script>
<script src="https://github.com/MokoVersity/mokoid-camp2-booklog/raw/master/bootstrap.min.js"></script>
npm config set strict-ssl false
npm config set registry "http://registry.npmjs.org"
npm --proxy http://10.14.211.120:8080 install -g jade
Install sass through proxy
gem install sass -p http://10.14.211.120:8080
sass -v
If you can't get this work on Windows, please set your ruby bin folder to your PATH environment variables