0.2.2 • Published 7 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
7 months ago
0.2.0
9 months ago
0.2.2
7 months ago
0.1.6
10 months ago
0.1.5
10 months ago
0.1.4
11 months ago
0.1.2
12 months ago
0.1.3
12 months ago
0.1.0
12 months ago
0.1.1
12 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