Skip to content

Commit

Permalink
feat: husky and lint-stages setup
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon authored and olzzon committed Apr 24, 2020
1 parent dc92622 commit ac99595
Show file tree
Hide file tree
Showing 3 changed files with 531 additions and 110 deletions.
223 changes: 119 additions & 104 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,104 +1,119 @@
{
"name": "sisyfos-audio-controller",
"version": "3.0.0",
"description": "Audio mixer build with the logic from a video mixer",
"license": "MIT",
"private": false,
"author": {
"name": "Kasper Olsson Hans (TV2 Denmark)",
"email": "[email protected]"
},
"contributors": [
{
"name": "Jan Starzak",
"email": "[email protected]",
"url": "https://superfly.tv"
}
],
"keywords": [
"app",
"audio",
"open-source"
],
"engines": {
"node": ">=8.15.0",
"npm": ">=5.0.0",
"yarn": ">=1.0.0"
},
"main": "dist/server/index.js",
"scripts": {
"prod": "webpack --mode production --config webpack.config.js && electron --noDevServer .",
"start": "node dist/server/index.js",
"start:dev": "node --inspect dist/server/index.js",
"start:break": "node --inspect-brk dist/server/index.js",
"build-client": "yarn webpack --config webpack.config.js --mode production",
"build-server": "yarn tsc -p server/tsconfig.json",
"build-watch": "yarn tsc -p server/tsconfig.json --watch & webpack --config webpack.config.js --watch --mode development",
"build": "yarn build-server && yarn build-client",
"unit": "jest",
"test": "yarn unit",
"release": "standard-version",
"prepareChangelog": "standard-version --prerelease",
"watch": "jest --watch",
"validate:dependencies": "yarn audit && yarn license-validate",
"license-validate": "node-license-validator -p -d --allow-licenses MIT MIT/X11 BSD BSD-3-Clause BSD-2-Clause ISC Apache Apache-2.0 WTFPL CC-BY-3.0 CC0-1.0 Unlicense --allow-packages cycle"
},
"dependencies": {
"casparcg-connection": "^4.9.0",
"classnames": "^2.2.6",
"express": "^4.17.1",
"express-csp-header": "^3.0.0",
"http": "^0.0.0",
"node-emberplus": "https://github.com/olzzon/node-emberplus.git#feat/export-ber",
"nouislider-react": "^3.3.7",
"osc": "https://github.com/olzzon/tv2-osc.js-no-serialport.git",
"react": "^16.1.1",
"react-dom": "^16.10.1",
"react-redux": "^7.1.1",
"react-select": "^3.0.6",
"react-slider": "^1.0.3",
"reactjs-popup": "^1.5.0",
"redux": "^4.0.5",
"socket.io": "^2.3.0",
"socket.io-client": "^2.3.0",
"standard-version": "^7.1.0",
"web-midi-api": "^2.0.7",
"webmidi": "^2.5.1",
"winston": "^3.2.1",
"winston-elasticsearch": "^0.8.5"
},
"devDependencies": {
"@babel/core": "^7.8.7",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
"@babel/plugin-syntax-object-rest-spread": "^7.8.3",
"@babel/preset-env": "^7.8.7",
"@babel/preset-react": "^7.8.3",
"@babel/preset-typescript": "^7.8.3",
"@types/hoist-non-react-statics": "^3.3.1",
"@types/jest": "^25.1.4",
"@types/rc-slider": "^8.6.5",
"@types/react-redux": "^7.1.4",
"@types/react-select": "^3.0.4",
"@types/react-test-renderer": "^16.9.1",
"@types/socket.io-client": "^1.4.32",
"babel-jest": "^25.1.0",
"babel-loader": "^8.0.6",
"css-loader": "^3.4.2",
"file-loader": "^4.2.0",
"html-webpack-plugin": "^3.2.0",
"jest": "^25.1.0",
"node-license-validator": "^1.3.0",
"react-test-renderer": "^16.13.0",
"style-loader": "^1.0.1",
"ts-jest": "^25.2.1",
"ts-loader": "^6.2.1",
"ts-node": "^8.7.0",
"typescript": "^3.7.5",
"webpack": "^4.41.0",
"webpack-cli": "^3.3.10"
},
"resolutions": {
"minimist": "^1.2.5"
}
}
{
"name": "sisyfos-audio-controller",
"version": "3.0.0",
"description": "Audio mixer build with the logic from a video mixer",
"license": "MIT",
"private": false,
"author": {
"name": "Kasper Olsson Hans (TV2 Denmark)",
"email": "[email protected]"
},
"contributors": [
{
"name": "Jan Starzak",
"email": "[email protected]",
"url": "https://superfly.tv"
}
],
"keywords": [
"app",
"audio",
"open-source"
],
"engines": {
"node": ">=8.15.0",
"npm": ">=5.0.0",
"yarn": ">=1.0.0"
},
"main": "dist/server/index.js",
"scripts": {
"prod": "webpack --mode production --config webpack.config.js && electron --noDevServer .",
"start": "node dist/server/index.js",
"start:dev": "node --inspect dist/server/index.js",
"start:break": "node --inspect-brk dist/server/index.js",
"build-client": "yarn webpack --config webpack.config.js --mode production",
"build-server": "yarn tsc -p server/tsconfig.json",
"build-watch": "yarn tsc -p server/tsconfig.json --watch & webpack --config webpack.config.js --watch --mode development",
"build": "yarn build-server && yarn build-client",
"unit": "jest",
"test": "yarn unit",
"release": "standard-version",
"prepareChangelog": "standard-version --prerelease",
"watch": "jest --watch",
"validate:dependencies": "yarn audit && yarn license-validate",
"license-validate": "node-license-validator -p -d --allow-licenses MIT MIT/X11 BSD BSD-3-Clause BSD-2-Clause ISC Apache Apache-2.0 WTFPL CC-BY-3.0 CC0-1.0 Unlicense --allow-packages cycle"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,ts,css,json,md}": [
"prettier --write",
"git add"
]
},
"dependencies": {
"casparcg-connection": "^4.9.0",
"classnames": "^2.2.6",
"express": "^4.17.1",
"express-csp-header": "^3.0.0",
"http": "^0.0.0",
"node-emberplus": "https://github.com/olzzon/node-emberplus.git#feat/export-ber",
"nouislider-react": "^3.3.7",
"osc": "https://github.com/olzzon/tv2-osc.js-no-serialport.git",
"react": "^16.1.1",
"react-dom": "^16.10.1",
"react-redux": "^7.1.1",
"react-select": "^3.0.6",
"react-slider": "^1.0.3",
"reactjs-popup": "^1.5.0",
"redux": "^4.0.5",
"socket.io": "^2.3.0",
"socket.io-client": "^2.3.0",
"standard-version": "^7.1.0",
"web-midi-api": "^2.0.7",
"webmidi": "^2.5.1",
"winston": "^3.2.1",
"winston-elasticsearch": "^0.8.5"
},
"devDependencies": {
"@babel/core": "^7.8.7",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
"@babel/plugin-syntax-object-rest-spread": "^7.8.3",
"@babel/preset-env": "^7.8.7",
"@babel/preset-react": "^7.8.3",
"@babel/preset-typescript": "^7.8.3",
"@types/hoist-non-react-statics": "^3.3.1",
"@types/jest": "^25.1.4",
"@types/rc-slider": "^8.6.5",
"@types/react-redux": "^7.1.4",
"@types/react-select": "^3.0.4",
"@types/react-test-renderer": "^16.9.1",
"@types/socket.io-client": "^1.4.32",
"babel-jest": "^25.1.0",
"babel-loader": "^8.0.6",
"css-loader": "^3.4.2",
"file-loader": "^4.2.0",
"html-webpack-plugin": "^3.2.0",
"husky": "^4.2.5",
"jest": "^25.1.0",
"lint-staged": "^10.1.7",
"node-license-validator": "^1.3.0",
"prettier": "^2.0.5",
"react-test-renderer": "^16.13.0",
"style-loader": "^1.0.1",
"ts-jest": "^25.2.1",
"ts-loader": "^6.2.1",
"ts-node": "^8.7.0",
"tslint": "^6.1.1",
"typescript": "^3.7.5",
"webpack": "^4.41.0",
"webpack-cli": "^3.3.10"
},
"resolutions": {
"minimist": "^1.2.5"
}
}
20 changes: 20 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"extends": [
"tslint-plugin-prettier",
"tslint:latest",
"tslint-config-prettier"
],
"rules": {
"prettier": true,
"interface-name": false,
"object-literal-sort-keys": false,
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-leading-underscore",
"require-const-for-all-caps"
],
"no-bitwise": false
}
}
Loading

0 comments on commit ac99595

Please sign in to comment.