Did anyone ever try to m…

less than 1 minute read

Did anyone ever try to make a JSON schema for the workspace.json and nx.json? https://code.visualstudio.com/Docs/languages/json#_json-schemas-and-settings JSON editing in Visual Studio Code


One already exists…

Where can I find it?

workspace is the same as angular.json and if you look through NX code you see they definition for them

https://github.com/nrwl/nx/blob/be495c27efeb3d113002b2918816f3a753845ffd/packages/workspace/src/core/shared-interfaces.ts Thats the interface for .json. Im sure they a schema though for nx.json

I’ve never set this up myself, so I can’t do much with that sadly. The only thing is that it doesn’t work out of the box when using a clean nx install and vscode, there’s no suggestions within the JSON


Thats basically the workspace.json

Personally dont do it by hand. Use NX generators

Creating them you mean? Was also not doing that :smile:

Just adding a command in there