mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Add autobahn as project dependency
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
language: php
|
language: php
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- SETUP_MODE=update
|
- SETUP_MODE=update JS_COMPILER=$TRAVIS_BUILD_DIR/closure/compiler.jar
|
||||||
- SETUP_MODE=install
|
- SETUP_MODE=install JS_COMPILER=$TRAVIS_BUILD_DIR/closure/compiler.jar
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- mysql
|
- mysql
|
||||||
@@ -11,6 +11,9 @@ services:
|
|||||||
- elasticsearch
|
- elasticsearch
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
- sudo apt-get update -qq && sudo apt-get install -qq scons inkscape python-setuptools
|
||||||
|
- sudo easy_install -U taschenmesser scour boto
|
||||||
|
- wget http://dl.google.com/closure-compiler/compiler-latest.zip && unzip compiler-latest.zip -d closure
|
||||||
- node --version
|
- node --version
|
||||||
- npm --version
|
- npm --version
|
||||||
- travis_retry npm install
|
- travis_retry npm install
|
||||||
|
59
Gruntfile.js
59
Gruntfile.js
@@ -31,12 +31,21 @@ module.exports = function(grunt) {
|
|||||||
"jquery.ui": ["npm", {"grunt": "build"}],
|
"jquery.ui": ["npm", {"grunt": "build"}],
|
||||||
"jquery-mobile": ["npm", {"grunt": "dist"}],
|
"jquery-mobile": ["npm", {"grunt": "dist"}],
|
||||||
"tinymce": ["npm", "jake"],
|
"tinymce": ["npm", "jake"],
|
||||||
"bootstrap": ["npm", {"make": "bootstrap"}]
|
"bootstrap": ["npm", {"make": "bootstrap"}],
|
||||||
|
"autobahnjs": [{"make":"build"}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
copy: {
|
copy: {
|
||||||
|
"autobahnjs": {
|
||||||
|
"expand": true,
|
||||||
|
"src": [
|
||||||
|
"<%= path.bower %>/autobahnjs/build/autobahn.min.js"
|
||||||
|
],
|
||||||
|
"dest": "<%= path.asset %>/autobahnjs/",
|
||||||
|
"flatten": true
|
||||||
|
},
|
||||||
"backbone": {
|
"backbone": {
|
||||||
"expand": true,
|
"expand": true,
|
||||||
"src": [
|
"src": [
|
||||||
@@ -83,6 +92,12 @@ module.exports = function(grunt) {
|
|||||||
"dest": "<%= path.asset %>/chai/",
|
"dest": "<%= path.asset %>/chai/",
|
||||||
"flatten": true
|
"flatten": true
|
||||||
},
|
},
|
||||||
|
"deps-when": {
|
||||||
|
"expand": true,
|
||||||
|
"cwd": "<%= path.bower %>/autobahnjs",
|
||||||
|
"src": "../when/when.js",
|
||||||
|
"dest": "<%= path.bower %>/autobahnjs/when"
|
||||||
|
},
|
||||||
"font-awesome": {
|
"font-awesome": {
|
||||||
"expand": true,
|
"expand": true,
|
||||||
"cwd": "<%= path.bower %>/font-awesome",
|
"cwd": "<%= path.bower %>/font-awesome",
|
||||||
@@ -314,6 +329,46 @@ module.exports = function(grunt) {
|
|||||||
grunt.loadNpmTasks("grunt-bower-postinst");
|
grunt.loadNpmTasks("grunt-bower-postinst");
|
||||||
grunt.loadNpmTasks('grunt-mocha-phantomjs');
|
grunt.loadNpmTasks('grunt-mocha-phantomjs');
|
||||||
|
|
||||||
grunt.registerTask("install-assets", ["clean:assets", "bower", "bower_postinst", "copy"]);
|
// This task is here to copy bower module into an other bower module
|
||||||
|
// Because bower removes .git folder you can not use git submodule update
|
||||||
|
// So fetch them with bower and copy them to appropriate path
|
||||||
|
grunt.registerTask("copy-deps", [
|
||||||
|
"copy:deps-when"
|
||||||
|
]);
|
||||||
|
grunt.registerTask("copy-assets", [
|
||||||
|
"copy:autobahnjs",
|
||||||
|
"copy:backbone",
|
||||||
|
"copy:blueimp",
|
||||||
|
"copy:bootstrap",
|
||||||
|
"copy:bootstrap-multiselect",
|
||||||
|
"copy:chai",
|
||||||
|
"copy:font-awesome",
|
||||||
|
"copy:geonames-server-jquery-plugin",
|
||||||
|
"copy:humane-js",
|
||||||
|
"copy:i18next",
|
||||||
|
"copy:jquery",
|
||||||
|
"copy:jquery-file-upload",
|
||||||
|
"copy:jquery-mobile",
|
||||||
|
"copy:jquery.cookie",
|
||||||
|
"copy:jquery-ui",
|
||||||
|
"copy:js-fixtures",
|
||||||
|
"copy:json2",
|
||||||
|
"copy:mocha",
|
||||||
|
"copy:modernizr",
|
||||||
|
"copy:normalize",
|
||||||
|
"copy:qunit",
|
||||||
|
"copy:requirejs",
|
||||||
|
"copy:swfobject",
|
||||||
|
"copy:tinymce",
|
||||||
|
"copy:underscore",
|
||||||
|
"copy:zxcvbn"
|
||||||
|
]);
|
||||||
|
grunt.registerTask("install-assets", [
|
||||||
|
"clean:assets",
|
||||||
|
"bower",
|
||||||
|
"copy-deps",
|
||||||
|
"bower_postinst",
|
||||||
|
"copy-assets"
|
||||||
|
]);
|
||||||
grunt.registerTask('test', ["qunit", "mocha_phantomjs"]);
|
grunt.registerTask('test', ["qunit", "mocha_phantomjs"]);
|
||||||
};
|
};
|
||||||
|
@@ -23,7 +23,9 @@
|
|||||||
"swfobject": "latest",
|
"swfobject": "latest",
|
||||||
"tinymce": "~4.0",
|
"tinymce": "~4.0",
|
||||||
"jquery-galleria": "1.2.9",
|
"jquery-galleria": "1.2.9",
|
||||||
"jquery.cookie": "~1.4"
|
"jquery.cookie": "~1.4",
|
||||||
|
"autobahnjs": "~0.8.0",
|
||||||
|
"when": "~2.7.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"mocha": "latest",
|
"mocha": "latest",
|
||||||
|
Reference in New Issue
Block a user