Skip to content

Commit

Permalink
Replace buildstyleCompressed with option to buildstyle.js
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRalphson committed Aug 8, 2017
1 parent 8e7811d commit 4b34a8b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ The `err` parameter is the result of the `ejs` rendering step.

Setting `customCss` to `true` will include the `pub/css/screen_overrides.css`,`pub/css/print_overrides.css` and `pub/css/theme_override.css` files, in which you can override any of the default Slate theme, to save you from having to alter the main css files directly. This should make syncing up with future Shins / Slate releases easier.

### Updating from Slate

* Note: changes to Slate CSS, Javascript etc may break assumptions made in Shins. Use at your own risk.
* The script `updateFromSlate` assumes you have Ruby Slate checked-out by the side of shins (i.e. in a sibling directory) and will copy .scss files, fonts, Javascript files etc.
* The `buildstyle.js` program can be used to process the .scss files to their .css equivalents. It takes one optional parameter, the `outputStyle` used by `node-sass`. This can be either `nested`, `expanded`, `compact` or `compressed`. Default is `nested`.

### Notes

* Windows is definitely supported
Expand Down
5 changes: 5 additions & 0 deletions buildstyle.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
#!/bin/env node

var fs = require('fs');
var sass = require('node-sass');
var assetFunctions = require('node-sass-asset-functions');

var outputStyle = process.argv.length > 2 ? process.argv[2] : 'nested';

function sassRender(infile,outfile) {
sass.render({
file: infile,
outputStyle : outputStyle,
functions: assetFunctions({
http_fonts_path: '../../source/fonts'
})
Expand Down
3 changes: 0 additions & 3 deletions buildstyleCompressed

This file was deleted.

2 changes: 1 addition & 1 deletion updateFromSlate
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# This script assumes you have Ruby Slate checkout by the side of shins
# This script assumes you have Ruby Slate checked-out by the side of shins
cp -r ../slate/source/fonts source/
cp -r ../slate/source/images source/
cp -r ../slate/source/includes source/
Expand Down

0 comments on commit 4b34a8b

Please sign in to comment.