Created
September 18, 2014 15:36
-
-
Save kristianmandrup/712a9ce74d8aa2579a8a to your computer and use it in GitHub Desktop.
Ember with Rachet for ember-config generator
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
/* | |
ratchet/ | |
├── css/ | |
│ ├── ratchet.css | |
│ ├── ratchet.min.css | |
│ ├── ratchet-theme-android.css | |
│ ├── ratchet-theme-android.min.css | |
│ ├── ratchet-theme-ios.css | |
│ ├── ratchet-theme-ios.min.css | |
├── js/ | |
│ ├── ratchet.js | |
│ └── ratchet.min.js | |
└── fonts/ | |
├── ratchicons.eot | |
├── ratchicons.svg | |
├── ratchicons.ttf | |
└── ratchicons.woff | |
https://gist.github.com/cavneb/26c4a12b1f77ae868232 | |
*/ | |
// brocs/ratchetjs.js | |
module.exports = function(app) { | |
app.import('vendor/ratchet/js/modals.js'); | |
app.import('vendor/ratchet/js/popovers.js'); | |
app.import('vendor/ratchet/js/segmented-controllers.js'); | |
app.import('vendor/ratchet/js/sliders.js'); | |
app.import('vendor/ratchet/js/toggles.js'); | |
} | |
// brocs/rachet-fonts.js | |
var pickFiles = require('broccoli-static-compiler'); | |
module.exports = pickFiles('vendor/ratchet/fonts', { | |
srcDir: '/', | |
files: ['ratchicons.eot', 'ratchicons.svg', 'ratchicons.ttf', 'ratchicons.woff'], | |
destDir: '/fonts' | |
}); | |
//top of app.scss | |
"@import " + bowerDir + "ratchet/sass/ratchet" | |
// Otherwise: Brocfile? | |
app.import('vendor/ratchet/css/rachet.css'); | |
// Brocfile | |
var mergeTrees = require('broccoli-merge-trees'); | |
var ratchetFonts = require (./brocs/ratchet-fonts); | |
require (./brocs/rachetjs)(app); | |
module.exports = mergeTrees([app.toTree(), ratchetFonts]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment