-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/6 disable timestamp generation (#7)
* Update README.md * Upgrade dependencies * Add library comment and change snake_case to camelCase in doc comments * 4.0.0-pre.1 (#5) * Update pubspec * 4.0.0-pre.1 * Update pipeline checks * Update badges * Add deployment config * Version format quickfix * Exclude publish_to * Add version preview to README.md * Remove extra topic * Ignore before header * Add funding * Fix readme.md * 4.0.0 * Add do not generate timestamp options --------- Co-authored-by: Vojtěch Pšenák <me@vojtapsenak.cz>
- Loading branch information
Showing
48 changed files
with
1,910 additions
and
550 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: "" | ||
labels: "" | ||
assignees: "" | ||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
|
||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
|
||
- OS: [e.g. iOS] | ||
- Browser [e.g. chrome, safari] | ||
- Version [e.g. 22] | ||
|
||
**Smartphone (please complete the following information):** | ||
|
||
- Device: [e.g. iPhone6] | ||
- OS: [e.g. iOS8.1] | ||
- Browser [e.g. stock browser, safari] | ||
- Version [e.g. 22] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: "" | ||
labels: "" | ||
assignees: "" | ||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: 2 | ||
enable-beta-ecosystems: true | ||
updates: | ||
- directory: "/" | ||
open-pull-requests-limit: 5 | ||
package-ecosystem: "pub" | ||
rebase-strategy: auto | ||
schedule: | ||
interval: "monthly" | ||
timezone: "UTC" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: Checkout | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- "master" | ||
- "develop" | ||
- "feature/**" | ||
- "bugfix/**" | ||
- "hotfix/**" | ||
- "support/**" | ||
paths: | ||
- "lib/**.dart" | ||
- "test/**.dart" | ||
- "example/**.dart" | ||
- "pubspec.yaml" | ||
pull_request: | ||
branches: | ||
- "master" | ||
- "develop" | ||
- "feature/**" | ||
- "bugfix/**" | ||
- "hotfix/**" | ||
- "support/**" | ||
paths: | ||
- "lib/**.dart" | ||
- "test/**.dart" | ||
- "example/**.dart" | ||
- "pubspec.yaml" | ||
|
||
jobs: | ||
checkout: | ||
name: "Checkout" | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./ | ||
container: | ||
image: dart:beta | ||
timeout-minutes: 10 | ||
steps: | ||
- name: 🚂 Get latest code | ||
uses: actions/checkout@v3 | ||
|
||
- name: 🚃 Cache pub modules | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-package | ||
with: | ||
path: | | ||
$PWD/.pub_cache/ | ||
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/pubspec.yaml') }} | ||
|
||
- name: 🗄️ Export pub cache directory | ||
run: export PUB_CACHE=$PWD/.pub_cache/ | ||
|
||
- name: 👷 Install Dependencies | ||
timeout-minutes: 1 | ||
run: | | ||
dart pub get | ||
- name: 🔎 Check format | ||
timeout-minutes: 1 | ||
run: dart format --set-exit-if-changed -l 80 -o none lib/ | ||
|
||
- name: 📈 Check analyzer | ||
timeout-minutes: 1 | ||
run: dart analyze --fatal-infos --fatal-warnings lib/ | ||
|
||
- name: 🧪 Run tests | ||
timeout-minutes: 2 | ||
run: | | ||
dart run coverage:test_with_coverage -fb -o coverage -- \ | ||
--concurrency=6 --platform vm --coverage=./coverage --reporter=expanded test/pubspec_generator_test.dart | ||
- name: 📥 Upload coverage to Codecov | ||
timeout-minutes: 1 | ||
uses: codecov/codecov-action@v3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Deploy | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- "[0-9]+.[0-9]+.[0-9]+*" | ||
|
||
jobs: | ||
deploy: | ||
name: "Deploy to Pub.dev" | ||
permissions: | ||
id-token: write # Required for authentication using OIDC | ||
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,77 @@ | ||
# Files and directories created by pub | ||
.packages | ||
# Don’t commit the following directories created by pub. | ||
.buildlog | ||
.dart_tool/ | ||
.pub/ | ||
pubspec.lock | ||
.dart_tool | ||
doc/ | ||
build/ | ||
packages | ||
*.packages | ||
.idea/ | ||
doc | ||
|
||
# Or the files created by dart2js. | ||
*.dart.js | ||
*.js_ | ||
*.js.deps | ||
*.js.map | ||
|
||
# Include when developing application packages. | ||
pubspec.lock | ||
coverage* | ||
|
||
# Codegen | ||
*.g.dart | ||
|
||
# Logs | ||
l/ | ||
|
||
# Miscellaneous | ||
*.class | ||
*.log | ||
*.pyc | ||
*.swp | ||
.DS_Store | ||
.atom/ | ||
.buildlog/ | ||
.history | ||
.svn/ | ||
|
||
# IntelliJ related | ||
*.iml | ||
*.ipr | ||
*.iws | ||
|
||
# The .vscode folder contains launch configuration and tasks you configure in | ||
# VS Code which you may wish to be included in version control, so this line | ||
# is commented out by default. | ||
#.vscode/ | ||
|
||
# Flutter/Dart/Pub related | ||
**/doc/api/ | ||
**/ios/Flutter/.last_build_id | ||
.flutter-plugins | ||
.flutter-plugins-dependencies | ||
.packages | ||
.pub-cache/ | ||
/build/ | ||
|
||
# Web related | ||
lib/generated_plugin_registrant.dart | ||
|
||
# Symbolication related | ||
app.*.symbols | ||
|
||
# Obfuscation related | ||
app.*.map.json | ||
|
||
# Android Studio will place build artifacts here | ||
/android/app/debug | ||
/android/app/profile | ||
/android/app/release | ||
|
||
# Pana | ||
log.pana.json | ||
|
||
# Test | ||
.coverage/ | ||
/test/**/*.json | ||
/test/.test_coverage.dart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"recommendations": [ | ||
"dart-code.dart-code" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Example", | ||
"request": "launch", | ||
"type": "dart", | ||
"program": "tool/runner.dart", | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"[dart]": { | ||
"editor.selectionHighlight": false, | ||
"editor.suggest.snippetsPreventQuickSuggestions": false, | ||
"editor.suggestSelection": "first", | ||
"editor.tabCompletion": "onlySnippets", | ||
"editor.wordBasedSuggestions": false, | ||
"editor.rulers": [80], | ||
"editor.defaultFormatter": "Dart-Code.dart-code", | ||
"editor.formatOnPaste": true, | ||
"editor.formatOnSave": true, | ||
//"editor.formatOnType" : true, | ||
"editor.insertSpaces": true | ||
}, | ||
"dart.lineLength": 80, | ||
"dart.doNotFormat": ["**.g.dart", "**.mocks.dart"], | ||
"search.exclude": { | ||
".dart_tool": true, | ||
"coverage": true, | ||
"build": true | ||
}, | ||
"files.watcherExclude": { | ||
".dart_tool": true, | ||
"coverage": true, | ||
"build": true | ||
}, | ||
"debug.openDebug": "openOnDebugBreak", | ||
"explorer.fileNesting.enabled": true, | ||
"explorer.fileNesting.expand": false, | ||
"explorer.fileNesting.patterns": { | ||
"pubspec.yaml": ".packages, .metadata, .packages, pubspec.lock, *.yaml", | ||
".gitignore": ".gitattributes, .gitmodules, .gitmessage, .mailmap, .git-blame*, .dockerignore", | ||
"readme.*": "authors, backers.md, changelog*, citation*, code_of_conduct.md, codeowners, contributing.md, contributors, copying, credits, governance.md, history.md, license*, maintainers, readme*, security.md, sponsors.md", | ||
"*.dart": "$(capture).g.dart, $(capture).i.dart, $(capture).stub.dart, $(capture).web.dart, $(capture).html.dart, $(capture).js.dart, $(capture).io.dart, $(capture).base.dart" | ||
}, | ||
"files.associations": { | ||
"*.drift": "sql" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "Dependencies", | ||
"type": "shell", | ||
"command": [ | ||
"dart pub get" | ||
], | ||
"group": { | ||
"kind": "none", | ||
"isDefault": true | ||
}, | ||
"problemMatcher": [] | ||
} | ||
] | ||
} |
Oops, something went wrong.