-
Notifications
You must be signed in to change notification settings - Fork 2
/
freshenrc-example
69 lines (56 loc) · 2.12 KB
/
freshenrc-example
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
# Example of a .freshenrc configuration file
#
# Place a file like this in the root of the directory you wish freshen to serve
# All directories below the directory that freshen is started in will be
# watched. Use this option to set a regular expression matching directories that
# should not be watched. The root dir will always be included.
# This may be an array of RegExps or a string of space separated regular
# expressions.
exclude: './.git ./node_modules'
# Files to reload in the browser when they change. The value of `change`
# may be an array of RegExps or a string of regular expressions. If this is a
# string the end of line assertion '$' will be added to each
report:
change: 'css html js'
# Run command each time a file matching one of the suffixes or regular
# expressions in deps changes.
# The value of `deps` may be an Array of RegExps or a string similar to
# report.change above
build:
command: 'make'
deps: 'less md html'
# Port to access server at
port: 1024
# # http proxy - note that this requires http-proxy to be installed so that
# # freshen can require it
# ############
# proxy:
# # If a request matches this url
# from: '^/api/(.*)$'
# # rewite it to this url and send it returning the result
# to: 'http://localhost:8080/${1}'
# # retry this amount of times before bailing
# retry: 20
# Defaulted config values that can be overridden
################################################
# # Send at most 1 message to browsers in this amount of milliseconds This is
# # useful to avoid sending a lot of seperate requests to load files to browsers
# # when the build process changes many files
# delay: 150
# # Should terminal logging be in color?
# color: true
# # The whole page is loaded when change is reported. Set the following to true
# # to attempt to hot load only the changed resource
# load:
# js: true
# css: true
# png: true
# # Supply a custom mimetypes file
# mimeTypesFile: "mime.types"
# # Merge additional mime types that files can be served with
# mimeAdd:
# php: 'text/html'
# # How many retries the client attempts before giving up
# retries: 20
# # Help debugging
# debug: true