Статический сайт на JS – – danil@kutkevich.org



Статический сайт на JS – – danil@kutkevich.org

0 0


static-js-org


On Github danil / static-js-org

Статический сайт на JS

danil@kutkevich.org

Table of Contents

nvm

$ curl https://raw.github.com/creationix/nvm/master/install.sh | sh
$ nvm install 0.10

npm

$ nvm use 0.10
$ cd /path/to/site
$ npm install

package.json

{
  "name": "my-project-name",
  "version": "0.0.1",
  "devDependencies": {
    "grunt-cli": "latest"
  }
}

connect.js

var connect = require('connect');
connect.createServer(
  connect.static(__dirname)
).listen(parseInt(process.argv[2]) || 8080);

bower.json

$ bower install

Gruntfile.js

grunt-contrib-copy

grunt-contrib-concat

Assemble

links

0