npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@acanto/laravel-scripts

v1.1.0

Published

Scripts to manage Laravel Frontend applications

Downloads

524

Readme

Laravel Scripts

npm (scoped)

For all the documentation refer to the Acanto Framework Docs

Installation

It is recomended to start a project by running:

npx @acanto/create-laravel-app myproject
cd myproject
npm start

Available commands

From your root folder run npx acanto help or npm run help to view the available commands and their description.

Development

TODO

  • [] Environments might be made configurable through a custom config.environments value in the package.json, where each key is the environment name and the value is its branch, the default values would be:
  "config": {
    "environments": {
      "dev": "master",
      "staging": "staging",
      "production": "production"
    },
  • [x] Run php artisan view:clear && composer dump after generate component and after core (not needed with ps-4 autoloading mechanism)
  • [] autogenerate dummy translations.csv files based on cms api response in case they miss
  • [] check should check that there is a /vendor folder, otherwise run composer install
  • [] Add this command somewhere to the end of your deploy script (I put it just after artisan up) php artisan opcache:clear source
  • [] Implement preload/prefetch, see article from webpack author and probably use preload-webpack-plugin.

Notes

About assets inlining, CSS is inlined if the file size is minor than 50kb, as the AMP specification suggest. JS inline threshold is set to just 2kb instead, see this article.

About optimization evaluate the use of compression-webpack-plugin

About gzip compression see October's not-including-it-by-default reasons here https://github.com/octobercms/october/pull/1896, https://github.com/octobercms/october/pull/1885, https://github.com/octobercms/library/pull/201/commits/db2dec55ed7d42201f92b59e1de74b5c3196841c, https://github.com/octobercms/october/pull/1885/commits/86ca0c7e8d79a4a8f0662203b0b04cf549b6fc63, https://github.com/octobercms/october/issues/1847, https://octobercms.com/forum/post/assets-gzip-compression

About polyfills babel and webpack see: https://github.com/babel/babel-loader#note-transform-runtime--custom-polyfills-eg-promise-library, https://github.com/zloirock/core-js#babel, https://babeljs.io/docs/en/next/babel-preset-env.html#how-does-it-work, https://www.npmjs.com/package/polyfill-library

Bash utilities

  • Run start with more RAM node --max_old_space_size=8192 node_modules/@acanto/laravel-scripts/bin/laravel-scripts.js start (@see similar issue)

.htaccess

For a good explanation on how to manage redirects SEO friendly see How to force https, www and a trailing slash with one redirect.