GithubHelp home page GithubHelp logo

boilerplate's Introduction

开发说明

特点

  • Gulp 前端架构工具
  • 使用 Jade、Stylus、Coffeescript开发,最终编译成静态网站
  • 模块化开发,通过 Browserify 打包
  • Mocha 单元测试框架
  • 用 BrowserSync 创建静态资源服务,当有文件改动时,自动刷新浏览器

准备

git clone [email protected]:Seishi/boilerplate.git <your project name>
cd <your project name>
npm install

目录结构

root
|-- gulp/               # gulp任务
|-- node-modules/
|-- src/
|   |-- assets/         # 资源文件夹
|   |   |-- images/     # 存放图片,包括背景图
|   |   |-- script/     # 存放脚本文件
|   |   `-- stylus/     # 存放样式表文件
|   |-- _layout.jade
|   `-- index.jade
|-- public/             # 静态资源服务文件夹
|-- test/               # 存放测试文件
|-- gulpfile.js
|-- packages.json
|-- browerify.json      # 定义需要打包的文件
`-- README.md

开发

运行:

gulp

这将会自动打开浏览器访问: http://localhost:3000

生成静态网站

运行:

gulp compile -p

静态网站最终生成在 dist 目录。

boilerplate's People

Contributors

seishi avatar

Watchers

James Cloos 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.