Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: nilts_core #250

Merged
merged 1 commit into from
Feb 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,23 @@ on:
push:
tags:
- 'nilts-v[0-9]+.[0-9]+.[0-9]+*'
- 'nilts_core-v[0-9]+.[0-9]+.[0-9]+*'

jobs:
publish:
publish_nilts:
if: startsWith(github.ref, 'refs/tags/nilts-v')
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/publish.yml@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c # v1
with:
environment: 'pub.dev'
working-directory: packages/nilts

publish_nilts_core:
if: startsWith(github.ref, 'refs/tags/nilts_core-v')
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/publish.yml@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c # v1
with:
environment: 'pub.dev'
working-directory: packages/nilts_core
3 changes: 2 additions & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"packages/nilts": "0.18.3"
"packages/nilts": "0.18.3",
"packages/nilts_core": "0.1.0"
}
20 changes: 14 additions & 6 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,13 @@ scripts:
description: lint

lint:dart:
run: melos exec -c 1 --scope="nilts" -- dart analyze --fatal-infos --fatal-warnings
run: melos exec -c 1 --ignore="nilts_test" -- dart analyze --fatal-infos --fatal-warnings
description: lint with dart

lint:flutter:
run: melos exec -c 1 --scope="nilts_test" -- flutter analyze --fatal-infos --fatal-warnings
exec: flutter analyze --fatal-infos --fatal-warnings
packageFilters:
scope: nilts_test
description: lint with flutter

fmt:
Expand Down Expand Up @@ -92,13 +94,15 @@ scripts:
description: test

test:custom_lint:
run: melos exec -c 1 --scope="nilts_test" -- flutter pub run custom_lint
exec: flutter pub run custom_lint
packageFilters:
scope: nilts_test
description: custom_lint test

test:unit:
exec: very_good test
packageFilters:
scope: nilts_test
scope: nilts_core
description: unit test

build:example:
Expand All @@ -108,9 +112,13 @@ scripts:
description: build on nilts_example

build:example:android:
run: melos exec -c 1 --scope="nilts_example" -- flutter build appbundle
exec: flutter build appbundle
packageFilters:
scope: nilts_example
description: build android on nilts_example

build:example:ios:
run: melos exec -c 1 --scope="nilts_example" -- flutter build ios --no-codesign
exec: flutter build ios --no-codesign
packageFilters:
scope: nilts_example
description: build ios on nilts_example
2 changes: 1 addition & 1 deletion packages/nilts/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Seiya Kokushi
Copyright (c) 2023- Seiya Kokushi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions packages/nilts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ nilts is lint rules, quick fixes and assists for Dart and Flutter projects that
[![pub][badge-pub]](https://pub.dev/packages/nilts)
[![license][badge-license]](https://github.com/dassssshers/nilts/blob/main/packages/nilts/LICENSE)

[badge-build]: https://img.shields.io/github/actions/workflow/status/ronnnnn/nilts/build.yml?style=for-the-badge&logo=github%20actions&logoColor=%232088FF&color=gray&link=https%3A%2F%2Fgithub.com%2Fronnnnn%2Fnilts%2Factions%2Fworkflows%2Fbuild.yml
[badge-build]: https://img.shields.io/github/actions/workflow/status/dassssshers/nilts/build.yml?style=for-the-badge&logo=github%20actions&logoColor=%232088FF&color=gray&link=https%3A%2F%2Fgithub.com%2Fdassssshers%2Fnilts%2Factions%2Fworkflows%2Fbuild.yml
[badge-pub]: https://img.shields.io/pub/v/nilts?style=for-the-badge&logo=dart&logoColor=%230175C2&color=gray&link=https%3A%2F%2Fpub.dev%2Fpackages%2Fnilts
[badge-license]: https://img.shields.io/badge/license-mit-green?style=for-the-badge&logo=github&logoColor=%23181717&color=gray&link=https%3A%2F%2Fgithub.com%2Fronnnnn%2Fnilts%2Fblob%2Fmain%2Fpackages%2Fnilts%2FLICENSE
[badge-license]: https://img.shields.io/badge/license-mit-green?style=for-the-badge&logo=github&logoColor=%23181717&color=gray&link=https%3A%2F%2Fgithub.com%2Fdassssshers%2Fnilts%2Fblob%2Fmain%2Fpackages%2Fnilts%2FLICENSE

</div>

Expand Down
24 changes: 24 additions & 0 deletions packages/nilts_core/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
migrate_working_dir/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# Flutter/Dart/Pub related
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
pubspec.lock
**/doc/api/
.packages
build/
2 changes: 2 additions & 0 deletions packages/nilts_core/.pubignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Resources
/resources
Empty file.
21 changes: 21 additions & 0 deletions packages/nilts_core/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023- Seiya Kokushi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
36 changes: 36 additions & 0 deletions packages/nilts_core/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<div align="center">

# nilts_core

nilts_core is a core package for the [nilts](https://github.com/dassssshers/nilts).

[![build][badge-build]](https://github.com/dassssshers/nilts/actions/workflows/build.yml)
[![pub][badge-pub]](https://pub.dev/packages/nilts_core)
[![license][badge-license]](https://github.com/dassssshers/nilts/blob/main/packages/nilts_core/LICENSE)

[badge-build]: https://img.shields.io/github/actions/workflow/status/dassssshers/nilts/build.yml?style=for-the-badge&logo=github%20actions&logoColor=%232088FF&color=gray&link=https%3A%2F%2Fgithub.com%2Fdassssshers%2Fnilts%2Factions%2Fworkflows%2Fbuild.yml
[badge-pub]: https://img.shields.io/pub/v/nilts_core?style=for-the-badge&logo=dart&logoColor=%230175C2&color=gray&link=https%3A%2F%2Fpub.dev%2Fpackages%2Fnilts_core
[badge-license]: https://img.shields.io/badge/license-mit-green?style=for-the-badge&logo=github&logoColor=%23181717&color=gray&link=https%3A%2F%2Fgithub.com%2Fdassssshers%2Fnilts%2Fblob%2Fmain%2Fpackages%2Fnilts_core%2FLICENSE

</div>

---

## Contents

- [Feature requests](#feature-requests)
- [Bug reports](#bug-reports)
- [Contributing](#contributing)

## Feature requests

If you have any feature requests, please create [an issue from this template](https://github.com/dassssshers/nilts/issues/new?&labels=feat&template=feat.yml).

## Bug reports

If you find any bugs, please create [an issue from this template](https://github.com/dassssshers/nilts/issues/new?&labels=bug&template=bug.yml).

## Contributing

Welcome your contributions!!
Please read [CONTRIBUTING](https://github.com/dassssshers/nilts/blob/main/CONTRIBUTING.md) docs before submitting your PR.
1 change: 1 addition & 0 deletions packages/nilts_core/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include: ../../analysis_options.yaml
1 change: 1 addition & 0 deletions packages/nilts_core/example/example.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Refer to [nilts_example](https://github.com/dassssshers/nilts/tree/main/examples/nilts_example) for example project.
2 changes: 2 additions & 0 deletions packages/nilts_core/lib/nilts_core.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export 'src/dart_version.dart';
export 'src/utils/library_element_ext.dart';
Loading
Loading