Permalink
Browse files

Added a couple of release maintance scripts

  • Loading branch information...
1 parent ec8fd6f commit f00b21f7e18680465d2b41ab8065b882699359dc @davglass committed Apr 5, 2012
Showing with 36 additions and 0 deletions.
  1. 0 { → output}/api/api.js
  2. BIN { → output}/api/assets/css/external-small.png
  3. BIN { → output}/api/assets/css/logo.png
  4. 0 { → output}/api/assets/css/main.css
  5. BIN { → output}/api/assets/img/spinner.gif
  6. 0 {api/modules → output/api/assets}/index.html
  7. 0 { → output}/api/assets/js/api-filter.js
  8. 0 { → output}/api/assets/js/api-list.js
  9. 0 { → output}/api/assets/js/api-search.js
  10. 0 { → output}/api/assets/js/apidocs.js
  11. 0 { → output}/api/assets/js/tabs.js
  12. 0 { → output}/api/assets/js/yui-prettify.js
  13. 0 { → output}/api/assets/vendor/prettify/CHANGES.html
  14. 0 { → output}/api/assets/vendor/prettify/COPYING
  15. 0 { → output}/api/assets/vendor/prettify/README.html
  16. 0 { → output}/api/assets/vendor/prettify/prettify-min.css
  17. 0 { → output}/api/assets/vendor/prettify/prettify-min.js
  18. 0 { → output}/api/classes/DocBuilder.html
  19. 0 { → output}/api/classes/DocParser.html
  20. 0 { → output}/api/classes/DocView.html
  21. 0 { → output}/api/classes/Files.html
  22. 0 { → output}/api/classes/Server.html
  23. 0 { → output}/api/classes/YUIDoc.html
  24. 0 { → output}/api/classes/cli.html
  25. 0 { → output}/api/classes/index.html
  26. 0 { → output}/api/classes/utils.html
  27. 0 { → output}/api/data.json
  28. 0 { → output}/api/files/index.html
  29. 0 { → output}/api/files/lib_builder.js.html
  30. 0 { → output}/api/files/lib_cli.js.html
  31. 0 { → output}/api/files/lib_docparser.js.html
  32. 0 { → output}/api/files/lib_docview.js.html
  33. 0 { → output}/api/files/lib_files.js.html
  34. 0 { → output}/api/files/lib_index.js.html
  35. 0 { → output}/api/files/lib_server.js.html
  36. 0 { → output}/api/files/lib_utils.js.html
  37. 0 { → output}/api/files/lib_yuidoc.js.html
  38. 0 { → output}/api/index.html
  39. 0 {api/assets → output/api/modules}/index.html
  40. 0 { → output}/api/modules/server.html
  41. 0 { → output}/api/modules/yuidoc.html
  42. +14 −0 scripts/prep.sh
  43. +22 −0 scripts/versions.js
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+cd "$(dirname "$0")"
+
+if [ ! -d ../node_modules ]; then
+ echo "Dependencies are not installed, installing"
+ cd ../ && npm install --loglevel silent && cd ./scripts
+fi
+
+if [ ! -x ../node_modules/.bin/yuitest ]; then
+ echo "YUITest is not installed, installing"
+ cd ../ && npm install --loglevel silent && cd ./scripts
+fi
+
View
@@ -0,0 +1,22 @@
+#!/usr/bin/env node
+
+var path = require('path'),
+ fs = require('fs'),
+ package = require(path.join(__dirname, '../', 'package.json')),
+ version = package.version,
+ api = path.join(__dirname, '../', 'conf', 'yuidoc.json'),
+ doc = path.join(__dirname, '../', 'conf', 'theme', 'project.json');
+
+console.log('[version]', version);
+console.log('[api]', api);
+console.log('[doc]', doc);
+
+var apiJSON = require(api),
+ docJSON = require(doc);
+
+apiJSON.version = version;
+docJSON.version = version;
+
+fs.writeFileSync(api, JSON.stringify(apiJSON, null, 2));
+fs.writeFileSync(doc, JSON.stringify(docJSON, null, 2));
+console.log('[done]');

0 comments on commit f00b21f

Please sign in to comment.