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
Starting the PJ schema changes #448
Conversation
Do we have a link to the issue tracker? |
Now we do. |
Isn't project.json going away? Doesn't that mean there is not much point to document it extensively? |
rebased since some TOC changes were made; now I'll do some updates |
@svick It's important that we provide good docs for RC2 and RTM to help folks use P.J. The move to csproj will be post-RTM. |
Post-RTM for the platform. Important to distinguish. For tooling timelines, this means post-Preview 2 of the tooling. |
* [builtIns](#publish-builtins) | ||
* [mappings](#publish-mappings) | ||
* [runtimeOptions](#runtimeoptions) | ||
* [gcServier](#gcserver) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gcServer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also the structure of runtimeOptions
has changed. dotnet/aspnetcore#1418 (comment)
Updated runtime stuff. The TODOs are what need to be filled in now |
@blackdwarf I'm going to add some more missing pieces there and see where we're left. |
Released the file since @blackdwarf said he would work on this next. Can continue to work on this later on. |
@ajaybhargavb can you please take a look at the current state and comment out what else needs to be done? Thanks! |
* [resourceBuiltIn](#resourceBuiltIn) | ||
* [excludeBuiltIn](#excludeBuiltIn) | ||
* [namedResource](#namedresource) | ||
* [packInclude](#packinclude) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
namedResource
, packInclude
and excludeBuiltIn
are deprecated and can be removed.
Looks good. I suggest adding a section that explains the structure to include/exclude files (content aspnet/Announcements#175 (comment)) and then replace the TODOs in |
Addressed feedback. |
Rebased |
For example: | ||
|
||
{ | ||
"builtIns":[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If builtIns
is supposed to be an object, why is it an empty array here?
#### include | ||
Type: String or String[] with a globbing pattern. | ||
|
||
TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All these TODOs need to be replaced as well.
this is going to need another rebase because of the TOC/filename changes; I can get to that later today if it isn't done before then |
I'm going to work a bit more on this one now. |
@blackdwarf @cartermp @ajaybhargavb I have a new version up. Please take a look. I think we're getting close. I have a couple of questions though.
"frameworks": {
"dnxcore50": {
"dependencies": {
"Microsoft.Extensions.JsonParser.Sources": "1.0.0-rc2-23811"
}
}
} |
"summary": "This is my library." | ||
"packOptions": { | ||
"summary": "This is my library." | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A mix of tabs and spaces is used here and in the following examples (e.g. 4 spaces before {
, 2 tabs before "summary"
).
Though it doesn't really matter, since it seems to render correctly in both GitHub and docfx.
|
||
Keys to the object represent destination paths in the output layout. | ||
|
||
Values are either a string or an object representing the source path of files to include. The object represtation can have its own `include`, `exclude`, `includeFiles` and `excludeFiles` sectins"dest/path": "source/path" or "dest/path": { "include": "./src/path" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to correct this, sectins"dest/path"
Also in other options that contain mappings
⌚ |
Ready to merge? |
Nope @cartermp, I have to incorporate @ajaybhargavb's latest feedback. I'll finish this today. Sorry for the delay. I even have a lovely red tag saying do-not-merge because it's not ready yet. 😄 |
So here's the feedback on schema. Should I open a bug somewhere @ajaybhargavb?
|
Did a new update. Added debugType and outputName. Questions still pending:
|
@mairaw replied about the commands. Commands are deprecated. There is no way to invoke them any more, really, so I'm not sure if we should keep them around. @ajaybhargavb what is the correct set ofvalues for the enum? @schellap can you help us with the various |
@blackdwarf Below link has the list of well-known config options under title "host configuration knobs". The |
@mairaw, the bugs for missing fields in Schemastore should be filed here https://github.com/SchemaStore/schemastore/issues @blackdwarf, I am not aware of the correct values for these enums |
@blackdwarf When I add something to |
I've made more changes based on the comments from today. Is this ready to merge? The only question left was about the enum values. |
Thanks for filing the bug. |
oh yeah, there are multiple mappings sections with that issue. I'll fix those. Thanks @ajaybhargavb! |
Should we review this as-is? |
Let's ship and iterate on future improvements. |
🎆 |
🎉 |
This is the starting point for changes to the
project.json
schema reference document to align it with the schema file. This file is the source of truth for the schema. Another resource is this announcement: aspnet/Announcements#175.Ideally, we should also add samples to the file for some common scenarios. We should all party on this now.
Fixes #423
/cc @cartermp @mairaw @DamianEdwards