Giter VIP home page Giter VIP logo

dart_experiments's Introduction

Experimenting with Dart.

There is no Flutter build or anything like that.

Directory structure nutshell:

  • Sample command-line application with an entrypoint in bin/
  • Publicly visible (automatically exported) library code in lib/ and subdirectories.
  • Publicly invisible library code in lib/src and subdirectories. Library can export some files (packages) by placing 'export src/more/more1.dart' on the lib/ level, e.g. in enchilada.dart. Then everything in more/more1.dart becomes publicly available.
  • example unit test in test/.

See https://dart.dev/tools/pub/package-layout for directory structure details.

enchilada/
 .dart_tool/ *
 .packages *
 pubspec.yaml
 pubspec.lock **
 LICENSE
 README.md
 CHANGELOG.md
 benchmark/
   make_lunch.dart
 bin/
   enchilada
 doc/
   api/ ***
   getting_started.md
 example/
   main.dart
 lib/
   enchilada.dart : this could make visible publicly private library in src, by e.g. 'export src/more/more1.dart'
   tortilla.dart
   guacamole.css
   deeper/
     deeper.dart
   src/
     beans.dart
     queso.dart
     more/
       more1.dart
       more2.dart      
 test/
   enchilada_test.dart
   tortilla_test.dart
 tool/
   generate_docs.dart
 web/
   index.html
   main.dart
   style.css

Notes:

  • Clients have no way to see or refer to src/more/more2.dart.
  • Code in this package (anything under top enchilada/) can still import even unexported files (that is, under src)
  •                                                 by adding `import 'package:enchilada/src/more/more2.dart`
    
  • This is necessary for tests to be able to test unexported files under src.
  • Clients can refer to everything in enchilada.dart by adding import 'package:enchilada/enchilada.dart
  • Clients can refer to everything in tortilla.dart by adding import 'package:enchilada/tortilla.dart
  • Clients can refer to everything in deeper.dart by adding import 'package:enchilada/deeper/deeper.dart

dart_experiments's People

Contributors

mzimmerm avatar

Stargazers

dev 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.