Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Associazione Alberto Poltronieri (staging)
HTML JavaScript CSS
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
_layouts
assets/js
css
docs
events
img
.eslintrc
.gitignore
Gruntfile.js
README.md
_config.yml
contatti.html
cookies.txt
donazioni.html
eventi.html
favicon.ico
index.html
missione.html
package.json
progetti.html
sostegno.html

README.md

Associazione Alberto Poltronieri

Development

You need to install Node.js and the following tools:

$ npm install -g enfield
...

$ npm install -g grunt-cli
...

$ npm install -g bootlint
...

Then you need to install the dependencies: $ npm install

You may generate the site locally, using enfield.

Then you may validate the html, using the default Grunt task; at last, you may validate the Boostrap code with bootlint.

$ enfield
...

$ grunt
...

$ bootlint _site/*.html
...

Deploy

There are two repos:

The development uses staging repo, master branch.

To sync the two repos, you need to add the following to the config of the live repo:

[remote "staging"]
    url = git@github.com:associazionepoltronieri/associazionepoltronieri.github.com.git
    fetch = +refs/heads/*:refs/remotes/origin/*

When you need to sync the live repo with the staging one, you need to execute the following commands:

git pull staging master
git push

The live repo has two branches: master and gh-pages.

After syncing staging master branch with live master one, the last step to go live is to merge live master branch with live gh-pages one.

Something went wrong with that request. Please try again.