author | ymh <ymh.work@gmail.com> |
Fri, 08 Sep 2017 15:03:29 +0200 | |
changeset 543 | aaaf9b0b09f6 |
parent 537 | d2e6ee099125 |
permissions | -rw-r--r-- |
537
d2e6ee099125
upgrade ember + laravel + make everything work
ymh <ymh.work@gmail.com>
parents:
456
diff
changeset
|
1 |
/* eslint-env node */ |
d2e6ee099125
upgrade ember + laravel + make everything work
ymh <ymh.work@gmail.com>
parents:
456
diff
changeset
|
2 |
const EmberApp = require('ember-cli/lib/broccoli/ember-app'); |
d2e6ee099125
upgrade ember + laravel + make everything work
ymh <ymh.work@gmail.com>
parents:
456
diff
changeset
|
3 |
const pickFiles = require('broccoli-static-compiler'); |
d2e6ee099125
upgrade ember + laravel + make everything work
ymh <ymh.work@gmail.com>
parents:
456
diff
changeset
|
4 |
|
4 | 5 |
|
6 |
module.exports = function(defaults) { |
|
7 |
||
543 | 8 |
let app = new EmberApp(defaults, { |
20 | 9 |
outputPaths: { |
10 |
vendor: { |
|
11 |
js: '/assets/bo-client-vendor.js', |
|
12 |
css: '/assets/bo-client-vendor.css' |
|
13 |
} |
|
14 |
}, |
|
15 |
fingerprint: { |
|
16 |
enabled: false |
|
17 |
}, |
|
28 | 18 |
//storeConfigInMeta: false, |
4 | 19 |
// Add options here |
20 | 20 |
emberCliFontAwesome: { |
21 |
useScss: true |
|
22 |
}, |
|
4 | 23 |
sassOptions: { |
24 |
includePaths: [ |
|
25 |
'app/styles', |
|
26 |
], |
|
27 |
} |
|
28 |
}); |
|
29 |
||
20 | 30 |
// bootstrap |
31 |
app.import('bower_components/bootstrap-sass/assets/javascripts/bootstrap.js'); |
|
32 |
var bootstrapFonts = pickFiles('bower_components/bootstrap-sass/assets/fonts', { |
|
33 |
srcDir: '/', |
|
34 |
destDir: '/fonts' |
|
35 |
}); |
|
36 |
||
28 | 37 |
app.import({ |
38 |
development: 'bower_components/urijs/src/URI.js', |
|
39 |
production: 'bower_components/urijs/src/URI.min.js' |
|
40 |
}); |
|
41 |
app.import('vendor/shims/urijs.js', { |
|
42 |
exports: { |
|
43 |
'urijs': [ 'default' ] |
|
44 |
} |
|
45 |
}); |
|
20 | 46 |
|
47 |
// app.import('../src/vendor/bower_components/bootstrap-sass/assets/fonts/bootstrap/glyphicons-halflings-regular.woff', { |
|
48 |
// destDir: 'fonts' |
|
49 |
// }) |
|
50 |
||
4 | 51 |
// Use `app.import` to add additional libraries to the generated |
52 |
// output files. |
|
53 |
// |
|
54 |
// If you need to use different assets in different |
|
55 |
// environments, specify an object as the first parameter. That |
|
56 |
// object's keys should be the environment name and the values |
|
57 |
// should be the asset to use in that environment. |
|
58 |
// |
|
59 |
// If the library that you are including contains AMD or ES6 |
|
60 |
// modules that you would like to import into your application |
|
61 |
// please specify an object with the list of modules as keys |
|
62 |
// along with the exports of each module as its value. |
|
63 |
||
20 | 64 |
return app.toTree(bootstrapFonts); |
4 | 65 |
}; |