File tree Expand file tree Collapse file tree 4 files changed +3709
-3690
lines changed
Expand file tree Collapse file tree 4 files changed +3709
-3690
lines changed Original file line number Diff line number Diff line change 1313 "unused" : " vars" ,
1414
1515 "node" : true ,
16-
16+
1717 "trailing" : true ,
1818 "curly" : true ,
1919 "indent" : 2
Original file line number Diff line number Diff 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 : {
You can’t perform that action at this time.
0 commit comments