Skip to content

Refactor file path shortcuts #206

Closed
@seaneagan

Description

@seaneagan

Do we need the following?

WEB_DIR, LIB_DIR, BUILD_DIR, BIN_DIR, dartVM.

The names all violate the style guide, which would suggest:

webDir, libDir, buildDir, binDir, dartVm

The dirs could make sense as part of a class which represents a pub package:

class Package {
  Directory get lib => new Directory('lib');
  Directory get bin => new Directory('bin');
  Directory get test => new Directory('test');
  Directory get web => new Directory('web');
  Directory get build => new Directory('build');
  // Anything else here?
}

Package package => new Package();

dartVm could make sense as part of #204:

vm.path

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions