Commit Graph

29 Commits

Author SHA1 Message Date
Martyn Inglis
260e1bad85 Removed build to heroku 2016-01-06 11:44:13 +00:00
minglis
f9457d739e Merge pull request #41 from alphagov/putting-aws-back
Putting AWS back
2016-01-06 10:41:21 +00:00
Martyn Inglis
6943c88c48 Putting AWS back 2016-01-06 09:40:53 +00:00
Chris Hill-Scott
74da3b1adf Use EcmaScript 6, w/ transpiling for compatibility
ES6 has some nice new features. Specifically relevant to this piece of
work are:

Arrow functions[1], whose `this` context is bound the value of `this` in the
current scope and can’t be overidden. The code is cleaner as a result, and
doesn’t need the addition of a bind polyfill for older browsers.

Template strings[2], which are similar to triple-quoted multi line strings in
Python. This means less fiddly and error-prone string concatenation.

This commit adds Babel[3] to the Gulp pipeline. This transpiles Javascript
written to the ES6 specification into code which is compatible with older
browsers that don’t understand ES6 syntax.

It also rewrites the gulpfile itself using some ES6 syntax, for the same reasons.

1. https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Functions/Arrow_functions
2. https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/template_strings
3. https://babeljs.io
2016-01-06 09:39:42 +00:00
Chris Hill-Scott
5ebeec08ae Use a Node-based tools for handling assets
…or how to move a bunch of things from a bunch of different places into
`app/static`.

There are three main reasons not to use Flask Assets:
- It had some strange behaviour like only
- It was based on Ruby SASS, which is slower to get new features than libsass,
  and meant depending on Ruby, and having the SASS Gem globally installed—so
  you’re already out of being a ‘pure’ Python app
- Martyn and I have experience of doing it this way on Marketplace, and we’ve
  ironed out the initial rough patches

The specific technologies this introduces, all of which are Node-based:
- Gulp – like a Makefile written in Javascript
- NPM – package management, used for managing Gulp and its related dependencies
- Bower – also package management, and the only way I can think to have
  GOV.UK template as a proper dependency

…speaking of which, GOV.UK template is now a dependency. This means it can’t be
modified at all (eg to add a global `#content` wrapper), so every page now
inherits from a template that has this wrapper. But it also means that we have a
clean upgrade path when the template is modified.

Everything else (toolkit, elements) I’ve kept as submodules but moved them to a
more logical place (`app/assets` not `app/assets/stylesheets`, because they
contain more than just SASS/CSS).
2016-01-05 13:12:35 +00:00
Rebecca Law
0eabdc06be try again 2016-01-05 11:59:25 +00:00
Rebecca Law
41b59fdebe Remove bundle install 2016-01-05 11:53:09 +00:00
Rebecca Law
ea9187a7ec Removing the aws deployment commands until aws is running again 2016-01-05 11:48:24 +00:00
Rebecca Law
eab451a38b Removing ruby versions 2016-01-05 11:39:54 +00:00
Rebecca Law
c691becba2 Trying version 1.9.3 2016-01-05 11:28:57 +00:00
Rebecca Law
4cb2310359 Use version 2.0.0 2016-01-05 11:22:03 +00:00
Rebecca Law
8c72166ebe Bah! Another attempt. 2016-01-05 11:04:29 +00:00
Rebecca Law
e3d96644c7 Attempts at fixing the deploy - but it seems PR 33 will fix it anyway. 2016-01-05 10:51:04 +00:00
Nicholas Staples
989d914326 Update the travis file to upgrade ruby version to 2.0.0. 2016-01-04 13:55:29 +00:00
Martyn Inglis
249de62c30 Added codedeploy back in 2015-12-17 10:01:55 +00:00
Martyn Inglis
86c98b413a Removed AWS deploy for now 2015-12-16 14:26:09 +00:00
Martyn Inglis
4ffadc39c4 Trap errors in stop script in AWS, and put heroku back as a deploy ganet 2015-12-16 14:15:51 +00:00
Martyn Inglis
4a8f70b3b8 Updated travis for codedeploy deploy 2015-12-16 14:10:56 +00:00
Martyn Inglis
e9035b8c0e Updated travis for codedeploy deploy 2015-12-16 14:03:17 +00:00
Martyn Inglis
ec08a5229f Updated travis for codedeploy deploy 2015-12-16 14:02:12 +00:00
Martyn Inglis
3247330da5 Updated travis for codedeploy deploy 2015-12-16 14:00:38 +00:00
Chris Hill-Scott
262cbffad8 Install SASS Gem on Travis
This is what was making the build fail :(((((
2015-12-11 16:31:29 +00:00
Rebecca Law
3f017b30f2 108536490: add the proxy_fix 2015-12-01 10:00:07 +00:00
Rebecca Law
12eebb09b2 108536234: Added before script to create db 2015-11-25 15:53:25 +00:00
Rebecca Law
cb28104068 108536234: added database url 2015-11-25 15:48:32 +00:00
Rebecca Law
fdd5d6c006 108536234: Add postgres for travis 2015-11-25 15:36:51 +00:00
Rebecca Law
9c07a61224 add deploy for travis 2015-11-20 16:37:31 +00:00
Rebecca Law
feb3b14a0a Add trigger dependent build and slack notification 2015-11-20 09:51:42 +00:00
Rebecca Law
29012c78ee Initial creation of notify-admin-frontend 2015-11-18 16:19:40 +00:00