Template Resources for the Atomic Bomb package.
Contributors needed for adding more platform specific templates
to atomic-bomb
.
.
├── react
│ ├── [NAME].js
│ ├── [NAME].stories.js
│ ├── [NAME].test.js
│ ├── _[NAME].style.scss
│ ├── _index.scss
│ └── index.js
└── react.json
Each template consist of a directory and a JSON file
with the same name. Contents of that JSON file is (for now)
the location the Atomic dirs need to be deployed, for example
the react.json
now only holds (possible future enhancement):
{
"search": "react",
"platform": "react",
"destination": "src/components",
"scss": true
}
Where:
search
: item inpackage.json/dependencies
to look forplatform
: which platform you are running (determines thetemplate dir
)destination
: directory where to put the components (configurable in downloaded/create$PROJECT_ROOT/.atomic-bomb
)scss
: boolean, werther or not adding scss to atomic dirs
- react:
atomic-bomb --platform react --type atom --name Label
- react-native:
atomic-bomb --platform react-native --type atom --name Label
- react TypeScript:
atomic-bomb --platform react-ts --type atom --name Label