Starter kit for development theme of Redmine.
Please prepare an environment where can use Node.js, Docker (bundled Docker Compose), and Git in advance. When are ready, execute the following command.
$ git clone https://github.com/akabekobeko/redmine-theme-starter.git
$ cd redmine-theme-starter
$ npm i
If you plan to release a theme, replace mytheme
in the config file below with your own name.
package.json
docker-compose.yml
Transpile CSS file from SCSS file.
$ npm run build
Invokes a tool that detects changes in the SCSS file and transpile it into the CSS file.
$ npm start
Stop is Ctrl + C.
Check the theme on Redmine.
$ docker-compose up -d
- Access to http://localhost:8080/ on web browser
- Sign in to Redmine as an administrator
- Select my theme name as the theme from the administration page
- Reload the Redmine page in web browser when the theme's SCSS (CSS) file is updated
$ docker-compose stop
To release the theme, execute the following command.
$ npm run release
A theme directory will be generated based on name
in package.json
. At the same time, a ZIP archive file with version
added to the name is generated.
e.g.
mytheme
mytheme-1.0.0.zip