138 lines
4 KiB
JSON
138 lines
4 KiB
JSON
{
|
|
"name": "farmbot-web-frontend",
|
|
"version": "1.1.0",
|
|
"description": "Farmbot web frontend.",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/farmbot/farmbot-web-frontend"
|
|
},
|
|
"scripts": {
|
|
"coverage": "cat **/*lcov.info | ./node_modules/coveralls/bin/coveralls.js",
|
|
"test-slow": "jest --coverage --ci -w 6 --colors",
|
|
"test": "jest --no-coverage --cache -w 5 --colors",
|
|
"typecheck": "./node_modules/typescript/bin/tsc --noEmit",
|
|
"tslint": "./node_modules/tslint/bin/tslint --project .",
|
|
"sass-lint": "./node_modules/sass-lint/bin/sass-lint.js -c .sass-lint.yml -v -q",
|
|
"sass-check": "./node_modules/sass/sass.js --no-source-map frontend/css/_index.scss sass.log",
|
|
"translation-check": " ./node_modules/jshint/bin/jshint --config public/app-resources/languages/.config public/app-resources/languages/*.js*",
|
|
"linters": "npm run typecheck && npm run tslint && npm run sass-lint && npm run sass-check && npm run translation-check"
|
|
},
|
|
"keywords": [
|
|
"farmbot"
|
|
],
|
|
"author": "farmbot.io",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@blueprintjs/core": "3.15.1",
|
|
"@blueprintjs/datetime": "3.9.0",
|
|
"@blueprintjs/select": "3.8.0",
|
|
"@types/enzyme": "3.9.1",
|
|
"@types/jest": "24.0.11",
|
|
"@types/lodash": "4.14.123",
|
|
"@types/markdown-it": "0.0.7",
|
|
"@types/moxios": "0.4.8",
|
|
"@types/node": "11.13.5",
|
|
"@types/promise-timeout": "1.3.0",
|
|
"@types/react": "16.8.13",
|
|
"@types/react-color": "3.0.0",
|
|
"@types/react-dom": "16.8.4",
|
|
"@types/react-redux": "7.0.7",
|
|
"axios": "0.18.0",
|
|
"boxed_value": "1.0.0",
|
|
"browser-speech": "1.1.1",
|
|
"coveralls": "3.0.3",
|
|
"enzyme": "3.9.0",
|
|
"enzyme-adapter-react-16": "1.12.1",
|
|
"farmbot": "7.0.7",
|
|
"farmbot-toastr": "1.0.3",
|
|
"i18next": "15.0.9",
|
|
"jest": "24.7.1",
|
|
"jest-cli": "24.7.1",
|
|
"lodash": "4.17.11",
|
|
"markdown-it": "8.4.2",
|
|
"markdown-it-emoji": "1.4.0",
|
|
"moment": "2.24.0",
|
|
"moxios": "0.4.0",
|
|
"parcel-bundler": "1.12.3",
|
|
"promise-timeout": "1.3.0",
|
|
"raf": "3.4.1",
|
|
"react": "16.8.6",
|
|
"react-addons-test-utils": "15.6.2",
|
|
"react-color": "2.17.0",
|
|
"react-dom": "16.8.6",
|
|
"react-joyride": "2.0.5",
|
|
"react-redux": "7.0.2",
|
|
"react-test-renderer": "16.8.6",
|
|
"react-transition-group": "4.0.0",
|
|
"redux": "4.0.1",
|
|
"redux-immutable-state-invariant": "2.1.0",
|
|
"redux-thunk": "2.3.0",
|
|
"sass": "1.18.0",
|
|
"sass-lint": "1.12.1",
|
|
"takeme": "0.11.1",
|
|
"ts-jest": "24.0.2",
|
|
"ts-lint": "4.5.1",
|
|
"tslint": "5.16.0",
|
|
"typescript": "3.4.3",
|
|
"which": "1.3.1"
|
|
},
|
|
"devDependencies": {
|
|
"jest-skipped-reporter": "0.0.4",
|
|
"jshint": "2.10.2",
|
|
"madge": "3.4.4"
|
|
},
|
|
"jest": {
|
|
"clearMocks": true,
|
|
"logHeapUsage": true,
|
|
"globals": {
|
|
"ts-jest": {
|
|
"diagnostics": {
|
|
"ignoreCodes": [
|
|
151001
|
|
]
|
|
}
|
|
},
|
|
"globalConfig": {
|
|
"NODE_ENV": "development",
|
|
"TOS_URL": "https://farmbot.io/tos/",
|
|
"PRIV_URL": "https://farmbot.io/privacy/",
|
|
"LONG_REVISION": "------------",
|
|
"SHORT_REVISION": "--------"
|
|
}
|
|
},
|
|
"setupFiles": [
|
|
"./frontend/__test_support__/setup_enzyme.js",
|
|
"./frontend/__test_support__/localstorage.js",
|
|
"./frontend/__test_support__/mock_fbtoaster.ts",
|
|
"./frontend/__test_support__/unmock_i18next.ts",
|
|
"./frontend/__test_support__/additional_mocks.ts"
|
|
],
|
|
"transform": {
|
|
".(ts|tsx)": "ts-jest"
|
|
},
|
|
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
|
|
"moduleFileExtensions": [
|
|
"ts",
|
|
"tsx",
|
|
"js"
|
|
],
|
|
"collectCoverage": true,
|
|
"collectCoverageFrom": [
|
|
"frontend/**/*.{ts,tsx}"
|
|
],
|
|
"reporters": [
|
|
"default",
|
|
"jest-skipped-reporter"
|
|
],
|
|
"coverageReporters": [
|
|
"html",
|
|
"json",
|
|
"lcov"
|
|
],
|
|
"coverageDirectory": "<rootDir>/coverage_fe",
|
|
"setupFilesAfterEnv": [
|
|
"<rootDir>/frontend/__test_support__/customMatchers.js"
|
|
]
|
|
}
|
|
}
|