gitlab-org--gitlab-foss/config
Jacob Schatz e45d6043e8 Merge branch 'js-content-for' into 'master'
Re-implement page-specific JS in a better way.

## What does this MR do?

This rebuilds the way we do page-specific JavaScript assets for a few reasons:

- The current implementation does not work with Subresource Integrity (!4808)
- The current implementation doesn't allow caching of libraries because each page we hook up with this system will have a separate application.js. Meaning that for every page that uses Ace Editor, we'd have to load Ace Editor plus any GitLab-specific scripts in the same file, making local caching of just Ace Editor impossible.
- The current implementation is rather hacky.

## Are there points in the code the reviewer needs to double check?

That Sprockets doesn't choke on this when we use precompiled assets.

## What are the relevant issue numbers?

#14372

## Does this MR meet the acceptance criteria?

- [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added
- [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [x] API support added
- Tests
  - [x] Added for this feature/bug
  - [x] All builds are passing
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

cc: @jschatz1 @pavelloz

Thanks to @pavelloz for his example implementation which was very useful.

See merge request !4883
2016-06-24 20:51:02 +00:00
..
environments Customize ActionMailer preview path 2016-05-25 16:56:06 -04:00
initializers Merge branch 'add-smtp-setting' into 'master' 2016-06-24 19:01:17 +00:00
locales Minor fixes after a final look at the diff. 2016-05-11 10:30:47 +05:30
application.rb Add precompilation for relevant assets. 2016-06-23 11:05:02 -06:00
aws.yml.example
boot.rb Enable the Rubocop DeprecatedClassMethods cop 2016-05-08 15:33:34 -06:00
database.yml.env
database.yml.mysql
database.yml.postgresql
dependency_decisions.yml Add LGPLv2 to license whiltelist 2016-06-07 10:14:18 -07:00
environment.rb
gitlab.teatro.yml Remove `wall_enabled` field from Project 2016-05-08 15:47:42 -04:00
gitlab.yml.example Move keep to ArtifactsController 2016-06-13 11:03:30 +01:00
license_finder.yml Resolve feedback. 2016-06-06 13:39:36 -06:00
mail_room.yml Don't require Gitlab::Redis in mail_room.yml if it's already defined 2016-06-10 13:44:45 +02:00
newrelic.yml
resque.yml.example
routes.rb Merge branch 'feature/runner-lock-on-project' into 'master' 2016-06-21 10:08:42 +00:00
secrets.yml.example
sidekiq.yml.example
unicorn.rb.example
unicorn.rb.example.development