stimulus-vite-helpers
Advanced tools
Comparing version 1.0.1 to 1.0.2
[Stimulus HMR plugin]: https://github.com/ElMassimo/vite-plugin-stimulus-hmr | ||
## stimulus-vite-helpers 1.0.2 (2020-02-18) | ||
- Allow a `/components` prefix to the filename for simpler integration when | ||
using view components. | ||
## stimulus-vite-helpers 1.0.1 (2020-02-15) | ||
@@ -10,2 +15,2 @@ | ||
- Initial version | ||
- Initial version |
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/index.ts | ||
var CONTROLLER_FILENAME_REGEX = /^(?:\.\/|.*?controllers\/)?(.+)(?:[_-]controller\..+?)$/; | ||
var CONTROLLER_FILENAME_REGEX = /^(?:\.\/|.*?(?:controllers|components)\/)?(.+)(?:[_-]controller\..+?)$/; | ||
function registerControllers(application, controllerModules) { | ||
@@ -4,0 +4,0 @@ application.load(definitionsFromGlob(controllerModules)); |
{ | ||
"name": "stimulus-vite-helpers", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Vite.js helpers for the Stimulus JavaScript framework", | ||
@@ -22,3 +22,3 @@ "main": "dist/index.js", | ||
"clean": "rm -rf ./dist", | ||
"release": "nr clean && nr build && npm publish", | ||
"release": "nr clean && nr build && npm publish", | ||
"postpublish" : "PACKAGE_VERSION=$(cat package.json | grep \\\"version\\\" | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag v$PACKAGE_VERSION && git push --tags" | ||
@@ -25,0 +25,0 @@ }, |
@@ -21,2 +21,3 @@ <h2 align='center'><samp>stimulus-vite-helpers</samp></h2> | ||
[vite_rails]: https://vite-rails.netlify.app | ||
[vite-plugin-stimulus-hmr]: https://github.com/ElMassimo/vite-plugin-stimulus-hmr | ||
@@ -26,2 +27,6 @@ This plugin was extracted out of [Jumpstart Rails with Vite.js][jumpstart], a starter | ||
If you are looking for a simple way to integrate Vite.js in Rails, check out <kbd>[vite_rails]</kbd>. | ||
If you would like to enable HMR for your Stimulus controllers, check out <kbd>[vite-plugin-stimulus-hmr]</kbd>. | ||
## Installation 💿 | ||
@@ -48,4 +53,2 @@ | ||
If you are looking for a simple way to integrate Vite.js in Rails, check out <kbd>[vite_rails]</kbd>. | ||
## Special Thanks | ||
@@ -52,0 +55,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6372
58