Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 6f53512

Browse files
committed
Copy he.js from node_modules to local utils during build and remove references to node_modules folder.
1 parent 78328fc commit 6f53512

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

core/src/plugins/gui.ajax/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/res/js/ui/prototype/util/he.js
12
res/js/core
23
res/js/vendor/nodejs/bundle*
34
res/js/pydio.min.js

core/src/plugins/gui.ajax/Gruntfile.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var gui_ajax_core = [
3838
'res/js/vendor/webfx/ajxptree.js',
3939
'res/js/vendor/chosen/event.simulate.js',
4040
'res/js/vendor/chosen/chosen.proto.js',
41-
'node_modules/he/he.js',
41+
'res/js/ui/prototype/util/he.js',
4242
'res/js/core/model/User.js',
4343
'res/js/core/http/ResourcesManager.js',
4444
'res/js/core/model/RemoteNodeProvider.js',
@@ -99,6 +99,14 @@ module.exports = function(grunt) {
9999
DEST: 'tmp'
100100
}
101101
},
102+
copy: {
103+
debug: {
104+
expand: true,
105+
src: 'node_modules/he/he.js',
106+
dest: 'res/js/ui/prototype/util',
107+
flatten:true
108+
},
109+
},
102110
uglify: {
103111
options: {
104112
mangle: false,
@@ -234,10 +242,12 @@ module.exports = function(grunt) {
234242
grunt.loadNpmTasks('grunt-babel');
235243
grunt.loadNpmTasks('grunt-contrib-uglify');
236244
grunt.loadNpmTasks('grunt-contrib-watch');
245+
grunt.loadNpmTasks('grunt-contrib-copy');
237246
grunt.loadNpmTasks('grunt-run');
238247
grunt.loadNpmTasks('grunt-contrib-cssmin');
239248
grunt.loadNpmTasks('assemble-less');
240249
grunt.registerTask('type:js', [
250+
'copy:debug',
241251
'babel:dist',
242252
'uglify:js',
243253
'babel:materialui',

core/src/plugins/gui.ajax/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"grunt-babel": "~5.0.3",
3535
"grunt-contrib-uglify": "~0.9.2",
3636
"grunt-contrib-watch": "~0.6.1",
37+
"grunt-contrib-copy": "1.0.0",
3738
"grunt-browserify": "~4.0.1",
3839
"grunt-env": "~0.4.4",
3940
"grunt-run":"~0.5.2",

core/src/plugins/gui.ajax/res/html/gui_debug.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<!--[if IE 7]>
1616
<script src="plugins/gui.ajax/res/js/vendor/es6/json3.min.js"></script>
1717
<![endif]-->
18-
<script src="plugins/gui.ajax/node_modules/he/he.js"></script>
18+
<script src="plugins/gui.ajax/res/js/ui/prototype/util/he.js"></script>
1919
<?php
2020
print($ADDITIONAL_FRAMEWORKS);
2121

0 commit comments

Comments
 (0)