dilithium 0.1.2 copy "dilithium: ^0.1.2" to clipboard
dilithium: ^0.1.2 copied to clipboard

outdatedDart 1 only

Core Utils for Play_Phaser

==< dilithium: li2 >== #

Use yaml to configure play_phaser assets. Integrated project scaffold generator with Liquid templates.

Quickstart #

Install #

$ sudo npm install dilithium -g

Create a new Dart project #

$ li2 create DemoApp
$ cd demoapp
$ pub build

Inject yaml config into application:

void main() {

  Dilithium
  .using("packages/appname")
  .then((config) => new App(config));

}

class App extends Dilithium {

  App(config) : super(config);

}

Usage #

Usage:
  li2 create PATH [-t name | <path>]

Options:
  -h  [--help]        # display this message
  -t  [--template]    # new project template, defaults to 'default'
  -v  [--version]     # display version
  -a  [--author]      # set author
  -d  [--description] # set description
  -l  [--license]     # set license text
  -w  [--webpage]     # set home page

What Next? #

Copy /usr/lib/node_modules/dilithium/templates/default somewhere, and make your own template. Use flag --template path/to/template to specify your custom template.

Templates use Liquid syntax. The following variables are available:

  • project.name
  • project.libname
  • project.description
  • project.author
  • project.homepage
  • project.license

Templates can be used in path names. For example, in a project named 'Demo', a template file named {{project.name}}.dart is transformed into Demo.dart

0
likes
0
points
161
downloads

Publisher

unverified uploader

Weekly Downloads

Core Utils for Play_Phaser

Homepage

License

unknown (license)

Dependencies

args, browser, play_phaser, play_pixi, yaml

More

Packages that depend on dilithium