Skip to content

Commit

Permalink
chore: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pulgueta committed Sep 4, 2024
0 parents commit c5f11de
Show file tree
Hide file tree
Showing 11 changed files with 160 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# https://dart.dev/guides/libraries/private-files
# Created by `dart pub`
.dart_tool/

# Avoid committing pubspec.lock for library packages; see
# https://dart.dev/guides/libraries/private-files#pubspeclock.
pubspec.lock
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 1.0.0

- Initial version.
13 changes: 13 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Contribuciones

Para contribuir al proyecto, por favor sigue estos pasos:

1. Clona el repositorio.
<!-- 2. Instala las dependencias con `pnpm install`.
3. Ejecuta el linter con `pnpm lint`.
4. Ejecuta el formateador con `pnpm format`. -->
2. Crea una nueva rama para tu contribución.
3. Realiza tus cambios.
4. Crea un pull request.

<!-- Recuerda que debes seguir las convenciones de commit y el estilo de codificación del proyecto. -->
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) [year] [fullname]

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.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# @pulgueta/nequi-dart

SDK de la comunidad de Nequi para Dart

## Características

- Soporte para Dart
- Fácil de usar

## Instalación
<!--
```sh
pnpm add @pulgueta/nequi-node
npm install @pulgueta/nequi-node
yarn add @pulgueta/nequi-node
``` -->

## Uso
<!--
```ts
import { Nequi } from "@pulgueta/nequi-node";
const nequi = new Nequi({
apiKey: "your-api-key",
clientId: "your-client-id",
clientSecret: "your-client-secret",
// env: "development" | "production" basado en process.env.NODE_ENV
});
``` -->

## Contribuciones

Las contribuciones son bienvenidas. Por favor, lee el [CONTRIBUTING.md](./CONTRIBUTING.md) para más detalles.
30 changes: 30 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This file configures the static analysis results for your project (errors,
# warnings, and lints).
#
# This enables the 'recommended' set of lints from `package:lints`.
# This set helps identify many issues that may lead to problems when running
# or consuming Dart code, and enforces writing Dart using a single, idiomatic
# style and format.
#
# If you want a smaller set of lints you can change this to specify
# 'package:lints/core.yaml'. These are just the most critical lints
# (the recommended set includes the core lints).
# The core lints are also what is used by pub.dev for scoring packages.

include: package:lints/recommended.yaml

# Uncomment the following section to specify additional rules.

# linter:
# rules:
# - camel_case_types

# analyzer:
# exclude:
# - path/to/excluded/files/**

# For more information about the core and recommended set of lints, see
# https://dart.dev/go/core-lints

# For additional information about configuring this file, see
# https://dart.dev/guides/language/analysis-options
6 changes: 6 additions & 0 deletions example/nequi_dart_sdk_example.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import 'package:nequi_dart_sdk/nequi_dart_sdk.dart';

void main() {
var awesome = Awesome();
print('awesome: ${awesome.isAwesome}');
}
8 changes: 8 additions & 0 deletions lib/nequi_dart_sdk.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/// Support for doing something awesome.
///
/// More dartdocs go here.
library;

export 'src/nequi_dart_sdk_base.dart';

// TODO: Export any libraries intended for clients of this package.
6 changes: 6 additions & 0 deletions lib/src/nequi_dart_sdk_base.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// TODO: Put public facing types in this file.

/// Checks if you are awesome. Spoiler: you are.
class Awesome {
bool get isAwesome => true;
}
15 changes: 15 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: nequi_dart_sdk
description: A starting point for Dart libraries or applications.
version: 1.0.0
# repository: https://github.com/my_org/my_repo

environment:
sdk: ^3.5.2

# Add regular dependencies here.
dependencies:
# path: ^1.8.0

dev_dependencies:
lints: ^4.0.0
test: ^1.24.0
16 changes: 16 additions & 0 deletions test/nequi_dart_sdk_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import 'package:nequi_dart_sdk/nequi_dart_sdk.dart';
import 'package:test/test.dart';

void main() {
group('A group of tests', () {
final awesome = Awesome();

setUp(() {
// Additional setup goes here.
});

test('First Test', () {
expect(awesome.isAwesome, isTrue);
});
});
}

0 comments on commit c5f11de

Please sign in to comment.