Skip to content

Commit 5c63e61

Browse files
authored
Merge pull request #7 from fxnoob/jsdoc
Jsdoc
2 parents c33330b + e4f1707 commit 5c63e61

File tree

4 files changed

+260
-6
lines changed

4 files changed

+260
-6
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
node_modules/
33
babel
44
babelscripts@1.0.0
5-
dist/
5+
dist/
6+
out/

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
"version": "1.0.0",
44
"description": "",
55
"main": "index.js",
6+
"homepage": "https://fxnoob.github.io/chrome-extension-boilerplate",
67
"scripts": {
78
"start": "webpack-dev-server --config ./webpack.config.js --mode development",
89
"dev": "webpack --watch --progress --colors --config webpack.config.js --mode=development",
910
"build": "webpack --progress --colors --config webpack.config.js --mode=production",
11+
"jsdoc": "jsdoc src -r",
12+
"deploy_jsdoc": "yarn jsdoc && gh-pages -d out",
1013
"prettier_check_src": "prettier --check src/**/*.{js,jsx}",
1114
"prettier_check_popup": "prettier --check src/**/*.{js,jsx}",
1215
"prettier_check_option": "prettier --check src/**/*.{js,jsx}",
@@ -32,8 +35,12 @@
3235
"babel-loader": "^8.0.6",
3336
"copy-webpack-plugin": "^5.0.4",
3437
"file-loader": "^4.2.0",
38+
"gh-pages": "^2.1.1",
39+
"husky": "^3.0.9",
3540
"image-webpack-loader": "^5.0.0",
41+
"jsdoc": "^3.6.3",
3642
"prettier": "1.18.2",
43+
"pretty-quick": "^2.0.0",
3744
"react-hot-loader": "^4.12.10",
3845
"webpack": "^4.39.1",
3946
"webpack-cli": "^3.3.6",
@@ -44,8 +51,6 @@
4451
"@babel/runtime": "^7.5.5",
4552
"@material-ui/core": "^4.3.3",
4653
"@material-ui/icons": "^4.2.1",
47-
"husky": "^3.0.9",
48-
"pretty-quick": "^2.0.0",
4954
"react": "^16.8.6",
5055
"react-dom": "^16.8.6"
5156
}

src/background.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ import "@babel/polyfill";
22

33
let AppInitState = 0; // it means app is off on startup
44

5+
/**
6+
* Main extension functionality
7+
*
8+
* @class Main
9+
*/
510
class Main {
611
constructor() {}
712
popUpClickSetup() {
@@ -13,11 +18,23 @@ class Main {
1318
});
1419
}
1520

21+
/**
22+
* toggle app
23+
*
24+
* @method
25+
* @memberof Main
26+
*/
1627
toggleApp = () => {
1728
AppInitState = AppInitState ? 0 : 1;
1829
return AppInitState;
1930
};
2031

32+
/**
33+
* stop app
34+
*
35+
* @method
36+
* @memberof Main
37+
*/
2138
stopApp = () => {
2239
AppInitState = 0;
2340
};

0 commit comments

Comments
 (0)