Commit 4db4c6a1 authored by Sebastian Castro's avatar Sebastian Castro

Use gogocartoJs as npm package instead of repository

parent dd77ec7b
......@@ -37,7 +37,7 @@ gulp.task('scriptsElementForm', function() {
});
gulp.task('scriptsLibs', function() {
gulp.src(['node_modules/GoGoCartoJs/dist/gogocarto.js'])
gulp.src(['node_modules/gogocarto-js/dist/gogocarto.js'])
.pipe(gulp.dest('web/js'));
return gulp.src(['src/Biopen/GeoDirectoryBundle/Resources/js/libs/**/*.js',
'src/Biopen/CoreBundle/Resources/js/libs/**/*.js',
......@@ -57,11 +57,11 @@ gulp.task('sass', function () {
});
gulp.task('gogocarto_assets', function() {
gulp.src(['node_modules/GoGoCartoJs/dist/*.css*',])
gulp.src(['node_modules/gogocarto-js/dist/*.css*',])
.pipe(gulp.dest('web/assets/css'));
gulp.src(['node_modules/GoGoCartoJs/dist/fonts/**/*',])
gulp.src(['node_modules/gogocarto-js/dist/fonts/**/*',])
.pipe(gulp.dest('web/assets/css/fonts'));
gulp.src(['node_modules/GoGoCartoJs/dist/images/**/*'])
gulp.src(['node_modules/gogocarto-js/dist/images/**/*'])
.pipe(gulp.dest('web/assets/css/images'));
});
......@@ -123,10 +123,10 @@ gulp.task('watch', function() {
gulp.watch(['src/Biopen/GeoDirectoryBundle/Resources/js/**/*.js', '!src/Biopen/GeoDirectoryBundle/Resources/js/element-form/**/*.js'],
['scriptsExternalPages']);
gulp.watch(['node_modules/GoGoCartoJs/dist/**/*'],
gulp.watch(['node_modules/gogocarto-js/dist/**/*'],
['gogocarto_assets']);
gulp.watch(['src/Biopen/GeoDirectoryBundle/Resources/js/libs/**/*.js','src/Biopen/CoreBundle/Resources/js/libs/**/*.js','node_modules/GoGoCartoJs/dist/gogocarto.js'], ['scriptsLibs']);
gulp.watch(['src/Biopen/GeoDirectoryBundle/Resources/js/libs/**/*.js','src/Biopen/CoreBundle/Resources/js/libs/**/*.js','node_modules/gogocarto-js/dist/gogocarto.js'], ['scriptsLibs']);
gulp.watch(['src/Biopen/CoreBundle/Resources/js/home.js'], ['scriptsHome']);
// Watch image files
......
......@@ -4,10 +4,6 @@
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"GoGoCartoJs": {
"version": "github:pixelhumain/gogocartojs#f72bf89580062c584d1427291b2923241e280cad",
"from": "github:pixelhumain/gogocartojs"
},
"JSONStream": {
"version": "1.3.4",
"resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.4.tgz",
......@@ -2886,6 +2882,11 @@
"sparkles": "^1.0.0"
}
},
"gogocarto-js": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/gogocarto-js/-/gogocarto-js-1.1.1.tgz",
"integrity": "sha512-PfGU3/JQoXZzKHeyo5toed9KyqryD0/wsOd4H0N3jk4Om3KuwzylJTehGQ9gOJGMPmhDJFu7vd7sSL1mGj+TXg=="
},
"graceful-fs": {
"version": "3.0.11",
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-3.0.11.tgz",
......
{
"name": "GoGoCarto",
"version": "2.0.0",
"homepage": "https://github.com/pixelhumain/GoGoCarto",
"homepage": "https://gitlab.adullact.net/pixelhumain/GoGoCarto",
"description": "Collaborative mapping directory",
"keywords": [
"map",
......@@ -12,14 +12,11 @@
"license": "GPL-3.0",
"repository": {
"type": "git",
"url": "https://github.com/pixelhumain/GoGoCarto.git"
"url": "https://gitlab.adullact.net/pixelhumain/GoGoCarto.git"
},
"engines": {
"node": "6.5.0"
},
"dependencies": {
"GoGoCartoJs": "github:pixelhumain/gogocartojs"
},
"devDependencies": {
"del": "^2.2.2",
"gulp": "^3.9.1",
......@@ -32,5 +29,8 @@
"gulp-uglify": "^2.0.0",
"node-notifier": "^4.6.1",
"watchify": "^3.8.0"
},
"dependencies": {
"gogocarto-js": "^1.1.1"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment