Giter Club home page Giter Club logo

alpine-plugin-template's Introduction

Alpine JS starter template

Nothing fancy

  1. Alpine
  2. Jest
  3. Laravel Mix with LiveReload

Be sure to do a site wide search/replace for the following:

{author-name} - Example: Kevin Batdorf
{github-name} - Example: kevinbatdorf
{current-year} - Example: 2020
{package-title} - Example: The title of the package
{package-description} - Example: The summary
{package-slug} - Example: The full slug, like kevinbatdorf/alpine-plugin-template
{package-slug-short} - Example: alpine-plugin-template

TODO: Automate with an npm script like npm run setup or something

{package-title}

{package-description}

GitHub file size in bytes GitHub tag (latest by date)

About

When to use?

<div x-data="{}">
</div>
function functionName() {
  return {
    foo: 'bar'
  }
}

Demo

Installation

Include the following <script> tag in the <head> of your document (before Alpine):

<script src="https://cdn.jsdelivr.net/gh/{package-slug}@0.x.x/dist/index.js"></script>

Manual

If you wish to create your own bundle:

npm install {package-slug} --save

Then add the following to your script:

import '{package-slug-short}'
import 'alpinejs'

License

Copyright (c) {current-year} {author-name}

Licensed under the MIT license, see LICENSE.md for details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.