Skip to content

Commit

Permalink
readme & gruntfile update, closes dimsemenov#29
Browse files Browse the repository at this point in the history
  • Loading branch information
dimsemenov committed May 4, 2013
1 parent bc29048 commit e998cf7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
1 change: 1 addition & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ module.exports = function(grunt) {
grunt.registerTask('default', ['sass', 'mfpbuild', 'uglify', 'copy', 'jekyll:dev']);

grunt.registerTask('production', ['sass', 'mfpbuild', 'uglify', 'copy', 'cssmin', 'jekyll:production']);
grunt.registerTask('nosite', ['sass', 'mfpbuild', 'uglify']);
grunt.registerTask('hint', ['jshint']);

};
19 changes: 7 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,24 @@ Fast, light and responsive lightbox plugin, for jQuery and Zepto.js.

## Build

To compile Magnific Popup by yourself:
To compile Magnific Popup by yourself, first of make sure that you have [Node.js](http://nodejs.org/), [Grunt.js](https://github.com/cowboy/grunt), [Ruby](http://www.ruby-lang.org/) and [Jekyll](https://github.com/mojombo/jekyll/) installed, then:

1) Copy repository

git clone https://github.com/dimsemenov/Magnific-Popup.git

2) Install grunt globally (if you haven't yet)

npm install -g grunt-cli

3) Go inside Magnific Popup folder and install Node dependencies
2) Go inside Magnific Popup folder that you fetched and install Node dependencies

cd Magnific-Popup && npm install

4) Make sure you that you have grunt installed by testing:

grunt -version

5) Now simply run `grunt` to generate JS and CSS in folder `dist` and site in folder `_site/`.
3) Now simply run `grunt` to generate JS and CSS in folder `dist` and site in folder `_site/`.

grunt

(Optionally run `grunt watch` to automatically regenerate `_site` when you change files in `src/` or in `website/`).
Optionally:

- Run `grunt watch` to automatically rebuild script when you change files in `src/` or in `website/`.
- If you don't have and don't want to install Jekyll, run `grunt nosite` to just build JS and CSS files related to popup in `dist/`.

## License

Expand Down
2 changes: 2 additions & 0 deletions website/wordpress.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
<style>
#mc_embed_signup {
display: block !important;
max-width: 540px;
background: none;
}
</style>
{% include signup.html %}

0 comments on commit e998cf7

Please sign in to comment.