1.2.1 • Published 11 months ago

@team-octoo/planter v1.2.1

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months 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.1

11 months ago

1.2.0

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.20

1 year ago

1.0.17

1 year ago

1.0.16

2 years ago

1.0.11

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.10

2 years ago

0.0.46

2 years ago

0.0.47

2 years ago

0.0.48

2 years ago

0.0.44

2 years ago

0.0.45

2 years ago

0.0.41

2 years ago

0.0.42

2 years ago

0.0.43

2 years ago

0.0.40

2 years ago

0.0.38

2 years ago

0.0.39

2 years ago

0.0.37

2 years ago

0.0.36

2 years ago

0.0.35

2 years ago

0.0.30

3 years ago

0.0.31

2 years ago

0.0.32

2 years ago

0.0.33

2 years ago

0.0.34

2 years ago

0.0.22

3 years ago

0.0.23

3 years ago

0.0.24

3 years ago

0.0.25

3 years ago

0.0.26

3 years ago

0.0.27

3 years ago

0.0.28

3 years ago

0.0.29

3 years ago

0.0.20

3 years ago

0.0.14

3 years ago

0.0.15

3 years ago

0.0.16

3 years ago

0.0.17

3 years ago

0.0.18

3 years ago

0.0.19

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago