Skip to content
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.
/ tooling Public archive

anireact’s monorepo configs and CLI tools

Notifications You must be signed in to change notification settings

anireact-archive/tooling

Repository files navigation

anireact’s monorepo configs and CLI tools

TLDR

  1. Install dependencies.

    yarn add -DW \
        `# Peer dependencies` \
        @commitlint/cli \
        @babel/core \
        @babel/plugin-{proposal-class-properties,syntax-dynamic-import,transform-runtime} \
        @babel/preset-{env,react,typescript} \
        @typescript-eslint/{eslint-plugin,parser} \
        styled-jsx react \
        lerna prettier typescript eslint husky jest \
        babel-eslint eslint-codeframe-formatter babel-jest \
        `# Configs` \
        @anireact/{babel,commitlint,eslint,husky,jest,lerna,prettier,typescript}-config \
        @anireact/babel-preset \
        `# Tools` \
        @anireact/new \
        `# Additional tools for 'new'` \
        dedent enquirer mkdirp

    PowerShell guys suck 🤷‍♀️

  2. Set up package.json (like in this repo).

  3. Create configs (copy from this repo, then tweak).

  4. Run yarn in the repo root.

yarn new

@anireact/new package provides the new command, which allows to create new packages in a repo without a pain.

It may be used without any arguments; in such case it switches to interactive wizard-like interface.

The new.config.js file in this repository provides example configuration with post-creation commands.

License

MIT