Skip to content

ottojimb/nativescript-resource-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nativescript resource generator

Small script that generates multi-resolution images for nativescript folder. It transforms the ".jpg, .gif, .png" format files.

Installation

  1. Install imagemagick:

brew install imagemagick

  1. Install nodejs
  2. Clone this repository:

git clone https://github.com/ottojimb/nativescript-resource-generator.git

  1. Access to the create folder

cd nativescript-resource-generator

  1. Install as global package

npm -g install .

Usage

ns-convert path/to/assets_gallery path/to/nativescript/App_Resources

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

v0.0.2:

  • Created global package definition
  • Fix bug when the animated gif returns multiple sizes (one for each frame)
  • Better documentation

v0.0.1:

  • First release

TODO

  • Clean code (it was a quickly implementation)
  • Verify it on windows

License

MIT

About

Small script that generates multi-resolution images for nativescript folder

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published