booking-core
Version:
Core components for booking repo
120 lines (119 loc) • 3.49 kB
JSON
{
"name": "booking-core",
"description": "Core components for booking repo",
"keywords": [
"react",
"redux",
"typescript",
"skeleton",
"boilerplate"
],
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"version": "1.0.9",
"license": "MIT",
"author": "Mikołaj Jarmuła <mikolaj_jarmula@wp.pl>",
"scripts": {
"all": "yarn install && yarn run lint && yarn run test && yarn run build",
"build": "yarn run clean && yarn run sass && yarn run tsc && yarn run babel",
"tsc": "tsc",
"lint": "eslint \"{lib,test}/**/*.{ts,tsx}\"",
"test": "jest --coverage",
"clean": "rimraf ./dist",
"fix": "yarn run lint --fix",
"babel": "babel dist --out-dir dist",
"sass": "sass assets/styles/app.scss dist/styles/app.css",
"publish-package": "yarn run all && npm version patch && npm publish"
},
"directories": {
"assets": "assets",
"lib": "lib",
"models": "lib/models"
},
"peerDependencies": {
"axios": "0.24.0",
"classnames": "^2.x.x",
"react": "17.x.x",
"react-dom": "17.x.x",
"react-hook-form": "^7.x.x",
"react-status-alert": "1.1.2"
},
"devDependencies": {
"@babel/cli": "^7.16.0",
"@babel/core": "^7.16.0",
"@babel/preset-env": "^7.16.4",
"@testing-library/jest-dom": "^5.15.1",
"@testing-library/react": "^12.1.2",
"@testing-library/react-hooks": "^7.0.2",
"@types/enzyme": "3.10.10",
"@types/enzyme-adapter-react-16": "^1.0.6",
"@types/jest": "27.0.3",
"@types/node": "16.11.10",
"@types/react": "17.0.37",
"@types/react-dom": "17.0.11",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"axios": "^0.24.0",
"classnames": "^2.3.1",
"core-js": "^3.19.1",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.6",
"eslint": "^8.3.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-jest-dom": "^3.9.2",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.27.1",
"eslint-plugin-react-hooks": "^4.3.0",
"jest": "^27.3.1",
"jest-runner-prettier": "^0.3.7",
"nock": "^13.2.1",
"postcss-preset-env": "^7.0.1",
"prettier": "^2.5.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-hook-form": "^7.20.2",
"react-status-alert": "^1.1.2",
"rimraf": "^3.0.2",
"sass": "^1.43.5",
"ts-jest": "27.0.7",
"typescript": "4.5.2"
},
"jest": {
"projects": [
{
"displayName": "prettier",
"roots": [
"<rootDir>"
],
"runner": "jest-runner-prettier",
"testMatch": [
"**/*.tsx"
],
"moduleFileExtensions": [
"tsx"
]
},
{
"setupFiles": [
"<rootDir>/test/test-setup.ts"
],
"displayName": "test",
"preset": "ts-jest",
"testEnvironment": "jsdom",
"collectCoverageFrom": [
"lib/**/*.{ts,tsx}",
"!**/node_modules/**"
],
"moduleNameMapper": {
"\\.(css|scss|svg|ico|png|jpg|jpeg)$": "<rootDir>/__mocks__/style-mock.ts",
"@components/(.*)": "<rootDir>/lib/components/$1",
"@modules/(.*)": "<rootDir>/lib/modules/$1",
"@models/(.*)": "<rootDir>/lib/models/$1",
"@services/(.*)": "<rootDir>/lib/services/$1",
"@assets/(.*)": "<rootDir>/assets/$1",
"@fakes/(.*)": "<rootDir>/test/fakes/$1"
}
}
]
}
}