1.0.4 • Published 5 years ago

@starbird/template v1.0.4

Weekly downloads
4
License
UNLICENSED
Repository
-
Last release
5 years ago

Welcome to your |-module-| module

A MYOB Starbird powered module.

npm install -g @starbird/cli

Starbird Documentation

Usage

This module is React based and contains a ready to use test pipeline build on top of Jest and Storybook as a convenient component sandbox.

  • starbird start -> Runs the project in watch mode for development running with the node server for STS authentication
  • starbird build -> Builds the project for deployment
  • starbird test -> Runs the project's tests
  • starbird coverage -> Runs the project's tests and write a code coverage report
  • starbird lint -> Runs the linter on the code to detect issues with code style
  • starbird deploy -> Deploys the project on a server
  • starbird storybook -> Runs the project 'stories' you might have created
  • starbird update -> Update the Starbird SDK and tooling
  • starbird feedback -> Opens a feedback form with the default browser
  • starbird issues -> Opens the github starbird issues page

Integrated development with Shell NOVA

You can either run the project in watch mode for local development using starbird start or implement an integrated version of your module with the Shell nova.

Configuration

Several configuration files are available:

  • src/config.json provides an opportunity to set and inject any custom settings you might need to run your deployed module
  • src/local.json local settings and mocks global variables that are available in the deployed app running the Shell (Practice Online app)

Testing

A pipeline to run tests built on top of Jest is available. By default starbird test will run the tests it finds inside your src folder and keeps watching for any new tests added or tested updated and run those. It is then possible to always have a terminal open with Jest watching your tests and another terminal to run your module locally.

Note: If you want to turn on coverage for your tests, define thresholds or further configure Jest, you can edit your package.json file by using the information found on this page. For convenience this project has a Jest setup file pre-filled that you can further modify and fins in src/jest.setup.js.

Documentation and support

Recommendations

Working on a Linux or MacOS machine offer the best experience as they have unix-type shells.
If you use Windows, we recommend you use Windows 10 and install and use a bash environment. Windows has now the ability to run Linux distributions inside of Windows and you can take advantage of this.
Microsoft officially supports a Windows Subsystem for Linux in Windows 10. Read more about it here.

The boilerplate comes with ESlint, Prettier and Babel support. To make the best use of those and/or setup an environment for the free Visual Studio Code editor, you can follow the information and instructions in this web page.

By default the code style, structure and common bugs squashing are enforced by eslint using the strict AirBnb rules and prettier. You can learn more about AirBnb by reading their Javascript and React guides here

Mentions

This boilerplate project, its sandbox environment and SDK is brought to you by the Rogue Squadron team at MYOB.

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

0.8.9

5 years ago

0.8.8-rc1

5 years ago

0.8.8

5 years ago

0.8.7

5 years ago

0.8.6

5 years ago

0.8.5

5 years ago

0.8.4

5 years ago

0.8.3

5 years ago

0.8.2

5 years ago

0.8.1

5 years ago

0.8.0

5 years ago

0.7.7

5 years ago

0.7.6

5 years ago

0.7.5

5 years ago

0.7.4

5 years ago

0.7.4-rc.2

5 years ago

0.7.4-rc.1

5 years ago

0.7.3

5 years ago

0.7.2

5 years ago

0.7.1

5 years ago

0.7.0

5 years ago

0.6.0

6 years ago

0.5.0

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.11-rc6

6 years ago

0.3.11-rc5

6 years ago

0.3.11-rc4

6 years ago

0.3.11-rc2

6 years ago

0.3.11-rc1

6 years ago

0.3.11

6 years ago

0.3.10

6 years ago

0.3.9

6 years ago

0.3.8

6 years ago

0.3.7

6 years ago

0.3.6

6 years ago

0.3.5

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.15

6 years ago

0.2.14

6 years ago

0.2.13

6 years ago

0.2.12

6 years ago

0.2.11

6 years ago

0.2.10

6 years ago

0.2.9

6 years ago

0.2.8

6 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.21

7 years ago

0.1.20

7 years ago

0.1.19

7 years ago

0.1.18

7 years ago

0.1.17

7 years ago

0.1.16

7 years ago

0.1.15

7 years ago

0.1.14

7 years ago

0.1.13

7 years ago

0.1.12

7 years ago

0.1.11

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago