create-atomic-install
v1.1.2
Published
Install and configure create-atomic-resources and atomic-bomb with explicit latest package resolution.
Maintainers
Readme
Atomic Install
Install and configure
create-atomic-resources
and atomic-bomb together.
Usage
Run from an application root containing package.json:
npx create-atomic-install@latest ./srcDefaults:
- resource destination:
./src - Atomic Bomb platform:
react-ts-vite - package versions:
@latest
The equivalent default command is:
npx create-atomic-install@latestWhat It Does
Detects npm, Yarn, or pnpm from the project lockfile.
Adds
atomic-bomb@latestandcreate-atomic-resources@latestas development dependencies.Runs exactly:
npx --yes create-atomic-resources@latest ./srcIf
.atomic-bombis missing, runs:printf 'N\n' | npx --yes atomic-bomb@latest --platform react-ts-viteThe installer declines optional AI provider configuration.
If
.atomic-bombexists, runs:npx --yes atomic-bomb@latest --updateAsks whether Storybook should be installed with:
npx sb init --yes --no-devStorybook uses its defaults and exits after initialization without starting the development server.
For web projects, updates
.storybook/preview.ts,.storybook/preview.js,storybook/preview.ts, orstorybook/preview.js, when present, to import the generatedresources/styles/main.cssfrom the configured resource destination.For web projects, enables the Atomic Bomb component Sass imports in
<destination>/resources/styles/main.scss.For Expo or React Native projects, keeps the native token script and wires the generated
useFonthook intoApp.tsxwhen possible.Rewrites the generated resource scripts and
.atomic-bombcomponent destination to use the destination passed to this installer.
The explicit create-atomic-resources@latest package specifier is intentional.
It avoids stale npx resolution and is used on every resource installation.
For local end-to-end testing, override the package specifiers with environment variables:
ATOMIC_BOMB_PACKAGE=/Users/rene/Development/krewinkel/atomic/atomic-bomb \
CREATE_ATOMIC_RESOURCES_PACKAGE=/Users/rene/Development/krewinkel/atomic/create-atomic-resources \
npx create-atomic-install ./srcOptions
--platform <name> Atomic Bomb platform (default: react-ts-vite)
--storybook Install Storybook without prompting
--skip-storybook Do not install Storybook or prompt
--skip-resources Do not run create-atomic-resources
--skip-atomic-bomb Do not install or configure atomic-bomb
--skip-dependencies Do not add the CLI packages to devDependencies
--skip-update Do not refresh Atomic Bomb skills when configured
-h, --help Show helpExamples:
npx create-atomic-install@latest ./src --platform react-ts-vite
npx create-atomic-install@latest ./src --storybook
npx create-atomic-install@latest ./app --skip-atomic-bomb
npx create-atomic-install@latest --skip-resourcesAtomic Bomb platform setup is non-interactive and leaves the optional AI provider disabled.
