1.3.1 • Published 5 years ago

@test-release/create-react-app v1.3.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

@test-release/create-react-app

A micro generator for generating minimal create-react-app configuration.

CLI

I highly recommend using npx so that you don't have to install anything globally, and you can always get the latest version from npm.

  • optional --path=target_folder
npx @test-release/create-react-app

Programmatically

You have to generate JSON schema and use execute function from @test-release/core:

// src/index.ts
import { execute, getProjectFolder, askProjectName } from '@test-release/core'
import { askYesNo } from '@test-release/core'
import { createSchema } from '@test-release/create-react-app'

export const askIsRouter = () => askYesNo('Do you want to use React Router?')

const generate = async () => {
  const { projectFolder } = await askProjectName()
  const isRouter = await askIsRouter()

  const schema = createSchema({ isRouter, projectFolder })
  await execute(schema, projectFolder)
}

generate()

Now all you have to do is run:

ts-node src/index.ts
1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago