Skip to content

Commit 6995575

Browse files
committed
Add support for Node.js and npm dependencies, and install Tailwind CSS and PostCSS for the Laravel Tailwind CSS package.
1 parent e691d1d commit 6995575

28 files changed

+1937
-607
lines changed

.github/workflows/phpstan.yml

-28
This file was deleted.

.github/workflows/run-tests.yml

+10
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
- 'phpunit.xml.dist'
99
- 'composer.json'
1010
- 'composer.lock'
11+
- 'package.json'
12+
- 'package-lock.json'
1113

1214
jobs:
1315
test:
@@ -37,6 +39,14 @@ jobs:
3739
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
3840
coverage: none
3941

42+
- name: Setup Node.js
43+
uses: actions/setup-node@v3
44+
with:
45+
node-version: ${{ matrix.node }}
46+
47+
- name: Install npm dependencies
48+
run: npm install
49+
4050
- name: Setup problem matchers
4151
run: |
4252
echo "::add-matcher::${{ runner.tool_cache }}/php.json"

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Changelog
22

3-
All notable changes to `:package_name` will be documented in this file.
3+
All notable changes to `laravel-tailwindcss` will be documented in this file.

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) :vendor_name <author@domain.com>
3+
Copyright (c) Fuelviews <support@fuelviews.com>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+17-55
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,24 @@
1-
# :package_description
2-
3-
[![Latest Version on Packagist](https://img.shields.io/packagist/v/:vendor_slug/:package_slug.svg?style=flat-square)](https://packagist.org/packages/:vendor_slug/:package_slug)
4-
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/:vendor_slug/:package_slug/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/:vendor_slug/:package_slug/actions?query=workflow%3Arun-tests+branch%3Amain)
5-
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/:vendor_slug/:package_slug/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/:vendor_slug/:package_slug/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
6-
[![Total Downloads](https://img.shields.io/packagist/dt/:vendor_slug/:package_slug.svg?style=flat-square)](https://packagist.org/packages/:vendor_slug/:package_slug)
7-
<!--delete-->
8-
---
9-
This repo can be used to scaffold a Laravel package. Follow these steps to get started:
10-
11-
1. Press the "Use this template" button at the top of this repo to create a new repo with the contents of this skeleton.
12-
2. Run "php ./configure.php" to run a script that will replace all placeholders throughout all the files.
13-
3. Have fun creating your package.
14-
4. If you need help creating a package, consider picking up our <a href="https://laravelpackage.training">Laravel Package Training</a> video course.
15-
---
16-
<!--/delete-->
17-
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
18-
19-
## Support us
1+
# Fuelviews laravel tailwindcss package
202

21-
[<img src="https://github-ads.s3.eu-central-1.amazonaws.com/:package_name.jpg?t=1" width="419px" />](https://spatie.be/github-ad-click/:package_name)
3+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/fuelviews/laravel-tailwindcss.svg?style=flat-square)](https://packagist.org/packages/fuelviews/laravel-tailwindcss)
4+
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/fuelviews/laravel-tailwindcss/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/fuelviews/laravel-tailwindcss/actions?query=workflow%3Arun-tests+branch%3Amain)
5+
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/fuelviews/laravel-tailwindcss/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/fuelviews/laravel-tailwindcss/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
6+
[![Total Downloads](https://img.shields.io/packagist/dt/fuelviews/laravel-tailwindcss.svg?style=flat-square)](https://packagist.org/packages/fuelviews/laravel-tailwindcss)
227

23-
We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).
24-
25-
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).
8+
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
269

2710
## Installation
2811

29-
You can install the package via composer:
30-
31-
```bash
32-
composer require :vendor_slug/:package_slug
33-
```
34-
35-
You can publish and run the migrations with:
36-
37-
```bash
38-
php artisan vendor:publish --tag=":package_slug-migrations"
39-
php artisan migrate
40-
```
41-
42-
You can publish the config file with:
12+
You can require the package and it's dependencies via composer:
4313

4414
```bash
45-
php artisan vendor:publish --tag=":package_slug-config"
46-
```
47-
48-
This is the contents of the published config file:
49-
50-
```php
51-
return [
52-
];
15+
composer require fuelviews/laravel-tailwindcss
5316
```
5417

55-
Optionally, you can publish the views using
18+
You can install tailwindcss, postcss, and their dependencies with:
5619

5720
```bash
58-
php artisan vendor:publish --tag=":package_slug-views"
59-
```
60-
61-
## Usage
62-
63-
```php
64-
$variable = new VendorName\Skeleton();
65-
echo $variable->echoPhrase('Hello, VendorName!');
21+
php artisan tailwindcss:install
6622
```
6723

6824
## Testing
@@ -85,9 +41,15 @@ Please review [our security policy](../../security/policy) on how to report secu
8541

8642
## Credits
8743

88-
- [:author_name](https://github.com/:author_username)
44+
- [Thejmitchener](https://github.com/thejmitchener)
45+
- [Fuelviews](https://github.com/fuelviews)
46+
- [Tailwind](https://github.com/tailwindlabs/tailwindcss)
8947
- [All Contributors](../../contributors)
9048

49+
## Support us
50+
51+
Fuelviews is a web development agency based in Portland, Maine. You'll find an overview of all our projects [on our website](https://fuelviews.com).
52+
9153
## License
9254

9355
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

composer.json

+18-23
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,51 @@
11
{
2-
"name": ":vendor_slug/:package_slug",
3-
"description": ":package_description",
2+
"name": "fuelviews/laravel-tailwindcss",
3+
"description": "Fuelviews laravel tailwindcss package",
44
"keywords": [
5-
":vendor_name",
5+
"fuelviews",
66
"laravel",
7-
":package_slug"
7+
"laravel-tailwindcss",
8+
"tailwindcss",
9+
"postcss",
10+
"css"
811
],
9-
"homepage": "https://github.com/:vendor_slug/:package_slug",
12+
"homepage": "https://github.com/fuelviews/laravel-tailwindcss",
1013
"license": "MIT",
1114
"authors": [
1215
{
13-
"name": ":author_name",
14-
"email": "author@domain.com",
16+
"name": "Joshua Mitchener",
17+
"email": "support@fuelviews.com",
1518
"role": "Developer"
1619
}
1720
],
1821
"require": {
1922
"php": "^8.2",
2023
"spatie/laravel-package-tools": "^1.16",
21-
"illuminate/contracts": "^10.0||^11.0"
24+
"illuminate/contracts": "^10.0||^11.0",
25+
"laravel/prompts": "^0.1.16"
2226
},
2327
"require-dev": {
2428
"laravel/pint": "^1.14",
2529
"nunomaduro/collision": "^8.1.1||^7.10.0",
26-
"larastan/larastan": "^2.9",
2730
"orchestra/testbench": "^9.0.0||^8.22.0",
2831
"pestphp/pest": "^2.34",
2932
"pestphp/pest-plugin-arch": "^2.7",
30-
"pestphp/pest-plugin-laravel": "^2.3",
31-
"phpstan/extension-installer": "^1.3",
32-
"phpstan/phpstan-deprecation-rules": "^1.1",
33-
"phpstan/phpstan-phpunit": "^1.3",
34-
"spatie/laravel-ray": "^1.35"
33+
"pestphp/pest-plugin-laravel": "^2.3"
3534
},
3635
"autoload": {
3736
"psr-4": {
38-
"VendorName\\Skeleton\\": "src/",
39-
"VendorName\\Skeleton\\Database\\Factories\\": "database/factories/"
37+
"Fuelviews\\Tailwindcss\\": "src/"
4038
}
4139
},
4240
"autoload-dev": {
4341
"psr-4": {
44-
"VendorName\\Skeleton\\Tests\\": "tests/",
42+
"Fuelviews\\Tailwindcss\\Tests\\": "tests/",
4543
"Workbench\\App\\": "workbench/app/"
4644
}
4745
},
4846
"scripts": {
4947
"post-autoload-dump": "@composer run prepare",
50-
"clear": "@php vendor/bin/testbench package:purge-skeleton --ansi",
48+
"clear": "@php vendor/bin/testbench package:purge-laravel-tailwindcss --ansi",
5149
"prepare": "@php vendor/bin/testbench package:discover --ansi",
5250
"build": [
5351
"@composer run prepare",
@@ -73,11 +71,8 @@
7371
"extra": {
7472
"laravel": {
7573
"providers": [
76-
"VendorName\\Skeleton\\SkeletonServiceProvider"
77-
],
78-
"aliases": {
79-
"Skeleton": "VendorName\\Skeleton\\Facades\\Skeleton"
80-
}
74+
"Fuelviews\\Tailwindcss\\TailwindCssServiceProvider"
75+
]
8176
}
8277
},
8378
"minimum-stability": "dev",

config/skeleton.php

-6
This file was deleted.

0 commit comments

Comments
 (0)