This repository has been archived by the owner on Mar 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mimosa-config.coffee
71 lines (64 loc) · 2.58 KB
/
mimosa-config.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
exports.config = {
modules: [
'adhoc-module', # Adhoc scripts, for example Bower fixing
'bower', # Manage dependencies with Bower.io
'coffeescript', # Allow converting of CoffeeScript
'copy', # Use the copy module for misc files
'csslint', # Lint CSS and find mistakes/unclean styles
'jshint', # Lint JS and find mistakes/unclean code
'less', # Compile LESS-Styles to CSS
'live-reload', # Reload changes from editor directly in browser
'minify-js', # Minify JavaScript, if wanted
'minify-css', # Minify Stylesheets, if wanted
'require', # Use the Require-Plugin, needed for Handlebars and CSS-Require
'server', # Use the Server-Plugin, used with ExpressJS
'server-reload' # Reload the server if Server-Files change
'testem-require', # Write tests with Testem
]
# Tell Mimosa server where the new server views are stored.
server:
views:
path: 'server/views'
# This will reload the server if any view inside server/views will be changed.
liveReload:
additionalDirs: [
'server/views'
]
# This will tell Bower how to handle specific packages, some may not have
# a main entry in their bower.json or multiple files. To override the important
# files that bower should take, this settings are used.
bower:
copy:
mainOverrides:
'handlebars': [
'handlebars.js'
]
'semantic': [
'build/packaged/fonts': '../../fonts/vendor/semantic'
'build/packaged/images': '../../images/vendor/semantic'
'build/packaged/css/semantic.css'
'build/packaged/javascript/semantic.js'
]
'require-hbs': [
'hbs.js'
]
# Adhoc module allows us to execute local project/skeleton based scripts
# Easily without making them a module. They got injected into the Workflow automatically.
adhocModule:
modules: [
require ( './scripts/fix-bower' )
]
# Due to Windows compatibility issues I had to turn this off by default.
# You can create your own testscript using mimosa testscript and then execute it from the cli
testemRequire:
executeDuringBuild: false
executeDuringWatch: false
# Notice the added 'hbs', this tells Mimosa to ignore Handlebars-Files and just copy them to public.
# This way we can require them later with require-hbs
copy:
extensions: [
"js","css","png","jpg","jpeg","gif","html","eot","svg","ttf","woff",
"otf","yaml","kml","ico","htc","htm","json","txt","xml","xsd","map",
"md","mp4", "hbs"
]
}