creatiwity / nativescript-images-generator-hook Goto Github PK
View Code? Open in Web Editor NEWThis hook will generate all images at compile time based on a simple 3x image.
License: MIT License
This hook will generate all images at compile time based on a simple 3x image.
License: MIT License
Right now only png's are supported. It would be great to have other image file types supported as well.
Looking through the code, it seems like it would be pretty easy to add JPG support. Is there a reason it is only restricted to PNG? If not, I might submit a pull request at some point. I'm a little swamped currently, but should be doable eventually.
Firstly thank you for creating the handy tools that eases the tasks of resource/asset management.
Here is the issue that I am getting into. The resource path is App_Resources/Android and App_Resources/iOS for Android and iOS respectively and are case sensitive for MacOS. However, the script looks for App_Resources/android and App_Resources/ios and cannot find the path and it fails.
If I change the resource folder to use lower case like App_Resources/android and App_Resources/ios the image generator works fine but the build fails. Is there something I am missing? Any help is appreciated.
Thanks
The 'tns' command automatically adds platforms when the 'tns run' command is issued. A lot of the workflow includes removing the platforms folder periodically for cleanup purposes. Using this plugin would require adding another step to scripts to first add a platform, then run or debug the project. Would be good to have the plugin execute at a different stage of the hooks, perhaps.
After installing the plugin I ran my project using ``tns run ios`. Unfortunately teh console shows this error:
Webpack compilation complete. Watching for file changes. Webpack build done! Project successfully prepared (ios) Unexpected token {
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.