steel-version
Version:
a version-controller of steel
25 lines (22 loc) • 801 B
JavaScript
/**
* steel file for cli-version
* author: @Lonefy
*/
var path = require('path');
var steel = require('steel-commander');
steel.config({
port: 80,
pathnamePrefix: '/t6/apps/weibo_sell/',
cssPostfix_option: ["pages/*.*"],
front_base: 'server_front',
front_hostname: 'js.t.sinajs.cn img.t.sinajs.cn',
back_base: 'server_back', //模拟后端的文件放置目录
back_hostname: 'shop.sc.weibo.com shop1.sc.weibo.com', //后端的HOST,目的是真实模拟后端的页面路由请求,提供出前端可仿真的功能,比如 /index 对应 /html/index.html
jsFilter_of_lib: ['js/lib/zepto.js'],
cssBase: "css/",
jsBase: "js/",
version: '0.1.1'
})
steel.task("hw", function(){
console.log("hello world, Steel v0.1.1");
})