Skip to content

Commit

Permalink
Initial configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
xHeaven committed May 8, 2024
1 parent 87bb53e commit f812621
Show file tree
Hide file tree
Showing 18 changed files with 66 additions and 281 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
blank_issues_enabled: false
contact_links:
- name: Ask a question
url: https://github.com/luminarix/:package_name/discussions/new?category=q-a
url: https://github.com/luminarix/laravel-shopify-graphql/discussions/new?category=q-a
about: Ask the community for help
- name: Request a feature
url: https://github.com/luminarix/:package_name/discussions/new?category=ideas
url: https://github.com/luminarix/laravel-shopify-graphql/discussions/new?category=ideas
about: Share ideas for new features
- name: Report a security issue
url: https://github.com/luminarix/:package_name/security/policy
url: https://github.com/luminarix/laravel-shopify-graphql/security/policy
about: Learn how to notify us for sensitive bugs
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Changelog

All notable changes to `:package_name` will be documented in this file.
All notable changes to `laravel-shopify-graphql` will be documented in this file.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# :package_description
# GraphQL client for Shopify.

[![Latest Version on Packagist](https://img.shields.io/packagist/v/luminarix/:package_slug.svg?style=flat-square)](https://packagist.org/packages/luminarix/:package_slug)
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/luminarix/:package_slug/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/luminarix/:package_slug/actions?query=workflow%3Arun-tests+branch%3Amain)
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/luminarix/:package_slug/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/luminarix/:package_slug/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
[![Total Downloads](https://img.shields.io/packagist/dt/luminarix/:package_slug.svg?style=flat-square)](https://packagist.org/packages/luminarix/:package_slug)
[![Latest Version on Packagist](https://img.shields.io/packagist/v/luminarix/laravel-shopify-graphql.svg?style=flat-square)](https://packagist.org/packages/luminarix/laravel-shopify-graphql)
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/luminarix/laravel-shopify-graphql/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/luminarix/laravel-shopify-graphql/actions?query=workflow%3Arun-tests+branch%3Amain)
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/luminarix/laravel-shopify-graphql/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/luminarix/laravel-shopify-graphql/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
[![Total Downloads](https://img.shields.io/packagist/dt/luminarix/laravel-shopify-graphql.svg?style=flat-square)](https://packagist.org/packages/luminarix/laravel-shopify-graphql)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Expand All @@ -12,33 +12,33 @@ This is where your description should go. Limit it to a paragraph or two. Consid
You can install the package via composer:

```bash
composer require luminarix/:package_slug
composer require luminarix/laravel-shopify-graphql
```

You can publish and run the migrations with:

```bash
php artisan vendor:publish --tag=":package_slug-migrations"
php artisan vendor:publish --tag="laravel-shopify-graphql-migrations"
php artisan migrate
```

You can publish the config file with:

```bash
php artisan vendor:publish --tag=":package_slug-config"
php artisan vendor:publish --tag="laravel-shopify-graphql-config"
```

Optionally, you can publish the views using

```bash
php artisan vendor:publish --tag=":package_slug-views"
php artisan vendor:publish --tag="laravel-shopify-graphql-views"
```

## Usage

```php
$variable = new Luminarix\Skeleton();
echo $variable->echoPhrase('Hello, Luminarix!');
$graphQLClient = new Luminarix\Shopify\GraphQLClient();
echo $graphQLClient->echoPhrase('Hello, Luminarix!');
```

## Testing
Expand Down
18 changes: 9 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "luminarix/:package_slug",
"description": ":package_description",
"name": "luminarix/laravel-shopify-graphql",
"description": "GraphQL client for Shopify.",
"keywords": [
"Luminarix Labs",
"laravel",
":package_slug"
"laravel-shopify-graphql"
],
"homepage": "https://github.com/luminarix/:package_slug",
"homepage": "https://github.com/luminarix/laravel-shopify-graphql",
"license": "MIT",
"authors": [
{
Expand Down Expand Up @@ -34,13 +34,13 @@
},
"autoload": {
"psr-4": {
"Luminarix\\Skeleton\\": "src/",
"Luminarix\\Skeleton\\Database\\Factories\\": "database/factories/"
"Luminarix\\Shopify\\GraphQLClient\\": "src/",
"Luminarix\\Shopify\\GraphQLClient\\Database\\Factories\\": "database/factories/"
}
},
"autoload-dev": {
"psr-4": {
"Luminarix\\Skeleton\\Tests\\": "tests/"
"Luminarix\\Shopify\\GraphQLClient\\Tests\\": "tests/"
}
},
"scripts": {
Expand All @@ -59,10 +59,10 @@
"extra": {
"laravel": {
"providers": [
"Luminarix\\Skeleton\\SkeletonServiceProvider"
"Luminarix\\Shopify\\GraphQLClient\\GraphQLClientServiceProvider"
],
"aliases": {
"Skeleton": "Luminarix\\Skeleton\\Facades\\Skeleton"
"GraphQLClient": "Luminarix\\Shopify\\GraphQLClient\\Facades\\GraphQLClient"
}
}
},
Expand Down
10 changes: 10 additions & 0 deletions config/shopify-graphql.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

return [
'api_version' => env('SHOPIFY_API_VERSION', '2024-04'),
'client_id' => env('SHOPIFY_CLIENT_ID'),
'client_secret' => env('SHOPIFY_CLIENT_SECRET'),
'scopes' => [
'read_products',
],
];
5 changes: 0 additions & 5 deletions config/skeleton.php

This file was deleted.

159 changes: 0 additions & 159 deletions configure.php

This file was deleted.

19 changes: 0 additions & 19 deletions database/factories/ModelFactory.php

This file was deleted.

19 changes: 0 additions & 19 deletions database/migrations/create_skeleton_table.php.stub

This file was deleted.

Empty file removed resources/views/.gitkeep
Empty file.
19 changes: 0 additions & 19 deletions src/Commands/SkeletonCommand.php

This file was deleted.

16 changes: 16 additions & 0 deletions src/Facades/GraphQLClient.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Luminarix\Shopify\GraphQLClient\Facades;

use Illuminate\Support\Facades\Facade;

/**
* @see \Luminarix\Shopify\GraphQLClient\GraphQLClient
*/
class GraphQLClient extends Facade
{
protected static function getFacadeAccessor(): string
{
return \Luminarix\Shopify\GraphQLClient\GraphQLClient::class;
}
}
16 changes: 0 additions & 16 deletions src/Facades/Skeleton.php

This file was deleted.

Loading

0 comments on commit f812621

Please sign in to comment.