Coder Social home page Coder Social logo

wangjunjun0212 / sheral-intro Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jimyuan/sheral-intro

0.0 1.0 0.0 174 KB

移动端 ui 库 Sandal & Sheral 功能介绍分析。

Home Page: https://czcg.github.io/sheral-intro/dist/

License: MIT License

JavaScript 14.44% HTML 72.06% CSS 13.49%

sheral-intro's Introduction

Sheral 使用指南

这是一个 demo 站点,不过也是 Sheral 的说明文档(非官方)。

这个 demo 网站有点 “精神分裂”,该脚手架其实是适合多页面简单网站的快速开发,介绍的确是一个侧重于移动端的 ui 库,从好了想,算是一举两得吧,即介绍了 ui 库,也给大家展示了这个脚手架的一些功能。

开始

整个脚手架的使用指南,请参看该项目的 README 文档,以下为运行发布操作简要叙述。

运行

第一次运行前,需安装依赖包,否则,可直接启动项目。进入项目目录后,执行如下命令:

# 安装 Nodejs 的依赖包
npm install
# 安装本网站所需的一些前端库
bower install

当然,以上命令可合并为 npm i && bower i,分开执行只是为了能更好的检测包安装的情况。

启动

本框架采用 gulp 工具进行前端自动化工程:

# 启动项目
gulp

启动后,gulp 任务将会自动打开一个 web server,并开启浏览器窗口,保持这个启动的终端不被关闭,接下来就可以开始开发了。

发布

执行以下命令,将会把生产版本的网站发布到 dist 目录中,供发布使用。

gulp build

dist 目录中的 css 和 js 文件都被合并、压缩,js 变量已混淆,完全满足生产环节的需求。

注意

因本仓库兼具展示页面之功能,所以将 dist 目录从 .gitignore 的列表中释放了出来,利用 github 的 git-pages 功能生成网站。但是一般项目,我们不建议将最终编译完成的代码也纳入 git 的代码托管中,除非有类似本项目之特殊用途。

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.