/
githubmirror
/
meteor
Обзор
Документация
Войти
/
githubmirror
/
meteor
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
devel
scripts/admin/jsdoc/jsdoc.sh
23 строки
695 B
Tom Freudenberg
Make Script More Portable With #!/usr/bin/env
02 ноя 2015, 00:04
02 ноя 2015, 00:04
8a24a1b
Код
Авторство
О чём код?
#!/usr/bin/env bash ORIGDIR=$(pwd) cd $(dirname $0) SCRIPTDIR=$(pwd) cd ../../.. TOPDIR=$(pwd) INFINITY=10000 cd "$SCRIPTDIR" ${TOPDIR}/dev_bundle/bin/npm install cd "$TOPDIR" # Call git grep to find all js files with the appropriate comment tags, # and only then pass it to JSDoc which will parse the JS files. # This is a whole lot faster than calling JSDoc recursively. git grep -al "@summary" | xargs -L ${INFINITY} -t \ "${TOPDIR}/dev_bundle/bin/node" \ "${SCRIPTDIR}/node_modules/.bin/jsdoc" \ -t "${TOPDIR}/scripts/admin/jsdoc/docdata-jsdoc-template" \ -c "${TOPDIR}/scripts/admin/jsdoc/jsdoc-conf.json" \ 2>&1 | grep -v 'WARNING: JSDoc does not currently handle'