Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
c7dc656b
Commit
c7dc656b
authored
10 years ago
by
Vincent Petry
Browse files
Options
Downloads
Patches
Plain Diff
Added script to build the JS documentation
parent
e0528c75
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
buildjsdocs.sh
+42
-0
42 additions, 0 deletions
buildjsdocs.sh
with
43 additions
and
0 deletions
.gitignore
+
1
−
0
View file @
c7dc656b
...
...
@@ -89,6 +89,7 @@ nbproject
# nodejs
/build/lib/
/build/jsdocs/
/npm-debug.log
...
...
This diff is collapsed.
Click to expand it.
buildjsdocs.sh
0 → 100755
+
42
−
0
View file @
c7dc656b
#!/bin/bash
#
# ownCloud
#
# Run JS tests
#
# @author Vincent Petry
# @copyright 2014 Vincent Petry <pvince81@owncloud.com>
#
NPM
=
"
$(
which npm 2>/dev/null
)
"
PREFIX
=
"build"
OUTPUT_DIR
=
"build/jsdocs"
JS_FILES
=
"core/js/*.js apps/*/js/*.js"
if
test
-z
"
$NPM
"
then
echo
'Node JS >= 0.8 is required to build the documentation'
>
&2
exit
1
fi
# update/install test packages
mkdir
-p
"
$PREFIX
"
&&
$NPM
install
--link
--prefix
"
$PREFIX
"
jsdoc
||
exit
3
JSDOC_BIN
=
"
$(
which jsdoc 2>/dev/null
)
"
# If not installed globally, try local version
if
test
-z
"
$JSDOC_BIN
"
then
JSDOC_BIN
=
"
$PREFIX
/node_modules/jsdoc/jsdoc.js"
fi
if
test
-z
"
$JSDOC_BIN
"
then
echo
'jsdoc executable not found'
>
&2
exit
2
fi
mkdir
-p
"
$OUTPUT_DIR
"
NODE_PATH
=
"
$PREFIX
/node_modules"
$JSDOC_BIN
-d
"
$OUTPUT_DIR
"
$JS_FILES
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment