Skip to content
Snippets Groups Projects
Commit 0f7b3595 authored by khawkins's avatar khawkins
Browse files

Include optional Motion UI in build process

For #29
parent 731842e3
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,7 @@
// 34. Title Bar
// 35. Tooltip
// 36. Top Bar
// 37. Animations
// 38. Invoke build process
/**
......@@ -102,6 +103,7 @@
@import 'libraries/foundation-6/scss/components/top-bar';
@import 'libraries/foundation-6/scss/components/thumbnail';
@import 'libraries/foundation-6/scss/components/tooltip';
@import 'libraries/motion-ui/motion-ui';
// 1. Global
// ---------
......@@ -626,7 +628,11 @@ $topbar-title-spacing: 1rem;
$topbar-input-width: 200px;
$topbar-unstack-breakpoint: medium;
// 37. Invoke build process
// 37. Animations
// -----------
$use-animations: false;
// 38. Invoke build process
// ------------------------
@mixin foundation-everything($flex: false) {
......@@ -676,6 +682,11 @@ $topbar-unstack-breakpoint: medium;
@include foundation-visibility-classes;
@include foundation-float-classes;
@if $use-animations {
@include motion-ui-transitions;
@include motion-ui-animations;
}
@if $flex {
@include foundation-flex-classes;
}
......
......@@ -19,12 +19,13 @@
"//@18": [
"-- Our buildscript: With this line we concat all libraries to be installed at once --"
],
"libraries": "npm run tablesorter && npm run foundation-update && npm run message_finished",
"libraries": "npm run tablesorter && npm run foundation-update && npm run motion-ui-update && npm run message_finished",
"//@22": [
"-- All our libraries, not intended to be run indiviudually --"
],
"tablesorter": "wget https://github.com/Mottie/tablesorter/archive/master.zip -d ./libraries/tablesorter.zip && extract-zip ./libraries/tablesorter.zip ./libraries/ && del ./libraries/tablesorter && mve ./libraries/tablesorter-master ./libraries/tablesorter && del ./libraries/tablesorter.zip",
"foundation-update": "wget https://github.com/zurb/foundation-sites/archive/develop.zip -d ./libraries/foundation-6.zip && del ./libraries/foundation-6 && extract-zip ./libraries/foundation-6.zip ./libraries/foundation-6/ && del ./libraries/foundation-6.zip && echo \"Copying foundation JS files one level up as they've moved...\" && ncp ./libraries/foundation-6/foundation-sites-develop/ ./libraries/foundation-6/ && del ./libraries/foundation-6/foundation-sites-develop/ && echo \"Latest version of foundation downloaded, you'll need to run 'npm run scss' and 'npm run js' to build\"",
"motion-ui-update": "wget https://github.com/zurb/motion-ui/archive/master.zip -d ./libraries/motion-ui.zip && del ./libraries/motion-ui && extract-zip ./libraries/motion-ui.zip ./libraries/motion-ui/ && del ./libraries/motion-ui.zip && echo \"Copying Motion UI files one level up as they've moved...\" && ncp ./libraries/motion-ui/motion-ui-master/ ./libraries/motion-ui/ && del ./libraries/motion-ui/motion-ui-master/ && echo \"Latest version of Motion UI downloaded, you'll need to run 'npm run scss' to build\"",
"old-foundation-update": "wget https://github.com/zurb/foundation-sites/archive/develop.zip -d ./libraries/foundation-6.zip && del ./libraries/foundation-6 && extract-zip ./libraries/foundation-6.zip ./libraries/foundation-6/ && del ./libraries/foundation-6.zip && echo \"Copying foundation JS files one level up as they've moved...\" && ncp ./libraries/foundation-6/js/vendor/ ./libraries/foundation-6/js/ ",
"message_finished": "echo \"All done\""
},
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment