@codecademy/macros

3.1.0 • Public • Published

@codecademy/macros

Simple babel utility macros.

Usage

title.macro

This is used to derive the correct story hierarchy from the file path ensuring the file system and storybook hierarchy will be identical.

// stories/Atoms/Button.stories.mdx
import title from '@codecademy/macros/lib/title.macro';

console.log(title); // Atoms/Button

Readme

Keywords

none

Package Sidebar

Install

npm i @codecademy/macros

Weekly Downloads

458

Version

3.1.0

License

MIT

Unpacked Size

2.95 kB

Total Files

4

Last publish

Collaborators

  • codecademy