1.5.2 • Published 4 years ago

tover v1.5.2

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

tover

CLI for tover-template: An opinionated but flexible project boilerplate.

Usage

# Install tover globally

% npm i tover -g
# Install tover as a dev dependency of your project

% npm i tover -D

New project

# Create a new ts react project in the current directory

% tover <project name>

# or, if not installed globally

% npx tover <project name>

Tasks

Tover has the following built-in tasks:

  • tover --start
  • tover --build
  • tover --clean
  • tover --lint
  • tover --generate

These tasks are mapped to your package.json scripts when the project is created. You can use the commands directly or as follows.

# Run dev environment

% npm start
# Create a distribution build if linter passed

% npm run build
# Clean node_modules, distribution directory and compiled code

% npm run clean
# Run eslint/prettier

% npm run lint
# Generate an app component, see 'Generate code'

% npm run generate <name> <type>

Generate code

Creating new components can be a tedious task. Therefor a code generation script is included in this boilerplate. Just run the following command:

% npm run generate <name> <type> <options>

Where name is your component name, and type can be "element" (default), "screen" or "template". (See Existing source code)

You can pass --sfc as an option to create a function component instead.

This script will create a component, styles and index file with related types and exports.

% npm run generate Button
# creates an element module called "Button"
% npm run generate Image element --sfc
# creates an element module called "Image" with a "Stateless Functional" React component
% npm run generate Login screen
# creates a screen module called "Login"
% npm run generate NewsFeedItem template
# creates a template module called "NewsFeedItem"

Code templates can be edited in _tools/environment/code-templates.

For more information about the existing template source code and more, see tover-template readme.

1.5.2

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.7

4 years ago

1.4.6

4 years ago

1.4.5

4 years ago

1.4.4

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.11

4 years ago

1.2.10

4 years ago

1.2.9

4 years ago

1.2.8

4 years ago

1.2.7

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.0

4 years ago

1.2.1

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago