Giter Club home page Giter Club logo

jarvis-4's Introduction

jarvis

a lite web rebuild server base on nodejs

jarvis目前是一个轻量级的前端重构开发系统。

===

名字由来:

jarvis 是钢铁侠Iron man里 的Tony制造的那台超级电脑的名字。它帮助Tony完成了繁琐的计算和运算。

###基本功能

  1. 本地重构环境。支持html模板,less等。
  2. 支持artTemplate html 模板语言。
  3. 支持stylus css 模板语言。

###开发中的功能

  1. 支持文件编译。支持html合并输出,less合并输出及压缩。

###策划中的功能

  1. 支持Host代理环境。支持 域名代理,文件夹代理,单文件代理。
  2. 支持编译使css中的图片自动合并
  3. 支持url路由

====

###使用方法

安装

在使用之前需要你的机子安装node环境,然后进行以下步骤

git clone git://github.com/qilei0529/jarvis.git

如果没有git可以点击下载zip包解压在本地。

cd jarvis

安装依赖库 安装一些 javis 需要的node组件如:less等。

npm install

复制一份配置文件成 config.js -- (配置请参考底下 config.js 说明)

cp config.js.sample config.js

运行jarvis

node bin/jarvis

这个时候会提示。一些使用方法 如 build, help , server等

运行 server

node bin/jarvis server

本地环境

上面的工作做完后 打开浏览器 输入 localhost:8888 (默认8888 端口)

就可以看到你在 config.js 中设置的根目录。

====

###config.js 说明

端口

port: 8888,

根目录

root: '/Users/qilei/code',

node日志:默认不显示,目前没啥用。(调试node的时候使用)

//logger: 'dev',

hosts 配置,指定域名指向到特定目录。

hosts: {
	'www.jarvis.com': {
		root: '/Users/qilei/webroot/jarvis'
	}
}

###特性说明

以下是针对特性的简要说明: 详细可以翻 demo 目录中的代码

html 支持

访问

localhost:8888/xx../xx.html

这个html文件支持artTemplate 语法。 详细语法参考 artTemplate

css 语法支持

访问

localhost:8888/xx../xx.css

当前目录如果没有xx.css 会调用 同名 xx.less, xx.stylus模板支持。

jarvis-4's People

Contributors

bencode avatar qilei0529 avatar

Watchers

James Cloos avatar Nabendu Maiti avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.