Misk Common
This package provides shared libraries, externals, and styles across Misk tab repos.
Getting Started
$ yarn add @misk/common
Automatic Inclusion
- If your Webpack config builds off of a template in
@misk/dev
, vendors.js
and styles.js
will automatically be included in the build of that repo. - If your Webpack config does not build off of a template in
@misk/dev
, use the Manual Inclusion steps below.
Manual Inclusion
Included Libraries
From package.json
:
@blueprintjs/core
@blueprintjs/icons
axios
connected-react-router
dayjs
history
immutable
react
react-dom
react-helmet
react-hot-loader
react-redux
react-router
react-router-dom
react-router-redux
react-transition-group
redux
redux-saga
skeleton-css
styled-components
Included Styles
import '../node_modules/@blueprintjs/core/lib/css/blueprint.css'
import '../node_modules/normalize.css/normalize.css'
import '../node_modules/skeleton-css/css/skeleton.css'
import './styles/misk-common.css'
Contributing
#Adding a new package
yarn add {package}
to add the package to package.json
- Add package to
vendorExternals
in @misk/dev/externals.js
- Add window to javascript require include in
src/vendors.js
- Update
README.md
with a copy of the updated package.json
list of packages
#Adding a Cached Remote Asset
Webpack Configs
webpack.config.js
: Exports common variables and functionswebpack.static.config.js
: Exports common styles filewebpack.vendor.config.js
: Exports common vendors library file
0.5.1
Mon, 18 Oct 2022 20:23:00 GMT
Includes a bug fix to the development webpack config in order to remove the deprecated inline
argument.
0.5
Mon, 18 Oct 2022 14:53:00 GMT
This release includes major upgrades to many dependencies including Webpack (4 -> 5), typescript (3.9.x -> 4.8.x). tslint has been migrated to eslint, meaning @misk/tslint
has been removed. dayjs, immutable, react-hot-loader, styled-components have been removed as vendored packages.