All Projects → raomengyun → auto_assets

raomengyun / auto_assets

Licence: MIT license
assets management tool for Flutter

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to auto assets

Asset Packagist
Asset Packagist
Stars: ✭ 235 (+1282.35%)
Mutual labels:  assets, assets-management
assetic
Asset Management for PHP
Stars: ✭ 61 (+258.82%)
Mutual labels:  assets, assets-management
ScriptableObjectCollection
A library to help improve the usability of Unity3D Scriptable Objects by grouping then into a collection and exposing then by code or nice inspectors!
Stars: ✭ 204 (+1100%)
Mutual labels:  assets, assets-management
laravel-assets
Laravel Assets manager
Stars: ✭ 13 (-23.53%)
Mutual labels:  assets, assets-management
Assets
An ultra-simple-to-use assets management library for PHP
Stars: ✭ 292 (+1617.65%)
Mutual labels:  assets, assets-management
Ocsinventory Ocsreports
Webconsole for OCS Inventory NG
Stars: ✭ 145 (+752.94%)
Mutual labels:  assets, assets-management
Ocsinventory Server
Communication server of OCS Inventory
Stars: ✭ 214 (+1158.82%)
Mutual labels:  assets, assets-management
OCSInventory-Docker-Image
Docker image for OCSInventory Server
Stars: ✭ 54 (+217.65%)
Mutual labels:  assets, assets-management
assetter
Assets manager for PHP. Allow manage CSS and JS files in website and its dependencies. Also allows refresh cache in browsers by adding revisions of loaded files. Builtin plugins to compile SASS and/or LESS styles to CSS just-in-time.
Stars: ✭ 14 (-17.65%)
Mutual labels:  assets, assets-management
Laravel Potion
laravel - Potion is a pure PHP asset manager for Laravel 5 based off of Assetic.
Stars: ✭ 63 (+270.59%)
Mutual labels:  assets, assets-management
Androidlibrary
Android library to reveal or obfuscate strings and assets at runtime
Stars: ✭ 162 (+852.94%)
Mutual labels:  assets, assets-management
hashed-asset-bundle
Apply an asset version based on a hash of the asset for symfony/asset
Stars: ✭ 24 (+41.18%)
Mutual labels:  assets
phoenix assets webpack
Asset Pipeline with Webpack on Phoenix
Stars: ✭ 52 (+205.88%)
Mutual labels:  assets
eleventy-load
Resolve dependencies and post-process files in your Eleventy project
Stars: ✭ 28 (+64.71%)
Mutual labels:  assets
flr-vscode-extension
Flr(Flutter-R) Extension: A Flutter Resource Manager VSCode Extension
Stars: ✭ 28 (+64.71%)
Mutual labels:  assets-management
Website-downloader
💡 Download the complete source code of any website (including all assets). [ Javascripts, Stylesheets, Images ] using Node.js
Stars: ✭ 615 (+3517.65%)
Mutual labels:  assets
Rtimageassets
A Xcode plugin to automatically generate 2x, 1x image from 3x image for you, or upscale to 3x from 2x
Stars: ✭ 2,490 (+14547.06%)
Mutual labels:  assets
Infinite Scroll Unity
Infinite Scroll is a script extension that allows you to use ScrollRect control as an infinite spinner. It is fast, simple and mobile-friendly way to make lists with thousands of rows.
Stars: ✭ 209 (+1129.41%)
Mutual labels:  assets
furatto-rails
Furatto CSS Framework for Rails Asset Pipeline
Stars: ✭ 36 (+111.76%)
Mutual labels:  assets
project-curator
A convenient tool to help cleaning and to maintain Unity Projects ✨
Stars: ✭ 99 (+482.35%)
Mutual labels:  assets

1. 解决的问题

  1. 自动生成 pubspec.yaml 资源声明。

  2. 自动压缩资源(目前支持: jpg/jpeg/png/svg)。

  3. 自动资源类型化,类似于的 Android 的 R.java,例如:

    class Assets {
       Assets._();
       static const String commonIconClose = "assets/common/icon_close.png";
    }
    
    class AssetImages {
       AssetImages._();
       static AssetImage get commonIconClose => const AssetImage(Assets.commonIconClose);
    }

2. 工具安装

auto_assets 是使用 nodejs 开发的工具,安装需要有 node 环境。

  1. 安装 nodejshttps://nodejs.org/en/download/
  2. 执行命令:npm install auto_assets -g
  3. 安装完之后即可使用 auto_assets 命令

3. 工具使用

3.1. 项目配置

在项目根目录下新建 assets_config.json 文件,文件内容:

{
  "assets": "assets/",
  "code": "lib/assets/"
}
  • assets 代表项目中资源文件的根目录,有多个的时候可以传入数组。
  • code 代表自动生成的代码的根目录。

3.2. 执行命令

auto_assets [Flutter项目根目录]

3.3. VSCode 插件

  1. 在 VSCode -> Extensions 下搜索 auto_assets 并安装。
  2. 重新打开项目。

4. 样例

TODO

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].