sigma-andex / purescript-typescript-importer Goto Github PK
View Code? Open in Web Editor NEWWIP typescript <≡> purescript importer
License: MIT No Attribution
WIP typescript <≡> purescript importer
License: MIT No Attribution
We are getting into the situation where ReaterT and/or StateT would make sense because our environment is growing.
Currently we get the filename as this in the codegen:
Filename: 'testfiles/original/person/person.ts'
We will need to extract a module name like this:
Person.Person
i.e. pascal case, special characters escaped and base folder path removed
Currently the output is not yet saved into files. The generated code should be saved into the generated-src
folder.
Currently the tests fail if the generated source files don't match 100% the expected source files. It would be nice if we would format the source code before sending them to the diff so we don't have to bother about the correct whitespaces all the time.
[ ] Purescript (using tidy)
[ ] Javascript (using some js formatter)
We will need some cli to run the importer. As a first step only the name of the node_module should be passed.
Something in the line of:
typescript-importer import person
It should be capable of being extended lateron to passing settings as well, so something in the line of https://pursuit.purescript.org/packages/purescript-optparse/4.1.0 should probably be the way to go.
Currently the diff file is only generated in the failure case. Therefore, if you make the test pass you will see the diff of the previous run when refreshing the browser.
It would be great if the diff file would also be generated in the success case, so that you can hit refresh and see that 'now it works'.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.