0.2.2 • Published 4 months ago

stimulus-parser v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

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

4 months ago

0.2.0

6 months ago

0.2.2

4 months ago

0.1.6

7 months ago

0.1.5

7 months ago

0.1.4

7 months ago

0.1.2

9 months ago

0.1.3

9 months ago

0.1.0

9 months ago

0.1.1

9 months ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.12

12 months ago

0.0.13

12 months ago

0.0.14

12 months 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