daily_programmer_client_dart 1.0.2

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 50

Daily programing client dart

pub package Build Status Coverage Status

daily_programmer_dart_cli will generate a project skeleton into the current directory.

Installation

Requirements

Nothing.

To install

pub global activate daily_programmer_client_dart

To update, run activate again

pub global activate daily_programmer_client_dart

Usage

As anexample, here is how you create a package with daily_programmer_dart_cli :

Usage: daily_programmer_dart_cli <command> [arguments]

Global options:
-h, --help            Print this usage information.
-v, --[no-]verbose    Output extra logging information.

Available commands:
  challenge   Generate a new challenge.
  help        Display help information for daily_programmer.
  project     Generate a new project challenge.
  run         Run one or more challenges.

Run "daily_programmer_dart_cli help <command>" for more information about a command.

Example

mkdir my_challenges
cd my_challenges
daily_programmer_dart_cli

Challenges ? Wait, what ?

  • What ?
  • Where ?
  • With ? this and this
  • Why ?
    • Learn dart
    • Practice software design
    • Practice programming
    • Practice problem solving
    • Keep your programming skills current
    • Gain insights from peers
    • Motivation to practice by solving problems
    • To have fun
    • ...

Struct

.
├── .gitignore
├── bin
│   └── main.dart
├── lib                            # Contains all challenges
│   └── challenge-xxx              # Contains all files of the challenge
│       ├── README.md              # Description of challenge
│       ├── name_of_challenge.dart # Source of challenge
│       └── ...dart
├── pubspec.yaml
└── test
    ├── all.dart                   # Dart file for call all test
    └── challenge-xxx              # Contains test
        └── name_of_challenge.dart

My rules

  • No lint warning
  • Coverage of src > 95%
  • Latest version used
  • Only dart

Changelog

0.0.1

  • Initial version, created by gouvinb

0.0.2 -> 0.0.3

  • Lint
  • Fix warning exception when generate project

0.0.4

  • Move code to src folder
  • Lint markdown

0.0.5

  • Remove usless file

0.0.6

  • Lint and fix deps
  • Replace example bash script with sample dart code

0.0.7

  • Update readme (install and update part)

1.0.0

  • remove pana and add trace to test
  • add badges
  • lint yml
  • update .travis.yml, add pana and coveralls
  • add travis support
  • clean example

1.0.1 -> 1.0.2

  • fix travis slack

example/main.dart

import 'dart:io';

// This dart code send 4 command in your shell for example.
void main(List<String> args) {
  setUpExample();
  // Step 1: project command dry run
  run('daily_programmer_dart_cli project --dry-run -p /tmp -n testName project');
  // Step 2: project command
  run('daily_programmer_dart_cli project -p /tmp -n testName project');
  // Step 3: challenge command dry run
  run('daily_programmer_dart_cli challenge --dry-run -p /tmp/project challenge');
  // Step 4: challenge command
  run('daily_programmer_dart_cli challenge -p /tmp/project challenge');
}

/// Simple process runner wrapper
void run(String command) {
  Process.runSync(command.split(' ')[0], command.split(' ')..removeAt(0));
}

/// Check OS and remove `/tmp/project` for clean this example
void setUpExample() {
  if (!Platform.isLinux && !Platform.isMacOS) {
    print('Your OS (${Platform.operatingSystem}) is not supported.');
    exit(1);
  }
  run('rm -rf /tmp/project');
}

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  daily_programmer_client_dart: "^1.0.2"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

Version Uploaded Documentation Archive
1.0.2 Jan 12, 2018 Go to the documentation of daily_programmer_client_dart 1.0.2 Download daily_programmer_client_dart 1.0.2 archive
1.0.0 Jan 12, 2018 Go to the documentation of daily_programmer_client_dart 1.0.0 Download daily_programmer_client_dart 1.0.0 archive
0.0.7 Jan 11, 2018 Go to the documentation of daily_programmer_client_dart 0.0.7 Download daily_programmer_client_dart 0.0.7 archive
0.0.6 Jan 11, 2018 Go to the documentation of daily_programmer_client_dart 0.0.6 Download daily_programmer_client_dart 0.0.6 archive
0.0.5 Jan 11, 2018 Go to the documentation of daily_programmer_client_dart 0.0.5 Download daily_programmer_client_dart 0.0.5 archive
0.0.4 Jan 11, 2018 Go to the documentation of daily_programmer_client_dart 0.0.4 Download daily_programmer_client_dart 0.0.4 archive
0.0.3 Jan 11, 2018 Go to the documentation of daily_programmer_client_dart 0.0.3 Download daily_programmer_client_dart 0.0.3 archive
0.0.2 Jan 11, 2018 Go to the documentation of daily_programmer_client_dart 0.0.2 Download daily_programmer_client_dart 0.0.2 archive
0.0.1 Jan 5, 2018 Go to the documentation of daily_programmer_client_dart 0.0.1 Download daily_programmer_client_dart 0.0.1 archive

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Feb 3, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0 / 100
Health:
Code health derived from static analysis. [more]
100 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
50

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in libraries.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.24.0 <2.0.0
args ^1.2.0 1.3.0
logging ^0.11.3+1 0.11.3+1
mustache ^1.0.0 1.0.0
path ^1.5.1 1.5.1
resource ^2.1.2 2.1.2
Transitive dependencies
typed_data 1.1.5
Dev dependencies
test ^0.12.30