Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stimulus-vite-helpers

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stimulus-vite-helpers - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

7

CHANGELOG.md
[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

2

dist/index.js
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc