Comments (9)
Namespaces should probably be the responsibility of the plugin, although having the namespace in the msbuild file make sit more complex. Any ideas on reconsolidating this?
from myriad.
<Compile Include="Generated.fs">
<MyriadFile>Library.fs</MyriadFile>
<MyriadNameSpace> DataSchema </MyriadNameSpace>
</Compile>
So you are using something like that but there are 3 nuget plugins?
from myriad.
Yeah I have the plugins from https://github.com/MoiraeSoftware/myriad/tree/master/src/Myriad.Plugins and my plugin I'm writing loading.
I'm thinking we can check if parsedInput is empty and not write anything if not.
from myriad.
Oh that won't work nevermind.
from myriad.
Maybe generators should return a Some
/None
whether they should write out or not?
from myriad.
Im not convinced <MyriadNameSpace> DataSchema </MyriadNameSpace>
should exist, but a namespace needs to go somewhere. Also perhaps it should be an attribute of MyriadFile
.
Making the plugin return Some/None could be a good move. Maybe prefixing try onto the API.
from myriad.
I think MyriadFile
is sufficiently generic that it could be any file, not just and F# one, toml would be a good example.
from myriad.
The ns generated by plugins could be grouped and merged, problem I worry about is ordering though.
from myriad.
p.s. MyriadNameSpace
is now obsolete, config based
from myriad.
Related Issues (20)
- Myriad.Plugin.Template HOT 1
- Allow the formatting to be specified for code generation HOT 1
- Allow hash directives to be specified
- Inline generation HOT 2
- Add batching API so state can be passed amongst plugins of the same type HOT 3
- [docs] How to build the docs pages locally? HOT 5
- TOSO: Rip Docsy theme the fuck out.
- Myriad di deploy di server mana? app.myriad.social HOT 1
- Did myriad letters are supported as superscript?
- Allow inline generation with custom placement HOT 15
- Allow generating lenses with module instead of namespace, or without either HOT 8
- Memoise the calls to toml get configuration HOT 1
- Extensions like SynType.Option generate incorrect syntax HOT 1
- Upgrading from 0.5.0 to 0.8.1 removes keywords from many elements HOT 12
- Can we have a release please? ;) HOT 3
- Plugin path not quoted HOT 1
- Automatic generation of record variant types HOT 5
- Change log link in nugget has no version
- Readme missing from nugget package
- Working on invalid syntax HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from myriad.