Fix jsdocs build on server repo
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
37782b1084
commit
5d888984a0
|
@ -10,9 +10,9 @@
|
||||||
|
|
||||||
(function(OCA) {
|
(function(OCA) {
|
||||||
/**
|
/**
|
||||||
* @namespace OCA.Files.FavoritesPlugin
|
|
||||||
*
|
|
||||||
* Registers the favorites file list from the files app sidebar.
|
* Registers the favorites file list from the files app sidebar.
|
||||||
|
*
|
||||||
|
* @namespace OCA.Files.FavoritesPlugin
|
||||||
*/
|
*/
|
||||||
OCA.Files.FavoritesPlugin = {
|
OCA.Files.FavoritesPlugin = {
|
||||||
name: 'Favorites',
|
name: 'Favorites',
|
||||||
|
|
|
@ -10,9 +10,9 @@
|
||||||
|
|
||||||
(function (OCA) {
|
(function (OCA) {
|
||||||
/**
|
/**
|
||||||
* @namespace OCA.Files.RecentPlugin
|
|
||||||
*
|
|
||||||
* Registers the recent file list from the files app sidebar.
|
* Registers the recent file list from the files app sidebar.
|
||||||
|
*
|
||||||
|
* @namespace OCA.Files.RecentPlugin
|
||||||
*/
|
*/
|
||||||
OCA.Files.RecentPlugin = {
|
OCA.Files.RecentPlugin = {
|
||||||
name: 'Recent',
|
name: 'Recent',
|
||||||
|
|
|
@ -132,11 +132,11 @@
|
||||||
OCA.Files = OCA.Files || {};
|
OCA.Files = OCA.Files || {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @namespace OCA.Files.TagsPlugin
|
|
||||||
*
|
|
||||||
* Extends the file actions and file list to include a favorite mark icon
|
* Extends the file actions and file list to include a favorite mark icon
|
||||||
* and a favorite action in the file actions menu; it also adds "data-tags"
|
* and a favorite action in the file actions menu; it also adds "data-tags"
|
||||||
* and "data-favorite" attributes to file elements.
|
* and "data-favorite" attributes to file elements.
|
||||||
|
*
|
||||||
|
* @namespace OCA.Files.TagsPlugin
|
||||||
*/
|
*/
|
||||||
OCA.Files.TagsPlugin = {
|
OCA.Files.TagsPlugin = {
|
||||||
name: 'Tags',
|
name: 'Tags',
|
||||||
|
|
|
@ -8,10 +8,9 @@
|
||||||
# @copyright 2014 Vincent Petry <pvince81@owncloud.com>
|
# @copyright 2014 Vincent Petry <pvince81@owncloud.com>
|
||||||
#
|
#
|
||||||
NPM="$(which npm 2>/dev/null)"
|
NPM="$(which npm 2>/dev/null)"
|
||||||
PREFIX="build"
|
OUTPUT_DIR="jsdocs"
|
||||||
OUTPUT_DIR="build/jsdocs"
|
|
||||||
|
|
||||||
JS_FILES="core/js/*.js core/js/**/*.js apps/*/js/*.js"
|
JS_FILES="../core/js/*.js ../core/js/**/*.js ../apps/*/js/*.js"
|
||||||
|
|
||||||
if test -z "$NPM"
|
if test -z "$NPM"
|
||||||
then
|
then
|
||||||
|
@ -20,14 +19,14 @@ then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# update/install test packages
|
# update/install test packages
|
||||||
mkdir -p "$PREFIX" && $NPM install --link --prefix "$PREFIX" jsdoc || exit 3
|
$NPM install --prefix . --link jsdoc || exit 3
|
||||||
|
|
||||||
JSDOC_BIN="$(which jsdoc 2>/dev/null)"
|
JSDOC_BIN="$(which jsdoc 2>/dev/null)"
|
||||||
|
|
||||||
# If not installed globally, try local version
|
# If not installed globally, try local version
|
||||||
if test -z "$JSDOC_BIN"
|
if test -z "$JSDOC_BIN"
|
||||||
then
|
then
|
||||||
JSDOC_BIN="$PREFIX/node_modules/jsdoc/jsdoc.js"
|
JSDOC_BIN="./node_modules/jsdoc/jsdoc.js"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -z "$JSDOC_BIN"
|
if test -z "$JSDOC_BIN"
|
||||||
|
@ -38,5 +37,5 @@ fi
|
||||||
|
|
||||||
mkdir -p "$OUTPUT_DIR"
|
mkdir -p "$OUTPUT_DIR"
|
||||||
|
|
||||||
NODE_PATH="$PREFIX/node_modules" $JSDOC_BIN -d "$OUTPUT_DIR" $JS_FILES
|
NODE_PATH="./node_modules" $JSDOC_BIN -d "$OUTPUT_DIR" $JS_FILES
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -15,7 +15,7 @@
|
||||||
"handlebars": "^4.0.5",
|
"handlebars": "^4.0.5",
|
||||||
"jasmine-core": "~2.5.2",
|
"jasmine-core": "~2.5.2",
|
||||||
"jasmine-sinon": "^0.4.0",
|
"jasmine-sinon": "^0.4.0",
|
||||||
"jsdoc": "~3.5.5",
|
"jsdoc": "^3.5.5",
|
||||||
"karma": "^2.0.2",
|
"karma": "^2.0.2",
|
||||||
"karma-coverage": "*",
|
"karma-coverage": "*",
|
||||||
"karma-jasmine": "^1.1.2",
|
"karma-jasmine": "^1.1.2",
|
||||||
|
|
Loading…
Reference in New Issue