1.2.0 • Published 9 days ago

@team-octoo/planter v1.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
9 days ago

Planter

A CLI tool for building React & React-native applications.

Maintenance PRs Welcome

This CLI

  • installs a new react or react-native project
  • sets up a basic folder structure (of your choice)
  • add commonly used packages
  • give command to easely create state, components & other functions
  • writes documentation for proposed structures & packages

Installation

npm install -g @team-octoo/planter

Usage

After installing this package globally, there are 2 important commands.
(but there are much more, run planter -h to see all)

planter init
This command creates a React or React-Native project.
React uses the latest Vite react-ts template.
React-Native is the latest RN template without expo.

planter install
This command will read the planter config json file in the directory and install everything accordingly.

Help

Run command "planter -h" in your command-line terminal.

Contributors

This package has been created by the lovely people at Octoo

Found a bug or want to extend this package?

  • Create an issue on Github
  • Or even better, change the code and submit a pull request and we'll have a look asap.

Available choices & packages

When initialising planter on a new or existing project, these are the choices to be made.

Component structure

  • BEP (Basics, Elements, Pages)
  • Atomic components
  • Custom (Define your own folder structure in planter.config.json)

Lay-out

  • css
  • css-modules
  • scss
  • scss-modules
  • styled-components
  • custom (self install)

Packages

  • Error-boundary
  • Mock service worker
  • React-router
  • Wouter
  • Patch-package
  • Redux
  • Zustand
  • i18next
  • Axios
  • Cypress
  • Prop-types

Config

Planter cli has a config file named ./planter.config.json.
We recommend starting from an existing planter config file to customise it.

KeyDescriptionType
versionVersion of the planter clinumber
nameName of the applicationstring
libraryType of react library'react' \| 'react-native'
installernpm or yarn'npm' \| 'yarn'
hasTsWether or not typescript is usedboolean
layoutType of stylesheets'css' \| 'css modules' \| 'sass' \| 'sass modules'
packagesInstalled packages (asked on init)string[]
componentsDefines options for plant:component command (subfolders are possible)object
structureType of component structure'BEP (recommended)' \| 'Atomic' \| 'Custom'
usePropTypesOlder way of using prop types without typescriptboolean
1.2.0

9 days ago

1.1.9

1 month ago

1.1.8

2 months ago

1.1.7

2 months ago

1.1.6

2 months ago

1.1.5

3 months ago

1.1.4

3 months ago

1.1.3

3 months ago

1.1.2

3 months ago

1.1.1

3 months ago

1.1.0

3 months ago

1.0.19

3 months ago

1.0.18

3 months ago

1.0.20

3 months ago

1.0.17

4 months ago

1.0.16

5 months ago

1.0.11

6 months ago

1.0.15

6 months ago

1.0.14

6 months ago

1.0.13

6 months ago

1.0.12

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago

1.0.9

6 months ago

1.0.8

6 months ago

1.0.7

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.10

6 months ago

0.0.46

11 months ago

0.0.47

11 months ago

0.0.48

11 months ago

0.0.44

12 months ago

0.0.45

12 months ago

0.0.41

1 year ago

0.0.42

1 year ago

0.0.43

1 year ago

0.0.40

1 year ago

0.0.38

1 year ago

0.0.39

1 year ago

0.0.37

1 year ago

0.0.36

1 year ago

0.0.35

1 year ago

0.0.30

1 year ago

0.0.31

1 year ago

0.0.32

1 year ago

0.0.33

1 year ago

0.0.34

1 year ago

0.0.22

2 years ago

0.0.23

2 years ago

0.0.24

2 years ago

0.0.25

2 years ago

0.0.26

2 years ago

0.0.27

2 years ago

0.0.28

2 years ago

0.0.29

1 year ago

0.0.20

2 years ago

0.0.14

2 years ago

0.0.15

2 years ago

0.0.16

2 years ago

0.0.17

2 years ago

0.0.18

2 years ago

0.0.19

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago