Code Monkey home page Code Monkey logo

dsync's Introduction

Dsync

近期在做 Flutter 的一个项目,手动引入本地图片,真是巨麻烦的事情。所以就想到使用 Dart 来写一个脚本工具,来同步图片资源到配置文件中。

Todo:

  • Dart 命令行环境
  • Command 封装
  • 图片同步配置文件
  • Pub Global

搭建 Dart 命令行开发环境

前提是你已经有了一个 Dart + VSCode 的一个基本环境了。

  • 新建命令行项目

在 VSCode 中按住 cmd + shift,选择 Dart project,选择 Command Line。

  • 打包命令行到本地 dart2native
// 编译成可执行文件
$ dart2native ./bin/main.dart -o dsync
// 将可执行文件复制到本地环境
$ cp -f ./dsync /usr/local/bin/dsync

这样就可以生成一个初步的一个小脚本了。

$ dsync
// 输出 hello word.

实践

根据想要的功能,来一步步的实现。

See Also

dsync's People

Contributors

susuyan avatar

Watchers

 avatar  avatar

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.