Skip to content

Commit 6eee434

Browse files
author
Derek Kinsman
committed
Merge branch 'master' into derek
2 parents 8cf4009 + e61be22 commit 6eee434

File tree

4 files changed

+3709
-3690
lines changed

4 files changed

+3709
-3690
lines changed

.jshintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"unused": "vars",
1414

1515
"node": true,
16-
16+
1717
"trailing": true,
1818
"curly": true,
1919
"indent": 2

Gruntfile.js

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,18 @@ module.exports = function(grunt) {
5555
findNestedDependencies: true,
5656
include: ['src/app'],
5757
onBuildWrite: function( name, path, contents ) {
58-
return require('amdclean').clean(contents);
58+
return require('amdclean').clean({
59+
code: contents,
60+
escodegen: {
61+
'comment': true,
62+
'format': {
63+
'indent': {
64+
'style': ' ',
65+
'adjustMultilineComment': true
66+
}
67+
}
68+
}
69+
});
5970
},
6071
optimize: 'none',
6172
out: 'lib/p5.js',
@@ -107,7 +118,10 @@ module.exports = function(grunt) {
107118
'filters': 'src/image/filters'
108119
},
109120
useStrict: true,
110-
wrap: true
121+
wrap: {
122+
start: '/*! p5.min.js v<%= pkg.version %> <%= grunt.template.today("mmmm dd, yyyy") %> */\n',
123+
end: ''
124+
}
111125
}
112126
},
113127
min: {
@@ -122,7 +136,10 @@ module.exports = function(grunt) {
122136
out: 'lib/p5.min.js',
123137
paths: '<%= requirejs.unmin.options.paths %>',
124138
useStrict: true,
125-
wrap: true
139+
wrap: {
140+
start: '/*! p5.min.js v<%= pkg.version %> <%= grunt.template.today("mmmm dd, yyyy") %> */\n',
141+
end: ''
142+
}
126143
}
127144
},
128145
yuidoc_theme: {

0 commit comments

Comments
 (0)