0.2.2 • Published 5 months ago
stimulus-parser v0.2.2
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.2.1
5 months ago
0.2.0
7 months ago
0.2.2
5 months ago
0.1.6
8 months ago
0.1.5
8 months ago
0.1.4
9 months ago
0.1.2
10 months ago
0.1.3
10 months ago
0.1.0
10 months ago
0.1.1
10 months ago
0.0.10
1 year ago
0.0.11
1 year ago
0.0.12
1 year ago
0.0.13
1 year ago
0.0.14
1 year ago
0.0.9
1 year ago
0.0.8
1 year ago
0.0.7
1 year ago
0.0.6
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago