Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hofmannsven/laravel-modernizr-command
Laravel artisan console command to generate custom Modernizr builds.
https://github.com/hofmannsven/laravel-modernizr-command
laravel laravel-package modernizr
Last synced: 14 days ago
JSON representation
Laravel artisan console command to generate custom Modernizr builds.
- Host: GitHub
- URL: https://github.com/hofmannsven/laravel-modernizr-command
- Owner: hofmannsven
- License: mit
- Created: 2019-04-03T20:14:17.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-01T22:45:11.000Z (almost 2 years ago)
- Last Synced: 2024-10-27T06:55:45.747Z (about 2 months ago)
- Topics: laravel, laravel-package, modernizr
- Language: PHP
- Size: 295 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# Laravel Modernizr Command
[![Latest Version on Packagist](https://img.shields.io/packagist/v/hofmannsven/laravel-modernizr-command.svg?labelColor=232e4a&color=55597b&style=for-the-badge)](https://packagist.org/packages/hofmannsven/laravel-modernizr-command)
[![Build Status](https://img.shields.io/travis/hofmannsven/laravel-modernizr-command/master.svg?labelColor=232e4a&color=55597b&style=for-the-badge)](https://travis-ci.org/hofmannsven/laravel-modernizr-command)
[![GitHub license](https://img.shields.io/github/license/hofmannsven/laravel-modernizr-command.svg?labelColor=232e4a&color=55597b&style=for-the-badge)](https://raw.githubusercontent.com/hofmannsven/laravel-modernizr-command/master/LICENSE.md)Laravel artisan command to generate custom Modernizr builds.
[Modernizr](https://modernizr.com/) is a JavaScript library that detects HTML5 and CSS3 features in the user's browser.
## Installation
You can install the package via Composer:
```bash
composer require --dev hofmannsven/laravel-modernizr-command
```### Install Modernizr
Require Modernizr as a dependency in your `package.json` file:
```bash
npm i modernizr --save
```### Publish the config files
Publish both package config files (`config.php` and `modernizr.json`):
```bash
php artisan vendor:publish --provider="Hofmannsven\Modernizr\ModernizrServiceProvider"
```### Customize the config files
Example `modernizr.json` config file for SVG feature detection:
```json
{
"feature-detects": [
"svg",
"svg/asimg",
"svg/clippaths",
"svg/filters",
"svg/foreignobject",
"svg/inline",
"svg/smil"
]
}
```See Modernizr's [`config-all.json`](https://github.com/Modernizr/Modernizr/blob/master/lib/config-all.json) file for all detectable features.
## Usage
Generate your custom Modernizr build based on your `config.php` and `modernizr.json` config files:
```bash
php artisan modernizr:generate
```## Testing
```bash
composer test
```## Changelog
Please read the [changelog](https://github.com/hofmannsven/laravel-modernizr-command/blob/master/CHANGELOG.md) for more information about what has changed recently.
## Contributing
Please read the [contribution guidelines](https://github.com/hofmannsven/laravel-modernizr-command/blob/master/.github/CONTRIBUTING.md) for details.
## Support
Always feel free to [raise an issue](https://github.com/hofmannsven/laravel-modernizr-command/issues) on GitHub.
## Security
If you discover a security issue, please contact me directly.
My GPG fingerprint/key is available on [Keybase](https://keybase.io/hofmannsven).## Credits
- [Sven Hofmann](https://github.com/hofmannsven)
- [All Contributors](https://github.com/hofmannsven/laravel-modernizr-command/graphs/contributors)## License
MIT License (MIT). Please read the [license](LICENSE.md) for more information.