0.1.6 • Published 14 days ago
stimulus-parser v0.1.6
Installation
To add stimulus-parser
to your project, run the following command in your terminal:
yarn add stimulus-parser
Usage
import { Project } from "stimulus-parser"
const project = new Project("/Users/user/path/to/project")
const controllers = project.controllerDefinitions
const controller = controllers[0]
console.log(controller.actionNames)
// => ["connect", "click", "disconnect"]
console.log(controller.targetNames)
// => ["name", "output"]
console.log(controller.classNames)
// => ["loading"]
console.log(controller.values)
// => [{ url: { type: "String", default: "" } }]
Playground
You can inspect parse results on the hosted playground at https://stimulus-parser.hotwire.io.
Development
To run the tests:
yarn install
yarn build
yarn test
0.1.6
14 days ago
0.1.5
14 days ago
0.1.4
28 days ago
0.1.2
2 months ago
0.1.3
2 months ago
0.1.0
2 months ago
0.1.1
2 months ago
0.0.10
7 months ago
0.0.11
7 months ago
0.0.12
6 months ago
0.0.13
5 months ago
0.0.14
5 months ago
0.0.9
7 months ago
0.0.8
7 months ago
0.0.7
8 months ago
0.0.6
8 months ago
0.0.5
8 months ago
0.0.4
8 months ago
0.0.3
8 months ago
0.0.2
8 months ago
0.0.1
8 months ago