2.1.2 • Published 11 months ago

create-atomic-resources v2.1.2

Weekly downloads
-
License
GPL-1.0-only
Repository
github
Last release
11 months ago

IMPORTANT This tool is for educational purposes only

With npx

# npx create-atomic-resources <destination dir>
npx create-atomic-resources ./src

Manually

Clone repo with degit

degit https://github.com/ReneKrewinkel/create-atomic-resources.git <destination dir>

Setup

  1. Add to .storybook/preview.js:
import "../<destination dir>/resources/styles/main.css"
  1. Install json-to-scss:
npm i json-to-scss
  1. add a script to package.json:
{
  "scripts": {
    "token": "json-to-scss <destination dir>/resources/design/tokens.json <destination dir>/resources/styles/tokens/_tokens.scss"
  }
}
  1. Uncomment when using atomic-bomb <destination dir>/resources/styles/main.scss:
/* Uncomment when using atomic-bomb */
// @import '../../components/atoms';
// @import '../../components/molecules';
// @import '../../components/organisms';
// @import '../../components/templates';
// @import '../../components/pages';
2.1.2

11 months ago

2.1.1

12 months ago

2.1.0

12 months ago

2.0.0

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

0.0.2

1 year ago