A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.
#SLOW
[TOC]
SLOW is a web framework that help web developer focus on html,css, javascript and don't need care for server. You can develop web with LESS and Coffee and don't need compile them, SLOW will do them automatically. So you just need spend less time in work, coding slowly and thinking in coding, enjoy coding. Coding is not just for finish your work.
#How to install?
slow
need be installed as global.
sudo npm install -g slow-cli
There is a slow project sample in "slow-cli/sample".
#In the project directory, get a slow project by runing
slow init
##Take over and starup a http server
#In the project directory run.
slow start
#And then open the browser with http://localhost:3000
Now, you can enjoy coding with handlebar, coffeescript, less. don't need use grunt or gulp compile your project.
#Develop with slow
There are all configs for slow, every fields will be described in the
next section. this is develop config:(you can find it in .slow/config.js
)
{
"environment": "develop",
"develop": {
"port": 3000,
"base": {
"index": "index.html",
"cache-time": 60 * 60 * 24 * 7,
"gzip": true,
"isWatchFile": true,
"showResponseTime": true
},
"proxy": {
"path": /^\/api/,
"options": {
"target": "http://localhost:8000"
}
},
"error": {
"403": ''
},
"log": {
"log2console": true,
"timestamp": false,
"levelShow": true,
"lineInfo": false,
"log2file": false
}
}
This is product config, you can find it in .slow/product-config.js
it's same with develop config.
{
"port": 3000,
"base": {
"index": "index.html",
"cache-time": 60 * 60 * 24 * 7,
"gzip": true,
"isWatchFile": true,
"showResponseTime": false
},
"proxy": false,
"error": {
"403": ''
}
}
This is build config. it be used when you run slow build
you can modify in .slow/build.js
{
"target": "build",
"mincss": {
"include": /.+\.(less|css)$/,
"ignore": [/.+(\.min\.css)$/],
"options": {}
},
"minjs": {
"include": /.+\.(js|coffee)$/,
"ignore": [/.+(\.min\.js)$/],
"options": {
"mangle": false,
"compress": {}
}
},
"hbsCompile": {
"include": /.+(\.hbs)$/
},
"coffeeCompile": /.+(.coffee)$/,
"lessCompile": /.+(.less)$/,
"ignore": [/^(\.slow).+/, /.*(\.gitignore)$/]
}
When we are developing a web project, we are in develop environment, so, at the first, you can setting slow work environment to be "develop" like this:
module.export =
{
"environment": "develop",
//...
}
There just are two values for environment
option, develop
and product
.
the default setting is "develop". the environment option tell slow
which
config should be load when it is working.
After set the work environment be develop
, Now we can config the develop environment.
There already has some default config option at ".slow/config.js". You define
them by yourself in "develop" field.
the port that be slow
used.default is 3000
.
###target ###mincss ####include ####ignore ####options ###minjs ###hbscompile ###cofeeCompile ###lessComplie ###ignore #HTML derective
#Slow extensions
#Shell
##slow init ##slow build ##slow update ##slow start
MIT
v0.1.9beta3
slow
to slow start
. Avoid conflict with other shell commanderv0.1.9beta1
slow
crash.v0.1.8beta6
v0.1.8beta3
init
v0.1.8-beta1
slow build
package slow project to a pure html project.
Don't need depend slow
slow build support:
- autocompile coffee, less, handlebar
- compress js, css to min file
v0.1.7
v0.1.6
v0.1.4
import
and include
functionv0.1.3
v0.1.1
v0.1.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。