- Склонировать репозиторий.
- Установить
nodejs
. - Выполнить
npm install
в корне репозитория. - Выполнить
grunt debug
в корне репозитория для однократной сборки илиgrunt --force
для слежения за изменениями в папкеsource
и автосборке. - Таким образом, в папке
debug
будет папочкаchrome
(экстеншон для Хрома) и файл[email protected]
(аддон для ФФ).
- Все файлы из
source/superhero/*.js
собираются вsuperhero.js
. - Все файлы из
source/forum/*.js
собираются вforum.js
. - Загрузчик аддона для ФФ.
- Загрузчик экстеншона для Хрома.
.
|-help_guide/ (картинки для окошка помощи)
|-images/ (картинки: фон и лопатка)
|-release/ (текущие релизные версии аддона и экстеншона)
|-source/ (весь исходный код)
|-chrome/ (специфичные для Хрома файлы)
|-firefox/ (специфичные для ФФ файлы)
|-superhero/ (файлы, касающиеся страницы героя /superhero)
|-forum/ (файлы, касающиеся форума /forums/*)
|-*.js (разные скрипты)
|-*.css (разные файлы стилей)
|-* (разные файлы сборки дополнения, номера версии, файла обновления для ФФ и т.п.)
Обычно код редактируется только в source/*
, source/superhero/*
и source/forum/*
.
- Clone the repo.
- Install
nodejs
. - Execute
npm install
in the repo's root folder. - Execute
grunt debug
in the repo's root folder to build once orgrunt --force
to watch for changes insource
folder and rebuild every time. - So in the
debug
folder you'll havechrome
folder (unpacked extension for Chrome) and[email protected]
file (add-on for Firefox).
- All files from
source/superhero/*.js
compile tosuperhero.js
. - All files from
source/forum/*.js
compile toforum.js
. - Loader of add-on for Firefox.
- Loader of extension for Chrome.
.
|-help_guide/ (images for help dialog)
|-images/ (images: default background and shovel)
|-release/ (current releasse versions of add-on and extension)
|-source/ (all the source code)
|-chrome/ (Chrome extension specific files)
|-firefox/ (Firefox add-on specific files)
|-superhero/ (files, concerning /superhero page)
|-forum/ (files, concerning /forums/* pages)
|-*.js (various scripts)
|-*.css (various stylesheets)
|-* (other files of project building, version number, update file for Firefox add-on etc.)
Usually only the code from source/*
, source/superhero/*
and source/forum/*
should be edited.