Commit Graph

31 Commits

Author SHA1 Message Date
Andreas Jaeger f57ebca959 Retire js-generator-openstack
This repository is unused, retire it.

Change-Id: Ib6b55e118b7092a05dfe6bcbb6bcb66a8b20fdc2
Depends-On: https://review.openstack.org/597370/
2018-08-29 09:04:51 +02:00
Yujun Zhang de7942072f Bump yeoman-generator to elimate warning
Change-Id: I89c8d863cc30eeebae6acdafa1700d500c5d9931
2016-10-20 15:14:22 +08:00
Jenkins c62f7cad76 Merge "Added jsdoc3 output to doc generation" 2016-09-07 12:14:41 +00:00
Yujun Zhang 5237010f0c Update eslint and eslint-config-openstack version
Change-Id: I86118cee2f3a147cdf91978c1f41b3c171545ec1
2016-08-24 10:17:17 +08:00
Michael Krotscheck 977c1c06dc Added jsdoc3 output to doc generation
This patch adds jsdoc3-generated documentation to our docs build.
It does so by using publicly available sphinx.rst templates, writing
them into a .gitignore'd folder in the docs directory, and providing
references to these autogenerated documents in our own site.

There are some notable bugs:
- jsdoc-sphinx templates do not honor @ignore and @private
- jsdoc-sphinx templates do not ignore private variables (listed under
  members at the bottom).
- jsdoc-sphinx templates add superfluous 'Children' section to the
  top as subsection navigation.

It would make quite a bit of sense for us to contribute to
jsdoc-sphinx so that the above mentioned bugs are resolved. However,
as some documentation is better than no documentation, right now this
is fine.

Change-Id: Ie7503f4874c8b4bbb4bb4926cddc578d59ce0613
2016-08-24 09:59:22 +08:00
Michael Krotscheck 1e071bfc45 Renamed doc command to docs.
This patch changes the `npm run doc` command to `npm run docs`.
I'm doing this because throughout infra, most of the job names use
'docs' as a short for 'documentation', and it's useful to remain
consistent.

Change-Id: I713ab3a076f97db92f4227b27486ec565c81ef83
2016-07-22 07:25:26 -07:00
Yujun Zhang 9a13358061 limit jsdoc to generators/app/lib
> If the module name is not provided, it is derived from the module's path and filename.
So we'd better keep the path short but clear enough.
See: http://usejsdoc.org/tags-module.html

Change-Id: Id1a6069ddb82863e91adff14cec97299ab4a867f
2016-07-15 09:56:09 +08:00
Yujun Zhang 54fed59885 add jsdoc3 build commands
run `npm run jsdoc` to generate api documentation in `jsdoc_build`

Change-Id: Ica8202a10b1d2c2a35453637f600501a71e412b7
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2016-07-14 17:04:43 +08:00
Yujun Zhang 9a7e0c3a6e Upgrade eslint version to version 2
version 2 has been released for a long time and stable to be used in prodution

Change-Id: I69219900b4de55aebe5cfa76a5777086ccf49c69
2016-07-04 17:22:54 +08:00
Michael Krotscheck bb0a83f300 Added Sphinx-based documentation framework and specs repo.
All of ospenstack's documentation infrastructure is run via sphinx, including
templates, html parsing, uploading, and more. Thus it behooves us to keep
our javascript documentation build as similar as possible. Since we want to
avoid using tox, and littering the project with pythonic artifacts, we're
instead using Sphinx' own recommended build method: A Makefile.

This patch adds a small but complete documentation tree for this project,
including the build tools needed to create it. It satisfies the need for
narrative documentation, but does not (yet) satisfy the need for code
doc generation. It also includes a section for specifications, as this
effort is not yet large enough to warrant its own specification repo.

Code documentation will need to be added in a subsequent patch, using
Sphinx' jsdoc plugins.

Change-Id: I95afbc7001643a3564961c3b5326df4b35c29be8
2016-06-17 12:58:42 -07:00
Michael Krotscheck 0ebabf56d1 Ran `yo openstack` on itself
This project should adhere to its own rules.

Change-Id: I52be0f532f38d320ce2fe729c90da8e3c0f8e84f
2016-06-14 09:13:53 -07:00
Yujun Zhang ea2b60a6c8 Fix bug in project name
gerrit project name shall come from

1. user answer if given
2. .gitreview if no answer is given
3. create from package name if .gitreview does not exist

Change-Id: I02eb9e86fd97fc67093e16a4264c24625f7f2e47
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
2016-06-06 23:27:07 +08:00
Michael Krotscheck bcbd618ef1
Updated git repository in package file
The project is no longer hosted on github.

Change-Id: I654ac7f1f4eca8df249e4b9ee057211cee4d72ae
2016-05-20 11:37:24 -07:00
Michael Krotscheck d6918c50a4
Added global-dependencies library
This library permits reading, validating, and accessing a set of
globally accepted dependency criteria. It will eventually be used
to synchronize dependencies across multiple javascript projects.

Change-Id: I2ec7a218311cfcfc7d33c4a1e29e73ed8e2f7b42
2016-05-20 11:35:59 -07:00
Michael Krotscheck 90a2b23dba
Changed .gitreview
The project name in OpenStack will be js-generator-openstack.
https://review.openstack.org/#/c/314240/
2016-05-09 15:32:17 -07:00
Michael Krotscheck d946ae9e9b 1.2.0 2016-04-04 12:54:09 -07:00
Michael Krotscheck 46f08869e6 Created simple package builder
This package builder reads in any existing package.json file,
exposes a set-value method, and then writes it back to the filesystem.
2016-04-04 12:48:16 -07:00
Michael Krotscheck 07cb1d455d Fixed build dependencies
This patch accomplishes the following:
- It updates node security, as this depended on a version
  of ansi-styles that was unpublished.
- It updates deprecated uses of yeoman Base and yeoman test.
- It adds mem-fs and mem-fs-editor to dependencies, as those are
  only transiently available in later versions of node/npm.
2016-04-04 11:39:51 -07:00
Michael Krotscheck 1e679bc680 Wrapped all modules into a promise chain
In order to ensure that submodules can perform asynchronous actions,
we've wrapped their invocation into a Q-based promise chain. Thus,
each can either return the original generator, or may return a
promise that eventually resolves with that same generator.
2016-04-04 11:39:47 -07:00
Michael Krotscheck 2937551abb 1.1.2 2016-03-30 04:11:24 -07:00
Michael Krotscheck 6816ccd658 Parse values from .gitreview
The gerrit module now reads its defaults from the .gitreview file,
rather than from .yo-rc.
2016-03-29 10:48:37 -07:00
Michael Krotscheck efa9fb66b3 Eslint support
Eslint configuration and ignore file are now generated, with
simple writeback support.
2016-03-29 08:33:23 -07:00
Michael Krotscheck f0e4f8be46 1.1.1 2016-03-29 04:02:54 -07:00
Michael Krotscheck f48857e458 Consolidated generators
Having multiple generators stopped being manageable very quickly.
This collapses it all, and ensures tests still pass.

Also, this includes istanbul exclusions.
2016-03-24 13:37:40 -07:00
Michael Krotscheck 582a57dd42 Moved eslint config from package.json into .eslintrc
This permits somewhat simpler separation of generators. One for
eslint, one for genconfig, etc etc.
2016-03-22 10:53:43 -07:00
Michael Krotscheck 252e964971 Updated package.json file
This patch adds the openstack tag to the project, and ensures
that all generators are included in the published project.
2016-03-22 10:50:50 -07:00
Michael Krotscheck ea36b1b33e 1.1.0 2016-03-22 07:27:25 -07:00
Michael Krotscheck fd284c419e Removed dummyfile
This file was created by the generator-generator. Now that the
default generator does something a little more useful, there's no
need to keep it around.
2016-03-22 07:19:37 -07:00
Michael Krotscheck f2d20d7c77 Removed gulp, added jasmine
This patch removes gulp, and moves commands such as nsp and test
execution directly into package.json. Coverage threshold tests via
istanbul have also been added.
2016-03-22 05:12:03 -07:00
Michael Krotscheck 8807dc06bf Updates from generator-generator
This patch adds the initial project structure constructed by
yeoman's project generator.
2016-03-22 04:24:04 -07:00
Michael Krotscheck 22fc635cf9 Initial commit 2016-02-25 10:42:46 -08:00