Giter Site home page Giter Site logo

pure-site's Introduction

Pure CSS 中文网站

这是Pure CSS的展示网站(中文版)

本地运行

这是一个基于node.js的网站,使用了Express.js,这意味着,在本地可以很容易跑起来(前提是你要先安装了node.js)

$ npm i
$ node server.js

PS:其实,下面的操作我也没成功,只是运行这个网站的话,请直接跳过了。——by chensy0203

和Pure一起在本地运行

当你对pure做了本地的改变后,你就可以通过这个网站验证下变化。接下来几步是要解释这个网站怎么和Pure一起运行,首先,你要确定你已经安装了Bower(如果没安装,请执行以下命令: sudo npm -g i bower),其次,进入到本地的pure目录,通过grunt构建,然后用Bower创建一个全局的链接:

$ cd pure
$ npm i #第一次需要安装依赖
$ bower install #第一次需要安装bower组件
$ grunt
$ bower link

现在进入Pure-site的目录,如果还没有安装依赖,请先npm i一下,然后在pure-site中用Bower去链接pure,最后启动服务器:

$ cd ../pure-site
$ npm i
$ bower link pure
$ node server --pure-local

这个 --pure-local 参数表明这个网站将使用本地的Pure,而不是用CDN上的Pure

注意: 在你启动服务器的时候,安装包依赖(npm install)和用Bower去链接pure这两步操作,不需要 每次都做。当然,你需要保持服务器一直在运行着,并且用grunt去重建pure,然后在浏览器刷新,你才能看到Pure的改变。

LICENSE

这个软件在Yahoo的BSD许可证下,可免费使用。 查看 LICENSE file 的许可证信息和版权信息

pure-site's People

Contributors

aurelioderosa avatar chensy0203 avatar daniel-hug avatar ericf avatar lexander avatar tilomitra avatar

Watchers

 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.