🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@misk/dev

Package Overview
Dependencies
Maintainers
2
Versions
499
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@misk/dev

Microservice Kontainer Development Libraries

Source
npmnpm
Version
0.0.19
Version published
Weekly downloads
867
33.8%
Maintainers
2
Weekly downloads
 
Created
Source

Misk Dev

This package provides shared devDependencies, compiler options, and linting used to provide a common development environment across Misk tab repos.

Getting Started

$ yarn add @misk/dev

TsConfig Template

Create a tsconfig.json file in the repo root directory with the following:

  {
    "extends": "./node_modules/@misk/dev/tsconfig.base",
    "compilerOptions": {
        "outDir": "./dist"
    }
  }

Webpack Template

Create a webpack.config.js file in the repo root directory with the following:

const { MiskWebpackConfigBase } = require("@misk/webpack")
const path = require('path')
const miskTabWebpack = require(path.join(process.cwd(), "package.json")).miskTabWebpack
module.exports = MiskWebpackConfigBase(process.env.NODE_ENV, {
  "dirname": __dirname,
  miskTabWebpack,
})

Package.json Input Parameters

The child Webpack template above consumes some static initialization variables that you must add to your package.json. An example for the Config tab is included below.

Note that the output_path must match the outDir specified in the repo's tsconfig.json.

  "devDependencies": {
    "@misk/dev": "^0.0.15"
  },
  "miskTabWebpack": {
    "name": "Config",
    "output_path": "dist",
    "port": "3200",
    "relative_path_prefix": "_tab/config/",
    "slug": "config"
  }

Included Libraries

  "@types/node": "^10.7.0",
  "@types/react": "^16.4.10",
  "@types/react-dom": "^16.0.7",
  "@types/react-helmet": "^5.0.7",
  "@types/react-hot-loader": "^4.1.0",
  "@types/react-redux": "^6.0.6",
  "@types/react-router": "^4.0.30",
  "@types/react-router-dom": "^4.3.0",
  "@types/react-router-redux": "^5.0.15",
  "@types/webpack-env": "^1.13.6",
  "tslint": "^5.11.0",
  "tslint-blueprint": "^0.1.0",
  "tslint-clean-code": "^0.2.7",
  "tslint-config-prettier": "^1.14.0",
  "tslint-consistent-codestyle": "^1.13.3",
  "tslint-eslint-rules": "^5.3.1",
  "tslint-immutable": "^4.6.0",
  "tslint-react": "^3.6.0",
  "tslint-sonarts": "^1.7.0",
  "typescript": "^3.0.1"

Releasing

FAQs

Package last updated on 05 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts