Setup CI tests (#100)
* use @xarc/xrun to streamline tasks in an imperative manner * add lint-staged/husky for git hook tasks * run prettier across all files * fixing tests * add ci test workflow * add a ci workflow * remove precommit in favor of husky * add .prettierrc.js * reformat with prettier
This commit is contained in:
46
package.json
46
package.json
@@ -1,19 +1,33 @@
|
||||
{
|
||||
"name": "chrome-wakatime",
|
||||
"scripts": {
|
||||
"test": "jest --verbose --coverage && mocha --compilers js:mocha-traceur tests/**/*.spec.js",
|
||||
"test-react": "jest --verbose --coverage",
|
||||
"test-js": "node_modules/.bin/phantomjs tests/run.js",
|
||||
"start": "npm install && bower install && gulp",
|
||||
"test": "clap test",
|
||||
"start": "clap build",
|
||||
"gulp": "gulp",
|
||||
"watch": "gulp watch",
|
||||
"lint": "jsxhint --jsx-only .",
|
||||
"postinstall": "gulp postinstall",
|
||||
"lint": "clap lint",
|
||||
"postinstall": "clap postinstall",
|
||||
"validate": "npm ls"
|
||||
},
|
||||
"pre-commit": [
|
||||
"lint"
|
||||
],
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged",
|
||||
"pre-push": "npm test"
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{js|jsx|ts|tsx}": [
|
||||
"eslint",
|
||||
"prettier --write",
|
||||
"git add"
|
||||
],
|
||||
"*.json": [
|
||||
"prettier --write"
|
||||
]
|
||||
},
|
||||
"jest": {
|
||||
"verbose": true,
|
||||
"testURL": "http://localhost/",
|
||||
"testFileExtensions": [
|
||||
"jest.js"
|
||||
],
|
||||
@@ -25,25 +39,35 @@
|
||||
},
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"@types/node": "^14.14.20",
|
||||
"@xarc/run": "^1.0.4",
|
||||
"babel-jest": "^22.1.0",
|
||||
"bower": "^1.7.9",
|
||||
"chai": "^4.1.2",
|
||||
"del": "^3.0.0",
|
||||
"eslint": "^7.17.0",
|
||||
"gulp": "^3.9.1",
|
||||
"husky": "^4.3.7",
|
||||
"jest-cli": "^22.1.4",
|
||||
"jsdom": "^16.4.0",
|
||||
"jshint": "^2.9.2",
|
||||
"jsxhint": "^0.15.1",
|
||||
"laravel-elixir": "^6.0.0-17",
|
||||
"laravel-elixir-browserify-official": "^0.1.3",
|
||||
"lint-staged": "^10.5.3",
|
||||
"mocha": "^5.0.0",
|
||||
"mocha-sinon": "^2.0.0",
|
||||
"mocha-traceur": "^2.1.0",
|
||||
"phantomjs": "^2.1.7",
|
||||
"popper.js": "^1.14.6",
|
||||
"precommit-hook": "^3.0.0",
|
||||
"prettier": "^2.2.1",
|
||||
"rimraf": "^3.0.2",
|
||||
"sinon": "^4.2.2",
|
||||
"sinon-chai": "^2.8.0",
|
||||
"sinon-chrome": "^2.2.4",
|
||||
"traceur": "^0.0.111"
|
||||
"traceur": "^0.0.111",
|
||||
"ts-node": "^9.1.1",
|
||||
"typescript": "^4.1.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"bootstrap": "^4.0.0",
|
||||
|
||||
Reference in New Issue
Block a user