Download the PHP package laravel-frontend-presets/karma-eslint without Composer

On this page you can find all versions of the php package laravel-frontend-presets/karma-eslint. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package karma-eslint

Laravel 5.5.x|5.6.x Frontend Preset for Karma, ESLint

Laravel Preset for using Karma, ESLint (Airbnb), along with your built in laravel-mix & Vue.js setup, to get a working unit testing & code coverage for your JS assets.

The setup in this preset was extracted/modified from Vue.js webpack template. Configured to use Karma as the test runner, Mocha as the testing framework, Istanbul as the code coverage tool, ESLint for javascript linting using Airbnb JavaScript Style Guide, all of that while keeping your laravel-mix setup and frontend development experience untouched.

Contents

Installation

  1. Fresh install Laravel (5.5.x or 5.6.x) and cd to your app.
  2. Install this preset via composer: composer require laravel-frontend-presets/karma-eslint
  3. Use php artisan preset karma-eslint for scaffolding this preset. You will be prompted for confirmation of copying the files and overriding the existing ones. It's highly recommended to use this preset at the initial instantiation of your laravel project, otherwise, commit your changes before using it.
  4. npm install (or yarn install if you are using yarn, and you should 😬).
  5. discover the npm scripts:

    • npm run [dev|watch|hot|prod] is the standard commands shipped with the fresh laravel, check out the relevant laravel documentation
    • npm run test or npm test run the unit tests and check out the coverage report generated on /coverage.
    • npm run test:watch run and watch the unit tests/code coverage. watch according to your configured webpack configurations (in webpack.mix.js).
    • npm run lint run ESLint and show up the linting errors.
    • npm run lint:fix run ESLint and fix the fixable linting errors.
  6. The preset will create a directory at the root of your project called specs, this is your entry point for writing JS unit tests.

Note: it's named specs for differentiation from your backend php tests directory. it's up to you if you want to change this you will have to modify the path at the test npm script and the path at the tests entry point specs/setup/index.js which is called from the karma config file at specs/setup/karma.conf.js.

Quickstart

Screenshot

screenshot

Credits

License

The MIT License (MIT).

TODOs


All versions of karma-eslint with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version 5.5.*|5.6.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package laravel-frontend-presets/karma-eslint contains the following files

Loading the files please wait ....