1.0.4 • Published 4 years ago

@psff/devkit v1.0.4

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

@psff/devkit

Package with the dependencies needed to build and test common components and services.

Install

  yarn add @psff/devkit

Usage

Check the cli help for all the available commands

yarn psff-devkit --help

Migrage package.json

Add the scripts needed in your package and remove all dependencies from dependenciesanddevDependencies` already satisfied by devkit.

Vue package example.

  "scripts": {
    "build": "psff-devkit vue build",
    "test:unit": "psff-devkit vue test:unit",
    "test:unit:coverage": "psff-devkit vue test:unit --coverage",
    "test:unit:watch": "psff-devkit vue test:unit --watch"
  },
  "dependencies": {
    "@psff/devkit": "0.0.0"
  },
  "devDependencies": {},

Migrate .config files

babel.config.js

module.exports = {
  ...require('@psff/devkit/babel.config')
}

jest.config.js

module.exports = {
  ...require('@psff/devkit/jest.config'),
  setupFiles: [
    '<rootDir>/tests/unit/setup.ts',
  ]
};

postcss.config.js

module.exports = {
  ...require('@psff/devkit/postcss.config')
};

tsconfig.js

{
  "extends": "@psff/devkit/tsconfig.vue.json",
  "compilerOptions": {
    "baseUrl": "."
  },
  "include": [
    "src/**/*.ts",
    "src/**/*.tsx",
    "src/**/*.vue",
    "tests/**/*.ts",
    "tests/**/*.tsx"
  ],
  "exclude": [
    "node_modules"
  ]
}

vue.config.js

module.exports = {
  ...require('@psff/devkit/vue.config')
};