From 8c3bdc853a5237a3bef6e26fcf22132db7e8bd9c Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Wed, 22 Mar 2017 19:30:54 +0000 Subject: Creates Frontend Style guide --- doc/development/rake_tasks.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'doc/development/rake_tasks.md') diff --git a/doc/development/rake_tasks.md b/doc/development/rake_tasks.md index dcd978c4cd3..ec9e4dcc59d 100644 --- a/doc/development/rake_tasks.md +++ b/doc/development/rake_tasks.md @@ -42,6 +42,20 @@ To run several tests inside one directory: If you want to use [Spring](https://github.com/rails/spring) set `ENABLE_SPRING=1` in your environment. +## Compile Frontend Assets + +You shouldn't ever need to compile frontend assets manually in development, but +if you ever need to test how the assets get compiled in a production +environment you can do so with the following command: + +``` +RAILS_ENV=production NODE_ENV=production bundle exec rake gitlab:assets:compile +``` + +This will compile and minify all JavaScript and CSS assets and copy them along +with all other frontend assets (images, fonts, etc) into `/public/assets` where +they can be easily inspected. + ## Generate API documentation for project services (e.g. Slack) ``` -- cgit v1.2.3