Coder Social home page Coder Social logo

lighthouse's Introduction

lighthouse's People

Contributors

hazemelgohary avatar maxzod avatar mo-ah-dawood avatar spiercer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

lighthouse's Issues

'assets:add' doesn't skip files starting with .

Describe the bug
The assets:add command doesn't skip hidden files as mentioned here.

To Reproduce
Steps to reproduce the behavior:

  1. Run lh assets:add
  2. Open pubspec.yaml
  3. Added assets contain the .DS_Store file from macOS
flutter:
  uses-material-design: true

  assets:
    - assets/.DS_Store
    - assets/image.jpg
    ...

Expected behavior
assets:add skips hidden files.

Desktop (please complete the following information):

  • OS: macOs

`lh assets:resize`

the goal

  • add images in the beast quality and use the best resolution based on the screen size for better performance

How it will works

  • add your assets in 3x folder assets/images/3x
  • the LH will look into these folder resize images to other lower resolutions
  • you will use your assets normally and flutter will do the rest πŸ’™ docs

example

  • assets/images/3x/foo.png
  • use the lh command
  • lh will resize it to smaller resolutions
  • use it like this
return Image.asset('assets/images/foo.png');
  • flutter will load the best resolution based on the screen size either form 1x or 2x or 3x

Notes

  • the command will delete the 2x and 1x folder then create them from scratch
  • support nested folders not just 1 level deep
  • support all platforms

add only parent folder with command `assets:add`

Is your feature request related to a problem? Please describe.
no

Describe the solution you'd like
if I have 60 file with the same parent the command will add 60 path

-assets
   -images
      -image1.png 
      -image2.png
      -image3.png
      -image4.png
      -image5.png
      -image6.png
      -image7.png

currently it will make this output after using the command lh assets:add

flutter:
 assets:
  -assets/images/image1.png
  -assets/images/image2.png
  -assets/images/image3.png
  -assets/images/image4.png
  -assets/images/image5.png
  -assets/images/image6.png
  -assets/images/image7.png

Describe alternatives you've considered
while if the command only added

flutter:
 assets:
  -assets/images/

it will work but with much fewer lines on pubspec.yaml

lh assets:add

the goal

  • add the assets folder content to pubspec.yaml

How it will works

  • add your assets into your assets folder
  • use the command lh assets:add
  • the LH will look into these folder update the project pubspec.yaml and add you assets paths to the assets tag
flutter:
  assets:
  # * HERE WILL BE LIST OF PATHS TO YOUR ASSETS 

Notes

  • the command will delete the old content of the flutter assets tag
  • support nested folders not just 1 level deep
  • support all platforms

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.