Repository navigation
pacmak: support local dependencies (and more) - #106
Merged
Merged
Conversation
Added a few features to jsii-pacmak: * --targets: allow specifying multiple targets when running pacmak. * --recurse: build all dependencies. * outdir and targets default to the values from package.json/jsii * -v: print INFO messages * -vv: print VERBOSE messages * --no-clean: keep generated source code after build Outputs will go to <outdir>/<target> if multiple targets are specified or just <outdir> if only a single target is required. When using --recurse, --outdir applies to all modules, which means that all the artifacts will be emitted into the same output directory. In this case if --outdir is not specified, each target's outdir is respected (from package.json). Java: if one of the dependencies of a module has a local output, it will be added as a local maven repository, so it is now possible to depend on a local build instead of always going to maven central. Changes to calc test library: * Added `sphinx` output to calc test modules. * Changed groupId to com.amazonaws.jsii
RomainMuller
approved these changes
Jul 30, 2018
| @@ -0,0 +1,16 @@ | |||
| export let level = 0; | |||
|
|
|||
| export const LEVEL_INFO = 1; | |||
Contributor
There was a problem hiding this comment.
export enum Level {
QUIET = 0,
INFO = 1,
VERBOSE = 2
}Then have a log(level: Level, fmt: string, ...args: any[]) method; and keep the short-hand aliases for each level.
|
|
||
| export interface TargetOptions { | ||
| /** The name of the target language we are generating */ | ||
| targetName: string; |
Contributor
There was a problem hiding this comment.
That's passed in by the creator where I think it should be owned by the implementation. Maybe Target should have an abstract property for that?
Contributor
Author
There was a problem hiding this comment.
Theoretically you are right, but it's based on the file name of the generator, so KISS
| localRepos.push(localJavaRuntime); | ||
| } | ||
|
|
||
| await fs.writeFile(filePath, `<?xml version="1.0" encoding="UTF-8"?> |
Contributor
There was a problem hiding this comment.
Would largely prefer you use xmlbuilder for this.
RomainMuller
approved these changes
Jul 30, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added a few features to jsii-pacmak:
Outputs will go to
outdir/targetif multiple targets are specifiedor just
outdirif only a single target is required.When using --recurse, --outdir applies to all modules, which means
that all the artifacts will be emitted into the same output directory.
In this case if --outdir is not specified, each target's outdir
is respected (from package.json).
Java: if one of the dependencies of a module has a local output,
it will be added as a local maven repository, so it is now possible
to depend on a local build instead of always going to maven central.
Changes to calc test library:
sphinxoutput to calc test modules.Fixes #73