11.18.0 • Published 3 years ago

@energyaspects/deer-park v11.18.0

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

Deer Park - EA React component library

Production usage

Deer park is deployed to NPM as a private package scoped to the @eneryaspects organisation.

To be able to install this project as a npm dependency you will need to setup a npm account that has been given access to read from the @energyaspects organisation.

  • Run npm login.
  • Enter your npm username, password and email address as prompted.
  • To install this project as a dependency type npm install --save @energyaspects/deer-park

Development setup

1. Ensure you're on Node LTS/Erbium aka. v12

Deer Park is set up to run with the latest Node LTS version which is LTS/Erbium aka. v12.

2. Log in to NPM Enterprise

You will need to connect to the Energy Aspects NPM organisation for NPM to resolve @energyaspects/... modules.

Request an enterprise NPM account from the team lead, then do npm login to log in.

Then you will be able to run npm install and resolve @energyaspects/... modules.

3. Ignore non-code folders in your IDE

The /dist and /legacy folders are not for active development, however your IDE will treat these folders as source folders by default. Mark these folders are non-source/excluded folders to prevent them being indexed in searches or watches.

Development alongside other local applications

You can use npm link to make local changes deer-park without having to publish a new version to npm.

In your terminal:

  • Checkout the source code git clone git@github.com:energyaspects/deer-park.git
  • Run npm start and wait for successful compilation. This will also start webpack in watch mode.
  • In a seperate terminal window while in the root of the deer-park project run npm run setup-link.
  • Navigate to the root of the project that will have or has deer-park as a dependency.
  • Type npm link @energyaspects/deer-park

Changes made to deer-park components will now persist into the application consuming deer-park. While npm start is running you can also run these commands at the same time to assist with development.

  • npm run storybook - Runs storybook on a seperate port.
  • npm test:watch - Runs Jest in watch mode.

Publishing to npm

You will need an npm account that has write access to the @energyaspects organisation on npm.

Things to note:

  • Always publish from master.
  • Always change the version number in your PR before merging into master.

Steps to publish:

  • Ensure you are on the master branch.
  • Ensure the version number in the package.json is appropriate and has been updated (attempting to publish a with an existing version number will fail).
  • Login to npm with your account as described above.
  • Run npm build
  • Run npm run build-and-publish

A new version of deer-park will now be able to install as a private npm dependency.

11.18.0

3 years ago

11.17.0

3 years ago

11.16.0

3 years ago

11.14.0

4 years ago

11.13.10

4 years ago

11.13.9

4 years ago

11.13.8

4 years ago

11.13.7

4 years ago

11.13.6

4 years ago

11.13.5

4 years ago

11.13.4

4 years ago

11.13.3

4 years ago

11.13.2

4 years ago

11.13.1

4 years ago

11.13.0

4 years ago

11.12.1

4 years ago

11.12.0

4 years ago

11.11.0

4 years ago

11.10.0

4 years ago

11.9.1

4 years ago

11.9.0

4 years ago

11.8.0

4 years ago

11.7.0

4 years ago

11.6.0

4 years ago

11.5.0

4 years ago

11.4.0

4 years ago

11.3.0

4 years ago

11.2.0

4 years ago

11.1.0

4 years ago

11.0.0

4 years ago

10.2.1

4 years ago

10.2.0

4 years ago

10.1.0

4 years ago

9.0.0

4 years ago

10.0.0

4 years ago

8.2.1

5 years ago

8.2.0

5 years ago

8.1.0

5 years ago

8.0.0

5 years ago

7.13.0

5 years ago

7.12.0

5 years ago

7.11.0

5 years ago

7.10.0

5 years ago

7.9.0

5 years ago

7.8.0

5 years ago

7.7.0

5 years ago

7.6.0

5 years ago

7.5.0

5 years ago

7.4.0

5 years ago

7.3.0

5 years ago

7.2.1

5 years ago

7.2.0

5 years ago

7.1.0

5 years ago

6.0.0

5 years ago

5.6.0

5 years ago

5.5.0

5 years ago

5.4.0

5 years ago

5.3.0

5 years ago

5.2.0

5 years ago

5.1.0

5 years ago

5.0.1

5 years ago

5.0.0

5 years ago

4.2.0

5 years ago

4.1.0

5 years ago

4.0.0

5 years ago

3.3.0

5 years ago

3.2.1

5 years ago

3.2.0

5 years ago

3.1.3

5 years ago

3.1.2

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.7.1

5 years ago

1.7.0

5 years ago

1.6.1

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago