Permalink
Browse files

Copy he.js from node_modules to local utils during build and remove r…

…eferences to node_modules folder.
  • Loading branch information...
1 parent 78328fc commit 6f535120b5fed3a09f619a66390fb6e27f747029 @cdujeu cdujeu committed Oct 17, 2016
@@ -1,3 +1,4 @@
+/res/js/ui/prototype/util/he.js
res/js/core
res/js/vendor/nodejs/bundle*
res/js/pydio.min.js
@@ -38,7 +38,7 @@ var gui_ajax_core = [
'res/js/vendor/webfx/ajxptree.js',
'res/js/vendor/chosen/event.simulate.js',
'res/js/vendor/chosen/chosen.proto.js',
- 'node_modules/he/he.js',
+ 'res/js/ui/prototype/util/he.js',
'res/js/core/model/User.js',
'res/js/core/http/ResourcesManager.js',
'res/js/core/model/RemoteNodeProvider.js',
@@ -99,6 +99,14 @@ module.exports = function(grunt) {
DEST: 'tmp'
}
},
+ copy: {
+ debug: {
+ expand: true,
+ src: 'node_modules/he/he.js',
+ dest: 'res/js/ui/prototype/util',
+ flatten:true
+ },
+ },
uglify: {
options: {
mangle: false,
@@ -234,10 +242,12 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-babel');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
+ grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-run');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('assemble-less');
grunt.registerTask('type:js', [
+ 'copy:debug',
'babel:dist',
'uglify:js',
'babel:materialui',
@@ -34,6 +34,7 @@
"grunt-babel": "~5.0.3",
"grunt-contrib-uglify": "~0.9.2",
"grunt-contrib-watch": "~0.6.1",
+ "grunt-contrib-copy": "1.0.0",
"grunt-browserify": "~4.0.1",
"grunt-env": "~0.4.4",
"grunt-run":"~0.5.2",
@@ -15,7 +15,7 @@
<!--[if IE 7]>
<script src="plugins/gui.ajax/res/js/vendor/es6/json3.min.js"></script>
<![endif]-->
- <script src="plugins/gui.ajax/node_modules/he/he.js"></script>
+ <script src="plugins/gui.ajax/res/js/ui/prototype/util/he.js"></script>
<?php
print($ADDITIONAL_FRAMEWORKS);

0 comments on commit 6f53512

Please sign in to comment.