4cdaf057f0
* Setup prettier and eslint * npm lint scripts
230 lines
6.4 KiB
JSON
230 lines
6.4 KiB
JSON
{
|
|
"name": "beatconnect_client",
|
|
"productName": "Beatconnect Client",
|
|
"version": "0.1.6",
|
|
"description": "Beatconnect power for osu irc",
|
|
"author": "yadpe <petitot.py@gmail.com>",
|
|
"license": "GPL-3.0",
|
|
"main": "./public/electron/electron.js",
|
|
"homepage": "./",
|
|
"scripts": {
|
|
"start": "node scripts/start.js",
|
|
"build": "node scripts/build.js",
|
|
"test": "node scripts/test.js",
|
|
"lint": "npm run lint:prettier && npm run lint:es",
|
|
"lint:fix": "npm run lint:fix:prettier && npm run lint:fix:es",
|
|
"lint:prettier": "prettier --check '**/*.{json,jsx,tsx,mjs,js,ts}'",
|
|
"lint:fix:prettier": "prettier --write '**/*.{json,jsx,tsx,mjs,js,ts}'",
|
|
"lint:es": "eslint '**/*.{js,jsx,mjs,ts,tsx}'",
|
|
"lint:fix:es": "eslint --fix '**/*.{js,jsx,mjs,ts,tsx}'",
|
|
"go": "electron .",
|
|
"dist": "npm run build && npx npx electron-builder --win --linux --ia32",
|
|
"dist-win": "npm run build && npx electron-builder build --win --ia32",
|
|
"dist-linux": "npm run build && npx electron-builder build --linux --ia32",
|
|
"dist-mac": "npm run build && npx electron-builder build --mac --x64",
|
|
"dist:gh-publish": "npm run build && npx electron-builder build --win --linux --mac --ia32 --x64 -p always",
|
|
"electron-dev": "cross-env ELECTRON_START_URL=http://localhost:3000 electron ."
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/yadPe/beatconnect_client.git"
|
|
},
|
|
"engines": {
|
|
"node": ">=8.11"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/yadPe/beatconnect_client/issues"
|
|
},
|
|
"build": {
|
|
"appId": "io.beatconnect.client",
|
|
"publish": [
|
|
{
|
|
"provider": "github",
|
|
"owner": "yadPe",
|
|
"repo": "beatconnect_client"
|
|
}
|
|
],
|
|
"files": [
|
|
"build/**/*",
|
|
"node_modules/**/*"
|
|
],
|
|
"directories": {
|
|
"buildResources": "assets"
|
|
},
|
|
"extraMetadata": {
|
|
"main": "./build/electron/electron.js",
|
|
"prune": true
|
|
},
|
|
"dmg": {
|
|
"icon": "icon.icns",
|
|
"backgroundColor": "#2a2a2a",
|
|
"contents": [
|
|
{
|
|
"x": 110,
|
|
"y": 150
|
|
},
|
|
{
|
|
"x": 240,
|
|
"y": 150,
|
|
"type": "link",
|
|
"path": "/Applications"
|
|
}
|
|
]
|
|
},
|
|
"linux": {
|
|
"target": [
|
|
"AppImage",
|
|
"deb"
|
|
],
|
|
"icon": "icon.icns"
|
|
},
|
|
"win": {
|
|
"target": "NSIS",
|
|
"icon": "favicon.ico",
|
|
"publish": "github"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@babel/core": "7.4.3",
|
|
"@svgr/webpack": "4.1.0",
|
|
"babel-jest": "^24.8.0",
|
|
"babel-loader": "8.0.5",
|
|
"babel-plugin-named-asset-import": "^0.3.2",
|
|
"babel-preset-react-app": "^9.0.0",
|
|
"camelcase": "^5.2.0",
|
|
"case-sensitive-paths-webpack-plugin": "2.2.0",
|
|
"css-loader": "2.1.1",
|
|
"dotenv": "6.2.0",
|
|
"dotenv-expand": "4.2.0",
|
|
"electron-download-manager": "^2.1.2",
|
|
"electron-is-dev": "^1.1.0",
|
|
"electron-log": "^3.0.7",
|
|
"electron-updater": "^4.1.2",
|
|
"file-loader": "3.0.1",
|
|
"fs-extra": "^7.0.1",
|
|
"html-webpack-plugin": "4.0.0-beta.5",
|
|
"identity-obj-proxy": "3.0.0",
|
|
"irc": "git+https://github.com/yadPe/node-irc.git",
|
|
"long": "^4.0.0",
|
|
"mini-css-extract-plugin": "0.5.0",
|
|
"optimize-css-assets-webpack-plugin": "5.0.1",
|
|
"pnp-webpack-plugin": "1.2.1",
|
|
"postcss-flexbugs-fixes": "4.1.0",
|
|
"postcss-loader": "3.0.0",
|
|
"postcss-normalize": "7.0.1",
|
|
"postcss-preset-env": "6.6.0",
|
|
"postcss-safe-parser": "4.0.1",
|
|
"react": "^16.8.6",
|
|
"react-app-polyfill": "^1.0.1",
|
|
"react-desktop": "^0.3.9",
|
|
"react-dev-utils": "^9.0.1",
|
|
"react-dom": "^16.8.6",
|
|
"react-jss": "^8.6.1",
|
|
"react-redux": "^7.1.0",
|
|
"react-window": "^1.8.5",
|
|
"redux": "^4.0.1",
|
|
"resolve": "1.10.0",
|
|
"sass-loader": "7.1.0",
|
|
"semver": "6.0.0",
|
|
"string.prototype.startswith": "^0.2.0",
|
|
"style-loader": "0.23.1",
|
|
"terser-webpack-plugin": "1.2.3",
|
|
"ts-pnp": "1.1.2",
|
|
"uleb128": "^1.0.1",
|
|
"underscore": "^1.9.1",
|
|
"update-electron-app": "^1.5.0",
|
|
"url-loader": "1.1.2",
|
|
"webpack": "4.29.6",
|
|
"webpack-dev-server": "3.2.1",
|
|
"webpack-manifest-plugin": "2.0.4",
|
|
"workbox-webpack-plugin": "4.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@typescript-eslint/eslint-plugin": "1.6.0",
|
|
"@typescript-eslint/parser": "1.6.0",
|
|
"babel-eslint": "10.0.1",
|
|
"cross-env": "^6.0.3",
|
|
"electron": "^5.0.5",
|
|
"electron-builder": "^20.44.4",
|
|
"eslint": "^6.1.0",
|
|
"eslint-config-airbnb": "^18.0.1",
|
|
"eslint-config-react-app": "^4.0.1",
|
|
"eslint-config-prettier": "^6.4.0",
|
|
"eslint-loader": "2.1.2",
|
|
"eslint-plugin-flowtype": "2.50.1",
|
|
"eslint-plugin-import": "^2.18.2",
|
|
"eslint-plugin-jsx-a11y": "^6.2.3",
|
|
"eslint-plugin-react": "^7.16.0",
|
|
"eslint-plugin-react-hooks": "^1.7.0",
|
|
"is-wsl": "^1.1.0",
|
|
"jest": "24.7.1",
|
|
"jest-environment-jsdom-fourteen": "0.1.0",
|
|
"jest-resolve": "24.7.1",
|
|
"jest-watch-typeahead": "0.3.0",
|
|
"prettier": "^1.18.2",
|
|
"typescript": "^3.5.3"
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"jest": {
|
|
"collectCoverageFrom": [
|
|
"src/**/*.{js,jsx,ts,tsx}",
|
|
"!src/**/*.d.ts"
|
|
],
|
|
"setupFiles": [
|
|
"react-app-polyfill/jsdom"
|
|
],
|
|
"setupFilesAfterEnv": [],
|
|
"testMatch": [
|
|
"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
|
|
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
|
|
],
|
|
"testEnvironment": "jest-environment-jsdom-fourteen",
|
|
"transform": {
|
|
"^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/node_modules/babel-jest",
|
|
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
|
|
"^(?!.*\\.(js|jsx|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
|
|
},
|
|
"transformIgnorePatterns": [
|
|
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$",
|
|
"^.+\\.module\\.(css|sass|scss)$"
|
|
],
|
|
"modulePaths": [],
|
|
"moduleNameMapper": {
|
|
"^react-native$": "react-native-web",
|
|
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
|
|
},
|
|
"moduleFileExtensions": [
|
|
"web.js",
|
|
"js",
|
|
"web.ts",
|
|
"ts",
|
|
"web.tsx",
|
|
"tsx",
|
|
"json",
|
|
"web.jsx",
|
|
"jsx",
|
|
"node"
|
|
],
|
|
"watchPlugins": [
|
|
"jest-watch-typeahead/filename",
|
|
"jest-watch-typeahead/testname"
|
|
]
|
|
},
|
|
"babel": {
|
|
"presets": [
|
|
"react-app"
|
|
]
|
|
}
|
|
}
|