hof 20.2.0-sass-config-additions-beta → 20.2.2

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -65,6 +65,10 @@ It is recommended to alias `hof-build` to an npm script in your package.json.
65
65
  - `images` - copies images from ./assets/images directory to ./public/images
66
66
  - `translate` - compiles translation files
67
67
 
68
+ Note: For SASS compilation it's possible to additionally configure the following options via the hof.settings file (see the configuration section below)
69
+ - `outputStyle` - Controls whether the CSS output is compressed or not, expanded (default) = non compressed and compressed = compressed CSS output.
70
+ - `quietDeps` - This controls whether you get deprecation warning shown in the console output, if set to false (default) SASS deprecation warnings will be shown in the console, if set to true then deprecation warnings will not be shown in the console output.
71
+
68
72
  ## Watch
69
73
 
70
74
  You can additionally run a `watch` task to start a server instance, which will automatically restart based on changes to files. This will also re-perform the tasks above when relevant files change.
@@ -53,7 +53,11 @@ function setup(summary) {
53
53
  }
54
54
 
55
55
  function validation() {
56
- var summaries = helpers.getElementsByClass(document.getElementById('content'), 'div', 'validation-summary');
56
+ var summaries = [];
57
+
58
+ if (document.getElementById('content')) {
59
+ summaries = helpers.getElementsByClass(document.getElementById('content'), 'div', 'validation-summary');
60
+ }
57
61
 
58
62
  if (summaries.length) {
59
63
  summary = summaries[0];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "20.2.0-sass-config-additions-beta",
4
+ "version": "20.2.2",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",
@@ -79,12 +79,12 @@
79
79
  "nodemailer-ses-transport": "^1.5.0",
80
80
  "nodemailer-smtp-transport": "^2.7.4",
81
81
  "nodemailer-stub-transport": "^1.1.0",
82
- "notifications-node-client": "^5.1.1",
82
+ "notifications-node-client": "^6.0.0",
83
83
  "redis": "^3.1.2",
84
84
  "reqres": "^3.0.1",
85
85
  "request": "^2.79.0",
86
86
  "rimraf": "^3.0.2",
87
- "sass": "^1.35.2",
87
+ "sass": "^1.56.2",
88
88
  "serve-static": "^1.14.1",
89
89
  "uglify-js": "^3.14.3",
90
90
  "underscore": "^1.12.1",
package/sandbox/README.md CHANGED
@@ -45,10 +45,10 @@ Install the dependencies
45
45
  yarn
46
46
  ```
47
47
 
48
- Move into the example folder
48
+ Move into the sandbox folder
49
49
 
50
50
  ```bash
51
- cd example
51
+ cd sandbox
52
52
  ```
53
53
 
54
54
  Install any example app specific dependencies
@@ -63,4 +63,4 @@ Run in development mode
63
63
  yarn start:dev
64
64
  ```
65
65
 
66
- go to http://localhost:8080/
66
+ go to http://localhost:8082/