From 97b4af1d75e31d9206d8780974d34c8ed995436a Mon Sep 17 00:00:00 2001 From: Elex Date: Sun, 26 Feb 2023 01:07:56 +0900 Subject: [PATCH] 2023-02-26 01:07 --- .gitignore | 9 +++++++++ README.md | 1 + hello/.gitignore | 9 +++++++++ hello/CHANGELOG.md | 3 +++ hello/README.md | 4 ++++ hello/analysis_options.yaml | 14 ++++++++++++++ hello/bin/hello.dart | 6 ++++++ hello/pubspec.lock | 12 ++++++++++++ hello/pubspec.yaml | 13 +++++++++++++ 9 files changed, 71 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 hello/.gitignore create mode 100644 hello/CHANGELOG.md create mode 100644 hello/README.md create mode 100644 hello/analysis_options.yaml create mode 100644 hello/bin/hello.dart create mode 100644 hello/pubspec.lock create mode 100644 hello/pubspec.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3d64647 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +# Files and directories created by pub +.dart_tool/ +.packages + +# Conventional directory for build outputs +build/ + +# Directory created by dartdoc +doc/api/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..cf3cdae --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Dart Examples \ No newline at end of file diff --git a/hello/.gitignore b/hello/.gitignore new file mode 100644 index 0000000..3d64647 --- /dev/null +++ b/hello/.gitignore @@ -0,0 +1,9 @@ +# Files and directories created by pub +.dart_tool/ +.packages + +# Conventional directory for build outputs +build/ + +# Directory created by dartdoc +doc/api/ diff --git a/hello/CHANGELOG.md b/hello/CHANGELOG.md new file mode 100644 index 0000000..687440b --- /dev/null +++ b/hello/CHANGELOG.md @@ -0,0 +1,3 @@ +## 1.0.0 + +- Initial version, created by Stagehand diff --git a/hello/README.md b/hello/README.md new file mode 100644 index 0000000..1a96d25 --- /dev/null +++ b/hello/README.md @@ -0,0 +1,4 @@ +A simple command-line application. + +Created from templates made available by Stagehand under a BSD-style +[license](https://github.com/dart-lang/stagehand/blob/master/LICENSE). diff --git a/hello/analysis_options.yaml b/hello/analysis_options.yaml new file mode 100644 index 0000000..a686c1b --- /dev/null +++ b/hello/analysis_options.yaml @@ -0,0 +1,14 @@ +# Defines a default set of lint rules enforced for +# projects at Google. For details and rationale, +# see https://github.com/dart-lang/pedantic#enabled-lints. +include: package:pedantic/analysis_options.yaml + +# For lint rules and documentation, see http://dart-lang.github.io/linter/lints. +# Uncomment to specify additional rules. +# linter: +# rules: +# - camel_case_types + +analyzer: +# exclude: +# - path/to/excluded/files/** diff --git a/hello/bin/hello.dart b/hello/bin/hello.dart new file mode 100644 index 0000000..8157762 --- /dev/null +++ b/hello/bin/hello.dart @@ -0,0 +1,6 @@ +void main(List arguments) { + int number; + number = 34; + + print('number = $number'); // null +} diff --git a/hello/pubspec.lock b/hello/pubspec.lock new file mode 100644 index 0000000..0fb5504 --- /dev/null +++ b/hello/pubspec.lock @@ -0,0 +1,12 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + pedantic: + dependency: "direct dev" + description: + name: pedantic + url: "https://pub.dartlang.org" + source: hosted + version: "1.11.0" +sdks: + dart: ">=2.12.0 <3.0.0" diff --git a/hello/pubspec.yaml b/hello/pubspec.yaml new file mode 100644 index 0000000..a482b79 --- /dev/null +++ b/hello/pubspec.yaml @@ -0,0 +1,13 @@ +name: hello +description: A simple command-line application. +# version: 1.0.0 +# homepage: https://www.example.com + +environment: + sdk: '>=2.12.0 <3.0.0' + +#dependencies: +# path: ^1.7.0 + +dev_dependencies: + pedantic: ^1.9.0