Comments (1)
So, I think there are a couple of things here.
First of all, we should probably have a simple example of a working plugin.
We don't have one yet, but it's something that's been on our radar.
You are correct that none of the .ts files are exposed -- at some point we'll want to build a better system for exposing that part of remodel (for more context, see https://blogs.msdn.microsoft.com/typescript/2016/06/15/the-future-of-declaration-files/)
In terms of what to do now: the simplest will be to write your plugin in raw js. As long as the plugin is simple, this should work out fine for you.
If you really want a ts step, that is doable, but not beautiful. You'll need to clone to repo, and then link directly to the .ts files in a ugly, hard coded fashion like:
import ValueObject = require('../../remodel/src/value-object');
If you do this, you'll then need to add a build step into your plug-in project that will compile your .ts -> .js (the remodel project itself has a decent template for this). Finally, you can link to the output of that build process (which is a js file) like:
{ "customPluginPaths": [ "plugins/dictionary_plugin.js" ] }
from remodel.
Related Issues (19)
- Swift example? HOT 1
- Doesn't import classes which are included via generics, even given an explicit `%import` HOT 1
- .valueObjectConfig is not documented in README HOT 1
- Self-referential algebraic data type does not forward-declare if the reference is within generics HOT 1
- Allow algebraic matching blocks to be nil HOT 2
- run 'remodel-gen' command error HOT 1
- Travis CI
- ReferenceError: parsedType is not defined HOT 1
- Properties of type (or backing type) dispatch_block_t should be copied
- Generate objects from JSON HOT 6
- Support of Alternative Encoding Format HOT 1
- Parser rejects comments after %type directives HOT 3
- Comparison with Pinterest Plank HOT 2
- Using a repeated function prefix with different parameter names HOT 2
- Cast to %ld and %lu instead of issuing %zd and %tu specifiers for NSInteger and NSUInteger variables HOT 2
- Issue Getting IGListDiffable Plugin Installed HOT 1
- Alternative Kotlin or Java output? HOT 1
- How to use SIMD types HOT 1
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 remodel.