This repository has been archived by the owner on May 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Removing dependency on Grunt * Move documentation build into npm script * move uw-frame-static build into npm script * Remove obsolute build.sh scripts * Add static:dev and docs:dev npm targets These targets are for building, watching, and serving the docs and static sub-projects. The Gruntfile.js should be obsolete with this change. * Fix formatting * Install rimraf, not rifraf * Docker build without grunt
- Loading branch information
Showing
8 changed files
with
59 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ node_modules | |
npm-debug.log | ||
*.iml | ||
*.swp | ||
|
||
\.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
'use strict'; | ||
var less = require('less'); | ||
var exec = require('child_process').exec; | ||
|
||
var exec_handler = function(error, stdout, stderr) { | ||
if (error) throw error; | ||
} | ||
|
||
exec('cp -r uw-frame-components/* uw-frame-static/target', exec_handler); | ||
|
||
exec('cp uw-frame-static/superstatic.json uw-frame-static/target/', exec_handler); | ||
|
||
exec('mkdir -p uw-frame-static/target/css/themes', exec_handler); | ||
|
||
|
||
var themes = ['uw-madison', 'uw-system', 'uw-river-falls', | ||
'uw-stevens-point', 'uw-milwaukee', 'uw-whitewater', 'uw-stout', | ||
'uw-superior', 'uw-platteville', 'uw-parkside', 'uw-oshkosh', | ||
'uw-greenbay', 'uw-lacrosse', 'uw-eau-claire', 'uw-extension', | ||
'uw-colleges']; | ||
|
||
|
||
for (var i = 0; i < themes.length; i++) { | ||
var cmd = 'node_modules/.bin/lessc -x uw-frame-components/css/themes/' + | ||
themes[i] + '.less > uw-frame-static/target/css/themes/' + | ||
themes[i] + '.css'; | ||
exec(cmd, exec_handler); | ||
} | ||
|
This file was deleted.
Oops, something went wrong.