Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add single script to build docs and call it when combined with jsdoc. #380

Merged
merged 1 commit into from
Jul 23, 2019

Conversation

abuiles
Copy link
Contributor

@abuiles abuiles commented Jul 23, 2019

We'll need this to solve stellar-deprecated/developers#117.

The developers script call /node_modules/.bin/jsdoc -c .jsdoc.json --explain here -- but in order for it to work properly, we need to call gulp build:docs first it generated the libdocs files which have the final sources after transpilation.

We'll need this to fix stellar-deprecated/developers#117.

The developers script call `/node_modules/.bin/jsdoc -c .jsdoc.json
--explain`
[here](https://github.com/stellar/developers/blob/1c753962b44472fcda43f25324685f9629971907/gulp/code-symbol-tags.js#L24)
-- but in order for it to work properly, we need to call `gulp
build:docs` first it generated the libdocs files which have the final
sources after transpilation.
abuiles added a commit to stellar-deprecated/developers that referenced this pull request Jul 23, 2019
Fixes #117 - the reason
for the broken build was that the command `/node_modules/.bin/jsdoc -c
.jsdoc.json --explain` relied on `libdocs` existing. But it only gets
created after running `yarn build:docs`.

It used to work because the `jsdoc.config` file was using the `src` directory, but
with the move to TypeScript, we need to use `libdocs` which contains
the transpiled source code - [see this change](stellar/js-stellar-sdk@bf3b62e#diff-4c4e0bb5af5bd36c5762fb0883ef0752R3).

Depends on stellar/js-stellar-sdk#380
Copy link
Member

@ire-and-curses ire-and-curses left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not an expert, but it looks good to me.

@abuiles abuiles merged commit 6b2d622 into master Jul 23, 2019
@abuiles abuiles deleted the build-docs branch July 23, 2019 21:03
abuiles added a commit to stellar-deprecated/developers that referenced this pull request Jul 23, 2019
Fixes #117 - the reason
for the broken build was that the command `/node_modules/.bin/jsdoc -c
.jsdoc.json --explain` relied on `libdocs` existing. But it only gets
created after running `yarn build:docs`.

It used to work because the `jsdoc.config` file was using the `src` directory, but
with the move to TypeScript, we need to use `libdocs` which contains
the transpiled source code - [see this change](stellar/js-stellar-sdk@bf3b62e#diff-4c4e0bb5af5bd36c5762fb0883ef0752R3).

Depends on stellar/js-stellar-sdk#380
@tomquisel
Copy link
Contributor

Is the mixing of yarn and gulp ok?

@abuiles
Copy link
Contributor Author

abuiles commented Jul 23, 2019

Is the mixing of yarn and gulp ok?

Yes, it is okay - gulp does the build, yarn manages the deps and let us call bin from node_modules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants