Project

General

Custom queries

Profile

Actions

Refactor #12364

closed

Use NPM+Webpack to manage external assets (js, css, fonts)

Added by Tomer Brisker over 9 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Packaging
Target version:

Description

Currently, some assets are manually inserted into `vendor/assets` and not automatically updated, while others are added as gem files which do update automatically but require additional packaging work every time they change.
It would be beneficial to use bower to maintain those assets for the following reasons:
  1. Reduce packaging work.
  2. Allow more frequent updates of included assets, as updates will not require separate repackaging.
  3. Allow simple updates to assets which don't have a gemified version.
  4. Allow timely updates to assets who's gemified versions are not up to date.

Related issues 5 (0 open5 closed)

Related to Foreman - Bug #16046: "Don't know how to build task 'webpack:compile'" running jenkins:integration taskClosedDominic Cleal08/10/2016Actions
Related to Foreman - Bug #16074: development version listens on 0.0.0.0:3000 and 0.0.0.0:3808 by defaultClosedShlomi Zadok08/11/2016Actions
Related to Foreman - Feature #16160: Add shell script to start foreman-webpackClosedLukas Zapletal08/18/2016Actions
Related to Foreman - Bug #17236: webpack source maps do not workClosedOhad Levy11/06/2016Actions
Related to Discovery - Bug #19403: js error of missing jquery.cookieClosedTomer Brisker04/27/2017Actions

Added by Tomer Brisker over 8 years ago

Revision e2a57bfe (diff)

Fixes #12364 - Use NPM+Webpack to handle external assets

This commit introduces NPM and Webpack to handle external assets.
It also provides ES6 support and a live reload dev server that can be
used by running `foreman start` instead of `rails start`.
Do not forget to run `npm install` before starting the server.
This commit also contains some code that was created by Ohad Levy
<>

Added by Tomer Brisker over 8 years ago

Revision 42ba771c (diff)

Refs #12364 - Allow running webpack dev server on any hostname

Currently, SecureHeaders only allows running the webpack dev server from
localhost or 0.0.0.0, and only using http. This leads to issues when
attempting to run foreman inside a virtual machine or using https. This
patch will generate the correct headers during runtime, to allow the dev
server to be run on the same host and protocol as the request uses.

Added by Tomer Brisker over 8 years ago

Revision 31bbcd81 (diff)

Refs #12364 - Only load the dev server js if it's enabled

Also allow disabling the dev server from the settings file

Added by Marek Hulán over 8 years ago

Revision ab5c7c28 (diff)

Refs #12364 - webpack server can serve assets on https

Actions

Also available in: Atom PDF