sensiolabs / assetmappertypescriptbundle Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I'm new to AssetMapper and I'm just loving it.
Your bundle could be really helpfull for me.
I have to write a quite complex (for my level) javascript module and I think that writing it using typescript would be better and more readable.
I've added gcompat on Dockerfile otherwise Alpine Image can't run SWC
Now I can run ./swc-linux-x64-gnu and see its help message but the symfony command typescript:build still give me error.
Any suggestion?
Thanks
If we allow the use of another compiler than swc, we will need to create the necessary classes and interfaces to make it work
Hi!
I haven't played with the bundle yet, but I'm increasingly mentioning it for those that do want to use TypeScript. So, could we:
A) Publish the package to Packagist?
B) and do an initial 0.1.0 release
Thanks for your work!
This is a tricky one.
SWC has an '--ignore' option, but it allows only a single path to be excluded (or at least I didn't manage to make it take multiple paths.)
So the solution I found was to pass a config snippet with --config-json (not documented on there website) to override the "exclude" config from .swcrc. This works, but SWC prints an error and exits with a 1 return code, so I had to disable printing the output of the command (which didn't print anything anyway) and apply a test on the error message to check if it's a 'real' error or just a notification that a file has been skipped.
Right now I think it's a very dirty hack, and I don't see any other solution but to ask on the swc repo to be able to bypass this.
If you'd like to give it a try go ahead ๐
This file must be usable by swc, which is the compiler used in the project
According to the documentation, SWC can support a --watch
option using chokidar. I'm not sure this can work without node though. Might be worth taking a closer look.
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.