@@ -65,8 +65,6 @@ module.exports = function (grunt) {
6565 cwd : 'src/' ,
6666 src : [
6767 'nls/{,*/}*.js' ,
68- 'package.json' ,
69- 'npm-shrinkwrap.json' ,
7068 'xorigin.js' ,
7169 'dependencies.js' ,
7270 'thirdparty/requirejs/require.js' ,
@@ -105,13 +103,7 @@ module.exports = function (grunt) {
105103 '!extensions/default/*/thirdparty/**/*.htm{,l}' ,
106104 'extensions/dev/*' ,
107105 'extensions/samples/**/*' ,
108- 'thirdparty/CodeMirror/addon/{,*/}*' ,
109- 'thirdparty/CodeMirror/keymap/{,*/}*' ,
110- 'thirdparty/CodeMirror/lib/{,*/}*' ,
111- 'thirdparty/CodeMirror/mode/{,*/}*' ,
112- '!thirdparty/CodeMirror/mode/**/*.html' ,
113- '!thirdparty/CodeMirror/**/*test.js' ,
114- 'thirdparty/CodeMirror/theme/{,*/}*' ,
106+ 'thirdparty/CodeMirror/**' ,
115107 'thirdparty/i18n/*.js' ,
116108 'thirdparty/text/*.js'
117109 ]
@@ -124,6 +116,22 @@ module.exports = function (grunt) {
124116 src : [ 'jsTreeTheme.css' , 'fonts/{,*/}*.*' , 'images/*' , 'brackets.min.css*' ]
125117 }
126118 ]
119+ } ,
120+ thirdparty : {
121+ files : [
122+ {
123+ expand : true ,
124+ dest : 'src/thirdparty/CodeMirror' ,
125+ cwd : 'src/node_modules/codemirror' ,
126+ src : [
127+ 'addon/{,*/}*' ,
128+ 'keymap/{,*/}*' ,
129+ 'lib/{,*/}*' ,
130+ 'mode/{,*/}*' ,
131+ 'theme/{,*/}*' ,
132+ ]
133+ }
134+ ]
127135 }
128136 } ,
129137 cleanempty : {
@@ -295,19 +303,7 @@ module.exports = function (grunt) {
295303 'spec' : '../test/spec' ,
296304 'text' : 'thirdparty/text/text' ,
297305 'i18n' : 'thirdparty/i18n/i18n'
298- } ,
299- map : {
300- "*" : {
301- "thirdparty/CodeMirror2" : "thirdparty/CodeMirror"
302- }
303- } ,
304- packages : [
305- {
306- name : "thirdparty/CodeMirror" ,
307- location : "node_modules/codemirror" ,
308- main : "lib/codemirror"
309- }
310- ]
306+ }
311307 }
312308 }
313309 }
@@ -355,7 +351,7 @@ module.exports = function (grunt) {
355351 'concat' ,
356352 /*'cssmin',*/
357353 /*'uglify',*/
358- 'copy' ,
354+ 'copy:dist ' ,
359355 'npm-install' ,
360356 'cleanempty' ,
361357 'usemin' ,
0 commit comments