-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpconfig.coffee
More file actions
51 lines (47 loc) · 2.34 KB
/
Copy pathgulpconfig.coffee
File metadata and controls
51 lines (47 loc) · 2.34 KB
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
pkg = require './package.json'
isTeamCity = process?.env?.TEAMCITY_VERSION?
output =
jsDir: 'dist'
files =
js:
app: 'src/**/*.js'
module.exports =
output: output
files: files
jshint:
reporter: if (isTeamCity) then 'jshint-teamcity' else 'jshint-stylish'
jsmin:
mangle: false
output:
indent_start : 0 # start indentation on every line (only when `beautify`)
indent_level : 1 # indentation level (only when `beautify`)
quote_keys : false # quote all keys in object literals?
space_colon : true # add a space after colon signs?
ascii_only : false # output ASCII-safe? (encodes Unicode characters as ASCII)
inline_script : false # escape "</script"?
width : 200 # informative maximum line width (for beautified output)
max_line_len : 32000 # maximum line length (for non-beautified output)
beautify : false # beautify output?
bracketize : false # use brackets every time?
comments : 'some' # output comments?
semicolons : true # use semicolons to separate statements? (otherwise, newlines)
compress:
sequences : true # join consecutive statemets with the “comma operator”
properties : true # optimize property access: a["foo"] → a.foo
dead_code : true # discard unreachable code
drop_debugger : true # discard “debugger” statements
unsafe : false # some unsafe optimizations (see below)
conditionals : true # optimize if-s and conditional expressions
comparisons : true # optimize comparisons
evaluate : true # evaluate constant expressions
booleans : true # optimize boolean expressions
loops : true # optimize loops
unused : false # drop unused variables/functions
hoist_funs : true # hoist function declarations
hoist_vars : false # hoist variable declarations
if_return : true # optimize if-s followed by return/continue
join_vars : true # join var declarations
cascade : true # try to cascade `right` into `left` in sequences
side_effects : false # drop side-effect-free statements
warnings : true # warn about potentially dangerous optimizations/code
global_defs : {} # global definitions