7.0.6 • Published 8 months ago

studiokit-scaffolding-js v7.0.6

Weekly downloads
1,162
License
MIT
Repository
gitlab
Last release
8 months 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 appConfig = {/* AppConfiguration */}
    const endpointMappings = {...endpointMappings, .../* App EndpointMappings */}
    const { history, store, persistor } = startup(appConfig, endpointMappings)
    
    // render using history, store, persistor
    ReactDOM.render(
    	...
    )

Styles

Basic Setup

In your project’s startup index.tsx file, import the scaffolding styles as follows

...third party css...

import 'studiokit-scaffolding-js/lib/css/index-with-variables.css'

...project specific css...

In config-overrides.js when setting up react-app-require-postcss, in order for css variables to work, the importFrom array should look like the following:

importFrom: [
	'node_modules/studiokit-scaffolding-js/lib/css/variables.css'
]

Variable Override Setup

In order to override certain color variables from variables.css, they must be overridden before scaffolding’s index.css file is imported.

In your project’s startup index.tsx file, import the scaffolding styles as follows

...third party css...

import 'studiokit-scaffolding-js/lib/css/variables.css'
import './css/variables.css'
import 'studiokit-scaffolding-js/lib/css/index.css'
import './css/index.css'

In config-overrides.js when setting up react-app-require-postcss, in order for css variables to work, the importFrom array should look like the following:

importFrom: [
	'node_modules/studiokit-scaffolding-js/lib/css/variables.css',
	'src/css/variables.css'
]

Usage

Components and Utils

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

Development

Branches

  1. Create a new branch
    • Feature/Issue: In GitLab from an issue, create a branch off of develop
    • Hotfix: Create a hotfix branch off of master (manually or in GitLab by making an MR)
  2. Update the version number
    • Feature/Issue append -next.1.1 e.g. If the current version is 1.0.0, the new branch should be 1.0.0-next.1.1
    • Hotfix increase the version number and append -alpha.1 e.g. If the current version is 1.0.0, the new branch should be 1.0.1-alpha.1 for hotfix
    • NOTE: if more than one branch is being developed on at the same time, simply increment the first number after "next" * e.g. 1.0.0-next.2.1 for the second issue branch (this won't apply for hotfixes)
  3. Development Loop
    1. Add/update new components, utils, or styles
    2. Add/update unit tests for those components or utils to confirm basic functionality
    3. Increment the last number in the version
      • e.g. 1.0.0-next.2.1 => 1.0.0-next.2.2 for a feature/issue branch
      • e.g. 1.0.1-alpha.1 => 1.0.1-alpha.2 for a hotfix branch
    4. Push to gitlab. Azure DevOps will run a pipeline and publish this version to npmjs.org
    5. Install the new version in the project(s) you are working on by updating its package.json and running yarn
    6. Repeat as needed
  4. Merging
    • After the Merge Request is approved, remove the "next" or "alpha" suffix from the version before merging to develop or master
    • For hotfix branches, the version number should be the new patch number, e.g. 1.0.1
  5. Release
    • Feature/Issue: After merging, create a new "release" branch from develop and follow the "git flow" release steps as normal
    • Hotfix: Finish the "git flow" hotfix steps as normal from the hotfix branch
    • Azure DevOps will run a pipeline to publish the version merged to master to npmjs.org

Styles

Styles are organized into the following folders and files inside of src/css

  1. variables.css
    • Global constant variables
    • Common app-specific variables
  2. utils
    • Assorted utility styles, similar to tachyons
    • Break out similar styles into separate files once a few similar ones exist * e.g. _display.css contains all display: ...; related modifier styles
  3. base
    • _base.css: Generic tags, .skip-main link, and .main-content
    • _typography.css: Default fonts, font scale, and text colors
  4. components
    • Global component specific styles (e.g. not functional like tachyons)

Your project’s css folders and files should follow this same pattern.

7.0.6-alpha.1

8 months ago

7.0.4-alpha.2.2

9 months ago

7.0.4-next.2.1

9 months ago

7.0.5-alpha.3.7

9 months ago

7.0.5-alpha.3.6

9 months ago

7.0.5-alpha.3.5

9 months ago

7.0.5-alpha.3.4

9 months ago

7.0.5-alpha.3.2

9 months ago

7.0.5-alpha.3.1

9 months ago

7.0.6

8 months ago

7.0.5

9 months ago

7.0.5-alpha.2

10 months ago

7.0.5-alpha.1

10 months ago

7.0.5-alpha.2.2

9 months ago

7.0.2-next.1.1

11 months ago

7.0.3-next.1.4.1

11 months ago

6.0.1-alpha.1

11 months ago

6.0.1

11 months ago

7.0.3-next.1.2

11 months ago

7.0.3-next.1.1

11 months ago

7.0.3-next.1.4

11 months ago

7.0.3-next.1.3

11 months ago

7.0.3-next.1.6

11 months ago

7.0.3-next.1.5

11 months ago

6.0.0-next.1.4

1 year ago

7.0.0-next.1.1

12 months ago

6.0.0-next.1.3

1 year ago

6.0.0-next.1.2

1 year ago

6.0.0-next.1.1

1 year ago

6.0.0-next.1.5

1 year ago

7.0.0

1 year ago

7.0.4

11 months ago

7.0.3

11 months ago

7.0.2

11 months ago

7.0.1

11 months ago

6.0.0

1 year ago

5.2.0-next.2.9

1 year ago

5.2.0-next.2.7

1 year ago

5.2.0-next.2.8

1 year ago

5.2.0-next.2.5

1 year ago

5.2.0-next.2.6

1 year ago

5.2.0-next.2.11

1 year ago

5.2.0-next.2.10

1 year ago

5.2.0-next.2.3

1 year ago

5.2.0-next.2.4

1 year ago

5.2.1

1 year ago

5.2.0-next.2.1

1 year ago

5.2.0-next.2.2

1 year ago

5.1.5-next.6.2

1 year ago

5.2.0-next.1.2

1 year ago

5.2.0-next.1.1

1 year ago

5.2.0

1 year ago

5.1.6-next.1.18

1 year ago

5.1.6-next.1.19

1 year ago

5.1.6-next.1.20

1 year ago

5.1.6-next.1.17

1 year ago

5.1.6-next.1.16

1 year ago

5.1.5-next.5.14

1 year ago

5.1.6-next.1.14

1 year ago

5.1.6-next.1.15

1 year ago

5.1.6

1 year ago

5.1.5-next.5.13

1 year ago

5.1.5-next.5.12

1 year ago

5.1.5-next.5.10

1 year ago

5.1.5-next.5.11

1 year ago

5.1.5-next.5.9

1 year ago

5.1.5-next.5.7

1 year ago

5.1.5-next.5.8

1 year ago

5.1.5-next.2.1

1 year ago

5.1.5-next.5.4

1 year ago

5.1.5-next.5.5

1 year ago

5.1.5-next.5.6

1 year ago

5.1.5-next.6.1

1 year ago

5.1.5-next.5.3

1 year ago

5.1.5-next.5.2

1 year ago

5.1.5

1 year ago

5.1.5-alpha.1

1 year ago

5.1.4

1 year ago

5.1.3-next.1.3

1 year ago

5.1.3-next.1.4

1 year ago

5.1.3-next.1.2

1 year ago

5.1.3-next.1.1

1 year ago

5.1.3

1 year ago

5.1.2-next.1.2

1 year ago

5.1.2-next.1.1

1 year ago

5.1.2

1 year ago

5.1.1

1 year ago

5.1.0-next.2.4

1 year ago

5.1.0-next.2.5

1 year ago

5.1.0-next.2.6

1 year ago

5.1.0-next.2.7

1 year ago

5.1.0-next.2.1

1 year ago

5.1.0-next.2.2

1 year ago

5.1.0-next.2.3

1 year ago

5.1.0-next.1.1

1 year ago

5.1.0-next.1.2

1 year ago

5.1.0

1 year ago

5.0.0-next.2.13

1 year ago

5.0.0-next.2.12

1 year ago

5.0.0-next.2.11

1 year ago

5.0.0-next.2.10

1 year ago

5.0.0-next.2.8

1 year ago

5.0.0-next.2.7

1 year ago

5.0.0-next.2.9

1 year ago

5.0.0-next.2.4

1 year ago

5.0.0-next.2.3

1 year ago

5.0.0-next.2.6

1 year ago

5.0.0-next.2.5

1 year ago

5.0.0-next.2.2

1 year ago

5.0.0-next.2.1

1 year ago

5.0.0-next.1.1

1 year ago

5.0.0-next.1.2

1 year ago

5.0.0

2 years ago

4.12.0-next.1.1

2 years ago

4.12.0-next.1.2

2 years ago

4.11.4-next.2.1

2 years ago

4.12.0

2 years ago

4.12.1

2 years ago

4.12.1-next.1.1

2 years ago

4.12.1-next.1.2

2 years ago

4.11.4-next.1.1

2 years ago

4.12.1-alpha.2

2 years ago

4.12.1-alpha.1

2 years ago

4.11.4

2 years ago

4.11.4-alpha.1

2 years ago

4.10.1-next.1.1

2 years ago

4.10.1-alpha.1

2 years ago

4.10.1-alpha.2

2 years ago

4.11.1-alpha.1

2 years ago

4.11.2-alpha.1.1

2 years ago

4.10.1

2 years ago

4.10.0-next.1.1

2 years ago

4.11.2-alpha.2

2 years ago

4.11.2-alpha.1

2 years ago

4.11.2-alpha.3

2 years ago

4.11.0

2 years ago

4.11.1

2 years ago

4.11.2

2 years ago

4.11.3

2 years ago

4.11.3-alpha.1

2 years ago

4.9.0

2 years ago

4.8.0

2 years ago

4.9.0-next.2.1

2 years ago

4.7.1

2 years ago

4.9.0-next.1.1

2 years ago

4.9.0-next.1.2

2 years ago

4.9.0-next.1.3

2 years ago

4.9.0-next.1.4

2 years ago

4.9.0-alpha.1

2 years ago

4.9.0-alpha.2

2 years ago

4.8.0-next.1.1

2 years ago

4.8.0-next.1.2

2 years ago

4.8.0-next.1.5

2 years ago

4.8.0-next.1.3

2 years ago

4.8.0-next.1.4

2 years ago

4.8.0-next.2.1

2 years ago

4.10.0

2 years ago

4.8.0-next.3.3

2 years ago

4.8.0-next.3.1

2 years ago

4.8.0-next.3.2

2 years ago

4.7.1-alpha.2

2 years ago

4.7.1-alpha.1

2 years ago

4.7.1-alpha.4

2 years ago

4.7.1-alpha.3

2 years ago

4.7.1-alpha.6

2 years ago

4.7.1-alpha.5

2 years ago

4.7.1-next.1.1

2 years ago

4.7.1-next.1.2

2 years ago

4.5.12-next.2.3

3 years ago

4.5.12-next.2.2

3 years ago

4.5.12-next.2.1

3 years ago

4.7.0

3 years ago

4.6.0

3 years ago

4.5.12-next.3.9

3 years ago

4.5.12-next.3.6

3 years ago

4.5.12-next.3.5

3 years ago

4.5.12-next.3.8

3 years ago

4.5.12-next.3.7

3 years ago

4.5.12-next.3.2

3 years ago

4.5.12-next.3.1

3 years ago

4.5.12-next.3.4

3 years ago

4.5.12-next.3.3

3 years ago

4.5.12-next.3.13

3 years ago

4.5.12-next.3.12

3 years ago

4.5.12-next.3.11

3 years ago

4.5.12-next.3.10

3 years ago

4.6.0-next.1.6

3 years ago

4.6.0-next.1.5

3 years ago

4.6.0-next.1.2

3 years ago

4.6.0-next.1.1

3 years ago

4.6.0-next.1.4

3 years ago

4.6.0-next.1.3

3 years ago

4.5.12-next.3.16

3 years ago

4.5.12-next.3.15

3 years ago

4.5.12-next.3.14

3 years ago

4.5.12-alpha.1

3 years ago

4.5.12-alpha.2

3 years ago

4.5.12-alpha.3

3 years ago

4.5.12-alpha.4

3 years ago

4.5.12-next.1.1

3 years ago

4.5.8-next.1.1

3 years ago

4.5.8-alpha.1

3 years ago

4.3.20-next.3.2

3 years ago

4.3.20-next.3.1

3 years ago

4.5.8

3 years ago

4.5.7

3 years ago

4.5.9

3 years ago

4.5.7-alpha.1

3 years ago

4.5.11-alpha.1

3 years ago

4.5.10

3 years ago

4.5.11

3 years ago

4.5.12

3 years ago

4.5.10-alpha.7

3 years ago

4.5.10-alpha.4

3 years ago

4.5.10-alpha.3

3 years ago

4.5.10-alpha.6

3 years ago

4.5.10-alpha.5

3 years ago

4.5.10-alpha.2

3 years ago

4.5.10-alpha.1

3 years ago

4.5.9-alpha.2

3 years ago

4.5.9-alpha.1

3 years ago

4.3.22

3 years ago

4.3.21

3 years ago

4.5.6

3 years ago

4.5.3-next.2.2

3 years ago

4.5.3-next.2.3

3 years ago

4.5.3-next.2.1

3 years ago

4.5.3-next.1.1

3 years ago

4.5.3-next.1.2

3 years ago

4.5.2-next.3.4

3 years ago

4.5.2-next.3.5

3 years ago

4.5.2-next.3.1

3 years ago

4.5.2-next.3.2

3 years ago

4.5.2-next.3.3

3 years ago

4.5.4

3 years ago

4.5.3

3 years ago

4.5.5

3 years ago

4.5.2-next.1.1

3 years ago

4.5.2-next.1.2

3 years ago

4.5.2-next.2.1

3 years ago

4.5.6-alpha.2

3 years ago

4.5.6-alpha.3

3 years ago

4.5.6-alpha.4

3 years ago

4.3.19-next.1.8

3 years ago

4.3.19-next.1.1

4 years ago

4.3.19-next.1.3

4 years ago

4.3.19-next.1.2

4 years ago

4.3.19-next.1.5

3 years ago

4.3.19-next.1.4

3 years ago

4.3.19-next.1.7

3 years ago

4.3.19-next.1.6

3 years ago

4.5.1-next.1.5

3 years ago

4.5.1-next.1.2

3 years ago

4.5.1-next.1.1

3 years ago

4.5.1-next.1.4

3 years ago

4.5.1-next.1.3

3 years ago

4.5.0

3 years ago

4.5.2

3 years ago

4.5.1

3 years ago

4.4.0

3 years ago

4.3.20-next.1.1

3 years ago

4.4.0-next.1.1

3 years ago

4.3.20-next.1.4

3 years ago

4.3.20-next.1.2

3 years ago

4.3.20-next.1.3

3 years ago

4.3.20-next.2.3

3 years ago

4.3.20-next.2.4

3 years ago

4.3.20-next.2.1

3 years ago

4.3.20-next.2.2

3 years ago

4.3.20-next.2.5

3 years ago

4.3.19

3 years ago

4.5.0-next.1.3

3 years ago

4.5.0-next.1.2

3 years ago

4.5.0-next.1.1

3 years ago

4.3.20

3 years ago

4.3.17-next.1

4 years ago

4.3.17

4 years ago

4.3.18

4 years ago

4.3.16-next.2

4 years ago

4.3.16-next.1

4 years ago

4.3.15-next.1

4 years ago

4.3.16

4 years ago

4.3.14-next.1.1

4 years ago

4.3.14-next.1.2

4 years ago

4.3.14-next.1.3

4 years ago

4.3.14-next.1.4

4 years ago

4.3.15

4 years ago

4.3.14

4 years ago

4.3.13-next-1.1

4 years ago

4.3.13

4 years ago

4.3.12-alpha.3

4 years ago

4.3.12-alpha.2

4 years ago

4.3.12-alpha.1

4 years ago

4.3.12

4 years ago

4.3.11-next.1.1

4 years ago

4.3.11-next.2.1

4 years ago

4.3.10-alpha.1

4 years ago

4.3.11

4 years ago

4.3.10

4 years ago

4.3.9-next.1.4

4 years ago

4.3.9-next.1.5

4 years ago

4.3.9-next.1.3

4 years ago

4.3.9-next.1.2

4 years ago

4.3.9-next.1.1

4 years ago

4.3.8-next.1

4 years ago

4.3.8-next.1.2

4 years ago

4.3.8-next.1.1

4 years ago

4.3.9

4 years ago

4.3.8-alpha.3

4 years ago

4.3.8-alpha.2

4 years ago

4.3.8

4 years ago

4.3.8-alpha.1

4 years ago

4.3.7

4 years ago

4.3.6-next.1.1

4 years ago

4.3.5-next.1.3

4 years ago

4.3.5-next.1.2

4 years ago

4.3.5-next.1.1

4 years ago

4.3.5-next.2.3

4 years ago

4.3.5-next.2.2

4 years ago

4.3.5-next.2.1

4 years ago

4.3.6

4 years ago

4.3.4-next.1.3

4 years ago

4.3.5

4 years ago

4.3.4

4 years ago

4.3.4-next.1.1

4 years ago

4.3.4-next.1.2

4 years ago

4.3.3-next.2.1

4 years ago

4.3.3-next.3.1

4 years ago

4.3.3-next.3.2

4 years ago

4.3.3

4 years ago

4.3.3-next.1.1

4 years ago

4.3.3-alpha.1

4 years ago

4.3.2

4 years ago

4.3.1-next.1.3

4 years ago

4.3.1-next.1.2

4 years ago

4.3.1-next.1.1

4 years ago

4.3.0

4 years ago

4.2.2-next.2.2

4 years ago

4.2.2-next.1.11

4 years ago

4.2.2-next.1.10

4 years ago

4.2.2-next.1.13

4 years ago

4.2.2-next.1.12

4 years ago

4.2.2-next.1.15

4 years ago

4.2.2-next.1.14

4 years ago

4.2.2-next.1.16

4 years ago

4.2.2-next.1.2

4 years ago

4.2.2-next.1.1

4 years ago

4.2.2-next.1.4

4 years ago

4.2.2-next.1.3

4 years ago

4.2.2-next.1.6

4 years ago

4.2.2-next.1.5

4 years ago

4.2.2-next.1.8

4 years ago

4.2.2-next.1.7

4 years ago

4.2.2-next.1.9

4 years ago

4.2.2-next.2.1

4 years ago

4.2.2-alpha.5

4 years ago

4.2.2

4 years ago

4.2.2-alpha.2

4 years ago

4.2.2-alpha.3

4 years ago

4.2.2-alpha.4

4 years ago

4.2.1-alpha.7

4 years ago

4.1.3-alpha.1

4 years ago

4.1.3-alpha.2

4 years ago

4.2.1

4 years ago

4.1.3

4 years ago

4.2.2-alpha.1

4 years ago

4.2.1-alpha.5

4 years ago

4.2.1-alpha.6

4 years ago

4.2.1-alpha.1

4 years ago

4.2.1-alpha.2

4 years ago

4.2.1-alpha.3

4 years ago

4.2.1-alpha.4

4 years ago

4.2.0

4 years ago

4.2.0-alpha.2

4 years ago

4.1.2-alpha.7

4 years ago

4.1.2-alpha.6

4 years ago

4.1.2-alpha.8

4 years ago

4.1.2

4 years ago

4.1.2-alpha.5

4 years ago

4.1.2-alpha.4

4 years ago

4.1.2-alpha.1

4 years ago

4.1.2-alpha.3

4 years ago

4.1.1

4 years ago

4.1.1-alpha.4

4 years ago

4.1.1-alpha.2

4 years ago

4.1.1-alpha.1

4 years ago

4.1.1-alpha.3

4 years ago

4.2.0-alpha.1

4 years ago

4.1.0

4 years ago

4.0.5

4 years ago

4.0.5-alpha.1

4 years ago

4.0.5-alpha.2

4 years ago

4.0.5-alpha.3

4 years ago

4.1.0-alpha.4

4 years ago

4.1.0-alpha.3

4 years ago

4.1.0-alpha.2

4 years ago

4.0.4-alpha.1

4 years ago

4.0.4-alpha.2

4 years ago

4.0.4-alpha.3

4 years ago

4.0.4

4 years ago

4.1.0-alpha.1

4 years ago

4.0.3

4 years ago

4.0.3-alpha.2

4 years ago

4.0.3-alpha.1

4 years ago

4.0.2

4 years ago

4.0.2-alpha.1

4 years ago

4.0.1

4 years ago

4.0.0

4 years ago

4.0.0-alpha.6

4 years ago

4.0.0-alpha.5

4 years ago

4.0.0-alpha.4

4 years ago

4.0.0-alpha.3

4 years ago

4.0.0-alpha.2

4 years ago

4.0.0-alpha.1

4 years ago

3.6.3

4 years ago

3.6.3-alpha.4

4 years ago

3.6.3-alpha.3

4 years ago

3.6.3-alpha.2

4 years ago

3.6.3-alpha.1

4 years ago

3.6.2

4 years ago

3.6.2-alpha.1

4 years ago

3.6.1

4 years ago

3.6.1-alpha.2

4 years ago

3.6.1-alpha.1

4 years ago

3.6.0

5 years ago

3.6.0-alpha.5

5 years ago

3.6.0-alpha.4

5 years ago

3.6.0-alpha.6

5 years ago

3.6.0-alpha.1

5 years ago

3.6.0-alpha.3

5 years ago

3.6.0-alpha.2

5 years ago

3.5.0

5 years ago

3.5.0-alpha.6

5 years ago

3.5.0-alpha.5

5 years ago

3.5.0-alpha.4

5 years ago

3.5.0-alpha.3

5 years ago

3.5.0-alpha.1

5 years ago

3.5.0-alpha.2

5 years ago

3.4.4

5 years ago

3.4.4-alpha.3

5 years ago

3.4.4-alpha.2

5 years ago

3.4.4-alpha.5

5 years ago

3.4.4-alpha.4

5 years ago

3.4.4-alpha.7

5 years ago

3.4.4-alpha.6

5 years ago

3.4.3

5 years ago

3.4.2

5 years ago

3.3.6

5 years ago

3.4.1

5 years ago

3.4.0

5 years ago

3.3.5

5 years ago

3.3.4

5 years ago

3.3.3

5 years ago

3.3.2

5 years ago

3.2.4

5 years ago

3.3.1

5 years ago

3.3.0

5 years ago

3.2.3

5 years ago

3.2.2

5 years ago

3.2.1

5 years ago

3.2.0

5 years ago

3.1.14

5 years ago

3.1.13

5 years ago

3.1.12

5 years ago

3.1.11

5 years ago

3.1.10

5 years ago

3.1.9

5 years ago

3.1.8

5 years ago

3.1.7

5 years ago

3.1.6

5 years ago

3.1.5

5 years ago

3.1.3

5 years ago

3.1.4

5 years ago

3.1.2

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.7

5 years ago

3.0.6

5 years ago

3.0.5

5 years ago

3.0.4

5 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

1.0.0

5 years ago

0.2.14

5 years ago

0.2.13

5 years ago

0.2.12

5 years ago

0.2.11

5 years ago

0.2.10

5 years ago

0.2.9

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago