https://github.com/sapegin/grunt-talk-examples
Примеры к докладу про Grunt
https://github.com/sapegin/grunt-talk-examples
Last synced: 11 months ago
JSON representation
Примеры к докладу про Grunt
- Host: GitHub
- URL: https://github.com/sapegin/grunt-talk-examples
- Owner: sapegin
- Created: 2012-11-22T08:35:24.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-11-23T08:41:39.000Z (about 13 years ago)
- Last Synced: 2025-01-11T19:12:21.052Z (about 1 year ago)
- Language: PHP
- Size: 3.83 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Grunt: система сборки для фронтенд-разработчиков
[Презентация](http://sapegin.ru/pres/grunt/).
## Установка Grunt
1. Установите [Node.js](http://nodejs.org/).
2. `$ npm install grunt -g`
## Примеры к докладу
### Статическая страничка с задачами watch и server
В папке `static` запускайте:
```bash
grunt server watch
```
И заходите на [http://localhost:8000/](http://localhost:8000/).
### Пример собственной задачи: запуск imgo
Установите [imgo](https://github.com/imgo/imgo). В папке `imgotask` запускайте:
```bash
grunt
```
### Grunt в теме для Wordpress
В папке `wordpress/wp-content/themes/wordpress/` запускайте:
```bash
grunt watch
```
## Ссылки
* [Сайт Grunt, документация, плагины](http://gruntjs.com/)
* [Грантфайл jQuery](https://github.com/jquery/jquery/blob/master/grunt.js) (весьма продвинутый)
* [H5BP Build configuration](https://github.com/h5bp/node-build-script/wiki/configuration) (ещё один продвинутый грантфайл)
* [Подборка шаблонов grunt init](https://github.com/sapegin/squirrelstrap)
* [Плагин для Sublime Text 2](https://github.com/sapegin/SublimeGruntWatch)
* [grunt-stylus](https://github.com/sapegin/grunt-stylus), [grunt-shower-markdown](https://github.com/sapegin/grunt-shower-markdown), [grunt-imgo](https://github.com/sapegin/grunt-imgo), [grunt-fingerprint](https://github.com/sapegin/grunt-fingerprint), [grunt-sweet](https://github.com/sapegin/grunt-sweet)
* [grunt-exec](https://github.com/jharding/grunt-exec)