Skip to content

Commit

Permalink
Feature/6 disable timestamp generation (#7)
Browse files Browse the repository at this point in the history
* 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
PlugFox and psenakv committed Oct 24, 2023
1 parent dbbf6f5 commit 3e0b6d1
Show file tree
Hide file tree
Showing 48 changed files with 1,910 additions and 550 deletions.
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
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.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
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.
10 changes: 10 additions & 0 deletions .github/dependabot.yaml
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"
79 changes: 79 additions & 0 deletions .github/workflows/checkout.yml
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
14 changes: 14 additions & 0 deletions .github/workflows/deploy.yml
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
21 changes: 0 additions & 21 deletions .github/workflows/main.yml

This file was deleted.

80 changes: 75 additions & 5 deletions .gitignore
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
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"dart-code.dart-code"
]
}
11 changes: 11 additions & 0 deletions .vscode/launch.json
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",
}
]
}
39 changes: 39 additions & 0 deletions .vscode/settings.json
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"
}
}
17 changes: 17 additions & 0 deletions .vscode/tasks.json
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": []
}
]
}
Loading

0 comments on commit 3e0b6d1

Please sign in to comment.