|
4 | 4 | "description": "GitHub Notifications on your menu bar.", |
5 | 5 | "main": "main.js", |
6 | 6 | "scripts": { |
7 | | - "build-js": "npm run mkdir -p build/js && browserify -t reactify src/js/app.js -o build/js/app.js", |
| 7 | + "build-js": "mkdir -p build/js && browserify -t reactify src/js/app.js -o build/js/app.js", |
8 | 8 | "build": "npm install && mkdir -p build/js && grunt build && npm run build-js", |
9 | 9 | "watch-js": "watchify -t reactify src/js/app.js -o build/js/app.js -v", |
10 | 10 | "watch": "grunt build && npm build && npm run watch-js | grunt watch", |
11 | 11 | "start": "electron .", |
12 | 12 | "dist": "rm -rf Gitify.app/ && electron-packager . Gitify --platform=darwin --arch=x64 --version=0.27.1 --icon=images/app-icon.icns --prune --ignore=src", |
13 | | - "test": "jsxhint --reporter node_modules/jshint-stylish/stylish.js 'src/**/*.js', 'index.js' --exclude 'Gruntfile.js'" |
| 13 | + "test": "jsxhint --reporter node_modules/jshint-stylish/stylish.js 'src/**/*.js', 'index.js' --exclude 'Gruntfile.js' && jscs 'src/js/' && jest", |
| 14 | + "coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js" |
| 15 | + }, |
| 16 | + "jshintConfig": { |
| 17 | + "browserify": true, |
| 18 | + "unused": true, |
| 19 | + "undef": true, |
| 20 | + "globals": { |
| 21 | + "console": false |
| 22 | + } |
| 23 | + }, |
| 24 | + "jscsConfig": { |
| 25 | + "esprima": "esprima-fb", |
| 26 | + "disallowMultipleVarDecl": "exceptUndefined", |
| 27 | + "validateQuoteMarks": { |
| 28 | + "mark": "'", |
| 29 | + "escape": false |
| 30 | + }, |
| 31 | + "validateParameterSeparator": ", ", |
| 32 | + "validateIndentation": 2, |
| 33 | + "requireSpacesInFunction": { |
| 34 | + "beforeOpeningRoundBrace": true, |
| 35 | + "beforeOpeningCurlyBrace": true |
| 36 | + }, |
| 37 | + "requireSpacesInConditionalExpression": { |
| 38 | + "afterTest": true, |
| 39 | + "beforeConsequent": true, |
| 40 | + "afterConsequent": true, |
| 41 | + "beforeAlternate": true |
| 42 | + }, |
| 43 | + "disallowTrailingWhitespace": true, |
| 44 | + "maximumLineLength": 100, |
| 45 | + "requireCurlyBraces": true, |
| 46 | + "disallowMixedSpacesAndTabs": true, |
| 47 | + "requireSpaceBeforeBinaryOperators": true, |
| 48 | + "safeContextKeyword": [ |
| 49 | + "self" |
| 50 | + ], |
| 51 | + "disallowMultipleLineBreaks": true, |
| 52 | + "disallowMultipleLineStrings": true, |
| 53 | + "disallowSpaceAfterObjectKeys": true, |
| 54 | + "disallowNewlineBeforeBlockStatements": true, |
| 55 | + "disallowTrailingComma": true, |
| 56 | + "requireCommaBeforeLineBreak": true, |
| 57 | + "requireSpaceBetweenArguments": true, |
| 58 | + "requireSpaceBeforeBlockStatements": true, |
| 59 | + "requireSpaceBeforeObjectValues": true, |
| 60 | + "requireSpacesInForStatement": true |
| 61 | + }, |
| 62 | + "jest": { |
| 63 | + "scriptPreprocessor": "src/js/__tests__/preprocessor.js", |
| 64 | + "collectCoverage": true, |
| 65 | + "collectCoverageOnlyFrom": { |
| 66 | + "src/js/actions/actions.js": true, |
| 67 | + "src/js/components/login.js": true, |
| 68 | + "src/js/components/navigation.js": true, |
| 69 | + "src/js/components/notification.js": true, |
| 70 | + "src/js/components/notifications.js": true, |
| 71 | + "src/js/components/repository.js": true, |
| 72 | + "src/js/components/footer.js": true, |
| 73 | + "src/js/stores/auth.js": true, |
| 74 | + "src/js/stores/notifications.js": true |
| 75 | + }, |
| 76 | + "unmockedModulePathPatterns": [ |
| 77 | + "node_modules/react", |
| 78 | + "node_modules/react-tools", |
| 79 | + "node_modules/underscore" |
| 80 | + ], |
| 81 | + "testPathDirs": [ |
| 82 | + "src/js/__tests__/" |
| 83 | + ], |
| 84 | + "testPathIgnorePatterns": [ |
| 85 | + "src/js/__tests__/preprocessor.js", |
| 86 | + "src/js/__tests__/__mocks__/", |
| 87 | + "node_modules/" |
| 88 | + ] |
14 | 89 | }, |
15 | 90 | "repository": { |
16 | 91 | "type": "git", |
|
36 | 111 | "octicons": "=2.2.0", |
37 | 112 | "react": "=0.13.3", |
38 | 113 | "react-router": "=0.13.3", |
| 114 | + "react-tools": "=0.13.3", |
39 | 115 | "reactify": "=1.1.1", |
40 | 116 | "reflux": "=0.2.7", |
41 | 117 | "reloading": "0.0.6", |
|
46 | 122 | "devDependencies": { |
47 | 123 | "electron-packager": "=4.1.2", |
48 | 124 | "electron-prebuilt": "=0.27.1", |
| 125 | + "esprima-fb": "=15001.1.0-dev-harmony-fb", |
49 | 126 | "grunt": "=0.4.5", |
50 | 127 | "grunt-contrib-clean": "=0.6.0", |
51 | 128 | "grunt-contrib-copy": "=0.8.0", |
52 | 129 | "grunt-contrib-less": "=1.0.1", |
53 | 130 | "grunt-contrib-watch": "=0.6.1", |
| 131 | + "jest-cli": "=0.4.5", |
| 132 | + "jscs": "^1.13.1", |
54 | 133 | "jshint-stylish": "=1.0.2", |
55 | 134 | "jsxhint": "=0.15.0", |
56 | 135 | "less": "=2.5.1" |
|
0 commit comments