5.2.0 • Published 1 day ago

studiokit-scaffolding-js v5.2.0

Weekly downloads
1,162
License
MIT
Repository
gitlab
Last release
1 day ago

studiokit-scaffolding-js

studiokit-scaffolding-js provides a common scaffolding for react apps.

  1. Installation
  2. Usage
  3. Development

Installation

Install this library and call startup methods

  1. yarn add studiokit-scaffolding-js
  2. (Optional) Call configurable extensions in your main entry file
    • redux/sagas/rootSaga * setOtherDependentSagas to add more sagas
    • redux/sagas/postLoginDataSaga * setOnPostLogin to load more data after login
    • redux/configureReducers * updatePersistBlacklist and setOtherReducers to add more reducers
  3. In your main entry file call startup

    import { startup, endpointMappings } from 'studiokit-scaffolding-js'
    
    const containerElementId = 'root'
    const appConfig = {/* AppConfiguration */}
    const endpointMappings = {...endpointMappings, .../* App EndpointMappings */}
    const { history, store, persistor } = startup(appConfig, endpointMappings, containerElementId)
    
    // render using history, store, persistor
    ReactDOM.render(
    	...
    )

Usage

Components and utils can be imported from studiokit-scaffolding-js/lib/...

Development

Inside of Scaffolding

  1. Create a feature branch off of develop
  2. Add new components or utils
  3. Add unit tests for those components or utils to confirm basic functionality

Integration in a Local Project

Normally, we would use yarn link to connect a library branch to a project locally, but there are currently limitations with typescript @types where duplicate versions of the types are referenced. Here are some workarounds.

Manual Workaround

  1. Run yarn build to build your changes to scaffolding
  2. Manually copy the lib output folder to _project_/node_modules/studiokit-scaffolding-js/lib to test those changes in your app

Git Built Branch Workaround

This workaround requires a temporary branch where the built lib folder is committed.

  1. From your current feature branch, make a new branch called e.g. feature/my-feature-built, with the -built suffix and switch to it.
  2. yarn build
  3. git add lib -f
  4. git commit -am 'add lib' --no-verify
  5. git push --set-upstream origin feature/my-feature-built --no-verify, using your built branch name
  6. In your project, update package.json with "studiokit-scaffolding-js": "https://gitlab.com/purdue-informatics/studiokit/studiokit-scaffolding-js.git#commit_hash", where commit_hash is the git commit hash of the most recent commit on the current branch and commit & push that change.
  7. yarn install (also in your project)

To make more changes to the built branch:

  1. Make changes to your normal feature branch
  2. Merge changes into the built branch
  3. yarn build
  4. git commit -am 'update lib' --no-verify
  5. git push --no-verify
  6. In your project, update package.json with "studiokit-scaffolding-js": "https://gitlab.com/purdue-informatics/studiokit/studiokit-scaffolding-js.git#commit_hash", where commit_hash is the git commit hash of the most recent commit on the current branch and commit & push that change.
  7. yarn install (also in your project)

After finishing your feature branch, don’t forget to delete the temporary built branch.

5.2.0

2 days ago

5.1.6-next.1.18

3 days ago

5.1.6-next.1.19

2 days ago

5.1.6-next.1.20

2 days ago

5.1.6-next.1.17

6 days ago

5.1.6-next.1.16

6 days ago

5.1.5-next.5.14

8 days ago

5.1.6-next.1.14

8 days ago

5.1.6-next.1.15

7 days ago

5.1.6

9 days ago

5.1.5-next.5.13

12 days ago

5.1.5-next.5.12

12 days ago

5.1.5-next.5.10

13 days ago

5.1.5-next.5.11

13 days ago

5.1.5-next.5.9

15 days ago

5.1.5-next.5.7

19 days ago

5.1.5-next.5.8

16 days ago

5.1.5-next.2.1

21 days ago

5.1.5-next.5.4

21 days ago

5.1.5-next.5.5

20 days ago

5.1.5-next.5.6

20 days ago

5.1.5-next.6.1

21 days ago

5.1.5-next.5.3

27 days ago

5.1.5-next.5.2

27 days ago

5.1.5

1 month ago

5.1.5-alpha.1

1 month ago

5.1.4

2 months ago

5.1.3-next.1.3

2 months ago

5.1.3-next.1.4

2 months ago

5.1.3-next.1.2

2 months ago

5.1.3-next.1.1

2 months ago

5.1.3

3 months ago

5.1.2-next.1.2

3 months ago

5.1.2-next.1.1

3 months ago

5.1.2

3 months ago

5.1.1

3 months ago

5.1.0-next.2.4

3 months ago

5.1.0-next.2.5

3 months ago

5.1.0-next.2.6

3 months ago

5.1.0-next.2.7

3 months ago

5.1.0-next.2.1

3 months ago

5.1.0-next.2.2

3 months ago

5.1.0-next.2.3

3 months ago

5.1.0-next.1.1

3 months ago

5.1.0-next.1.2

3 months ago

5.1.0

3 months ago

5.0.0-next.2.13

3 months ago

5.0.0-next.2.12

3 months ago

5.0.0-next.2.11

3 months ago

5.0.0-next.2.10

3 months ago

5.0.0-next.2.8

3 months ago

5.0.0-next.2.7

3 months ago

5.0.0-next.2.9

3 months ago

5.0.0-next.2.4

3 months ago

5.0.0-next.2.3

3 months ago

5.0.0-next.2.6

3 months ago

5.0.0-next.2.5

3 months ago

5.0.0-next.2.2

4 months ago

5.0.0-next.2.1

4 months ago

5.0.0-next.1.1

4 months ago

5.0.0-next.1.2

4 months ago

5.0.0

6 months ago

4.12.0-next.1.1

6 months ago

4.12.0-next.1.2

6 months ago

4.11.4-next.2.1

6 months ago

4.12.0

6 months ago

4.12.1

6 months ago

4.12.1-next.1.1

6 months ago

4.12.1-next.1.2

6 months ago

4.11.4-next.1.1

6 months ago

4.12.1-alpha.2

6 months ago

4.12.1-alpha.1

6 months ago

4.11.4

7 months ago

4.11.4-alpha.1

7 months ago

4.10.1-next.1.1

11 months ago

4.10.1-alpha.1

11 months ago

4.10.1-alpha.2

11 months ago

4.11.1-alpha.1

9 months ago

4.11.2-alpha.1.1

8 months ago

4.10.1

11 months ago

4.10.0-next.1.1

11 months ago

4.11.2-alpha.2

8 months ago

4.11.2-alpha.1

8 months ago

4.11.2-alpha.3

8 months ago

4.11.0

11 months ago

4.11.1

9 months ago

4.11.2

8 months ago

4.11.3

8 months ago

4.11.3-alpha.1

8 months ago

4.9.0

1 year ago

4.8.0

1 year ago

4.9.0-next.2.1

1 year ago

4.7.1

1 year ago

4.9.0-next.1.1

1 year ago

4.9.0-next.1.2

1 year ago

4.9.0-next.1.3

1 year ago

4.9.0-next.1.4

1 year ago

4.9.0-alpha.1

1 year ago

4.9.0-alpha.2

1 year ago

4.8.0-next.1.1

1 year ago

4.8.0-next.1.2

1 year ago

4.8.0-next.1.5

1 year ago

4.8.0-next.1.3

1 year ago

4.8.0-next.1.4

1 year ago

4.8.0-next.2.1

1 year ago

4.10.0

1 year ago

4.8.0-next.3.3

1 year ago

4.8.0-next.3.1

1 year ago

4.8.0-next.3.2

1 year ago

4.7.1-alpha.2

1 year ago

4.7.1-alpha.1

1 year ago

4.7.1-alpha.4

1 year ago

4.7.1-alpha.3

1 year ago

4.7.1-alpha.6

1 year ago

4.7.1-alpha.5

1 year ago

4.7.1-next.1.1

1 year ago

4.7.1-next.1.2

1 year ago

4.5.12-next.2.3

1 year ago

4.5.12-next.2.2

1 year ago

4.5.12-next.2.1

1 year ago

4.7.0

1 year ago

4.6.0

1 year ago

4.5.12-next.3.9

1 year ago

4.5.12-next.3.6

1 year ago

4.5.12-next.3.5

1 year ago

4.5.12-next.3.8

1 year ago

4.5.12-next.3.7

1 year ago

4.5.12-next.3.2

1 year ago

4.5.12-next.3.1

1 year ago

4.5.12-next.3.4

1 year ago

4.5.12-next.3.3

1 year ago

4.6.0-next.1.6

1 year ago

4.6.0-next.1.5

1 year ago

4.6.0-next.1.2

1 year ago

4.6.0-next.1.1

1 year ago

4.6.0-next.1.4

1 year ago

4.6.0-next.1.3

1 year ago

4.5.12-alpha.1

2 years ago

4.5.12-alpha.2

2 years ago

4.5.12-alpha.3

2 years ago

4.5.12-alpha.4

2 years ago

4.5.12-next.1.1

2 years ago

4.5.8-next.1.1

2 years ago

4.5.8-alpha.1

2 years ago

4.3.20-next.3.2

2 years ago

4.3.20-next.3.1

2 years ago

4.5.8

2 years ago

4.5.7

2 years ago

4.5.9

2 years ago

4.5.7-alpha.1

2 years ago

4.5.11-alpha.1

2 years ago

4.5.10

2 years ago

4.5.11

2 years ago

4.5.12

2 years ago

4.5.10-alpha.7

2 years ago

4.5.10-alpha.4

2 years ago

4.5.10-alpha.3

2 years ago

4.5.10-alpha.6

2 years ago

4.5.10-alpha.5

2 years ago

4.5.10-alpha.2

2 years ago

4.5.10-alpha.1

2 years ago

4.5.9-alpha.2

2 years ago

4.5.9-alpha.1

2 years ago

4.3.22

2 years ago

4.3.21

2 years ago

4.5.6

2 years ago

4.5.3-next.2.2

2 years ago

4.5.3-next.2.3

2 years ago

4.5.3-next.2.1

2 years ago

4.5.3-next.1.1

2 years ago

4.5.3-next.1.2

2 years ago

4.5.2-next.3.4

2 years ago

4.5.2-next.3.5

2 years ago

4.5.2-next.3.1

2 years ago

4.5.2-next.3.2

2 years ago

4.5.2-next.3.3

2 years ago

4.5.4

2 years ago

4.5.3

2 years ago

4.5.5

2 years ago

4.5.2-next.1.1

2 years ago

4.5.2-next.1.2

2 years ago

4.5.2-next.2.1

2 years ago

4.5.6-alpha.2

2 years ago

4.5.6-alpha.3

2 years ago

4.5.6-alpha.4

2 years ago

4.3.19-next.1.8

2 years ago

4.3.19-next.1.1

2 years ago

4.3.19-next.1.3

2 years ago

4.3.19-next.1.2

2 years ago

4.3.19-next.1.5

2 years ago

4.3.19-next.1.4

2 years ago

4.3.19-next.1.7

2 years ago

4.3.19-next.1.6

2 years ago

4.5.1-next.1.5

2 years ago

4.5.1-next.1.2

2 years ago

4.5.1-next.1.1

2 years ago

4.5.1-next.1.4

2 years ago

4.5.1-next.1.3

2 years ago

4.5.0

2 years ago

4.5.2

2 years ago

4.5.1

2 years ago

4.4.0

2 years ago

4.3.20-next.1.1

2 years ago

4.4.0-next.1.1

2 years ago

4.3.20-next.1.4

2 years ago

4.3.20-next.1.2

2 years ago

4.3.20-next.1.3

2 years ago

4.3.20-next.2.3

2 years ago

4.3.20-next.2.4

2 years ago

4.3.20-next.2.1

2 years ago

4.3.20-next.2.2

2 years ago

4.3.20-next.2.5

2 years ago

4.3.19

2 years ago

4.5.0-next.1.3

2 years ago

4.5.0-next.1.2

2 years ago

4.5.0-next.1.1

2 years ago

4.3.20

2 years ago

4.3.17-next.1

2 years ago

4.3.17

2 years ago

4.3.18

2 years ago

4.3.16-next.2

2 years ago

4.3.16-next.1

2 years ago

4.3.15-next.1

2 years ago

4.3.16

2 years ago

4.3.14-next.1.1

3 years ago

4.3.14-next.1.2

3 years ago

4.3.14-next.1.3

3 years ago

4.3.14-next.1.4

3 years ago

4.3.15

3 years ago

4.3.14

3 years ago

4.3.13-next-1.1

3 years ago

4.3.13

3 years ago

4.3.12-alpha.3

3 years ago

4.3.12-alpha.2

3 years ago

4.3.12-alpha.1

3 years ago

4.3.12

3 years ago

4.3.11-next.1.1

3 years ago

4.3.11-next.2.1

3 years ago

4.3.10-alpha.1

3 years ago

4.3.11

3 years ago

4.3.10

3 years ago

4.3.9-next.1.4

3 years ago

4.3.9-next.1.5

3 years ago

4.3.9-next.1.3

3 years ago

4.3.9-next.1.2

3 years ago

4.3.9-next.1.1

3 years ago

4.3.8-next.1

3 years ago

4.3.8-next.1.2

3 years ago

4.3.8-next.1.1

3 years ago

4.3.9

3 years ago

4.3.8-alpha.3

3 years ago

4.3.8-alpha.2

3 years ago

4.3.8

3 years ago

4.3.8-alpha.1

3 years ago

4.3.7

3 years ago

4.3.6-next.1.1

3 years ago

4.3.5-next.1.3

3 years ago

4.3.5-next.1.2

3 years ago

4.3.5-next.1.1

3 years ago

4.3.5-next.2.3

3 years ago

4.3.5-next.2.2

3 years ago

4.3.5-next.2.1

3 years ago

4.3.6

3 years ago

4.3.4-next.1.3

3 years ago

4.3.5

3 years ago

4.3.4

3 years ago

4.3.4-next.1.1

3 years ago

4.3.4-next.1.2

3 years ago

4.3.3-next.2.1

3 years ago

4.3.3-next.3.1

3 years ago

4.3.3-next.3.2

3 years ago

4.3.3

3 years ago

4.3.3-next.1.1

3 years ago

4.3.3-alpha.1

3 years ago

4.3.2

3 years ago

4.3.1-next.1.3

3 years ago

4.3.1-next.1.2

3 years ago

4.3.1-next.1.1

3 years ago

4.3.0

3 years ago

4.2.2-next.2.2

3 years ago

4.2.2-next.1.11

3 years ago

4.2.2-next.1.10

3 years ago

4.2.2-next.1.13

3 years ago

4.2.2-next.1.12

3 years ago

4.2.2-next.1.15

3 years ago

4.2.2-next.1.14

3 years ago

4.2.2-next.1.16

3 years ago

4.2.2-next.1.2

3 years ago

4.2.2-next.1.1

3 years ago

4.2.2-next.1.4

3 years ago

4.2.2-next.1.3

3 years ago

4.2.2-next.1.6

3 years ago

4.2.2-next.1.5

3 years ago

4.2.2-next.1.8

3 years ago

4.2.2-next.1.7

3 years ago

4.2.2-next.1.9

3 years ago

4.2.2-next.2.1

3 years ago

4.2.2-alpha.5

3 years ago

4.2.2

3 years ago

4.2.2-alpha.2

3 years ago

4.2.2-alpha.3

3 years ago

4.2.2-alpha.4

3 years ago

4.2.1-alpha.7

3 years ago

4.1.3-alpha.1

3 years ago

4.1.3-alpha.2

3 years ago

4.2.1

3 years ago

4.1.3

3 years ago

4.2.2-alpha.1

3 years ago

4.2.1-alpha.5

3 years ago

4.2.1-alpha.6

3 years ago

4.2.1-alpha.1

3 years ago

4.2.1-alpha.2

3 years ago

4.2.1-alpha.3

3 years ago

4.2.1-alpha.4

3 years ago

4.2.0

3 years ago

4.2.0-alpha.2

3 years ago

4.1.2-alpha.7

3 years ago

4.1.2-alpha.6

3 years ago

4.1.2-alpha.8

3 years ago

4.1.2

3 years ago

4.1.2-alpha.5

3 years ago

4.1.2-alpha.4

3 years ago

4.1.2-alpha.1

3 years ago

4.1.2-alpha.3

3 years ago

4.1.1

3 years ago

4.1.1-alpha.4

3 years ago

4.1.1-alpha.2

3 years ago

4.1.1-alpha.1

3 years ago

4.1.1-alpha.3

3 years ago

4.2.0-alpha.1

3 years ago

4.1.0

3 years ago

4.0.5

3 years ago

4.0.5-alpha.1

3 years ago

4.0.5-alpha.2

3 years ago

4.0.5-alpha.3

3 years ago

4.1.0-alpha.4

3 years ago

4.1.0-alpha.3

3 years ago

4.1.0-alpha.2

3 years ago

4.0.4-alpha.1

3 years ago

4.0.4-alpha.2

3 years ago

4.0.4-alpha.3

3 years ago

4.0.4

3 years ago

4.1.0-alpha.1

3 years ago

4.0.3

3 years ago

4.0.3-alpha.2

3 years ago

4.0.3-alpha.1

3 years ago

4.0.2

3 years ago

4.0.2-alpha.1

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

4.0.0-alpha.6

3 years ago

4.0.0-alpha.5

3 years ago

4.0.0-alpha.4

3 years ago

4.0.0-alpha.3

3 years ago

4.0.0-alpha.2

3 years ago

4.0.0-alpha.1

3 years ago

3.6.3

3 years ago

3.6.3-alpha.4

3 years ago

3.6.3-alpha.3

3 years ago

3.6.3-alpha.2

3 years ago

3.6.3-alpha.1

3 years ago

3.6.2

3 years ago

3.6.2-alpha.1

3 years ago

3.6.1

3 years ago

3.6.1-alpha.2

3 years ago

3.6.1-alpha.1

3 years ago

3.6.0

3 years ago

3.6.0-alpha.5

3 years ago

3.6.0-alpha.4

3 years ago

3.6.0-alpha.6

3 years ago

3.6.0-alpha.1

3 years ago

3.6.0-alpha.3

3 years ago

3.6.0-alpha.2

3 years ago

3.5.0

3 years ago

3.5.0-alpha.6

3 years ago

3.5.0-alpha.5

3 years ago

3.5.0-alpha.4

3 years ago

3.5.0-alpha.3

3 years ago

3.5.0-alpha.1

3 years ago

3.5.0-alpha.2

3 years ago

3.4.4

3 years ago

3.4.4-alpha.3

4 years ago

3.4.4-alpha.2

4 years ago

3.4.4-alpha.5

4 years ago

3.4.4-alpha.4

4 years ago

3.4.4-alpha.7

4 years ago

3.4.4-alpha.6

4 years ago

3.4.3

4 years ago

3.4.2

4 years ago

3.3.6

4 years ago

3.4.1

4 years ago

3.4.0

4 years ago

3.3.5

4 years ago

3.3.4

4 years ago

3.3.3

4 years ago

3.3.2

4 years ago

3.2.4

4 years ago

3.3.1

4 years ago

3.3.0

4 years ago

3.2.3

4 years ago

3.2.2

4 years ago

3.2.1

4 years ago

3.2.0

4 years ago

3.1.14

4 years ago

3.1.13

4 years ago

3.1.12

4 years ago

3.1.11

4 years ago

3.1.10

4 years ago

3.1.9

4 years ago

3.1.8

4 years ago

3.1.7

4 years ago

3.1.6

4 years ago

3.1.5

4 years ago

3.1.3

4 years ago

3.1.4

4 years ago

3.1.2

4 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.7

4 years ago

3.0.6

4 years ago

3.0.5

4 years ago

3.0.4

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

1.0.0

4 years ago

0.2.14

4 years ago

0.2.13

4 years ago

0.2.12

4 years ago

0.2.11

4 years ago

0.2.10

4 years ago

0.2.9

4 years ago

0.2.8

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago