From d60203186a5fad14f5532e0578b6ff011392b748 Mon Sep 17 00:00:00 2001 From: lxieyang Date: Wed, 22 Apr 2020 14:45:20 -0400 Subject: [PATCH] fixed #4. thanks --- README.md | 6 ++++++ package-lock.json | 29 ++++++++++++++++++++++++++++- package.json | 3 ++- 3 files changed, 36 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 20da3946a..0dbf3993b 100755 --- a/README.md +++ b/README.md @@ -88,6 +88,12 @@ and on your `src/manifest.json`: } ``` +## Intelligent Code Completion + +Thanks to [@hudidit](https://github.com/lxieyang/chrome-extension-boilerplate-react/issues/4)'s kind suggestions, this boilerplate supports chrome-specific intelligent code completion using [@types/chrome](https://www.npmjs.com/package/@types/chrome). For example: + +![intellisense](https://lxieyang.github.io/static/chrome-extension-boilerplate-dev-intellisense-ed9e7c485d3eaf66417e5da4748e2c97.png) + ## Packing After the development of your extension run the command diff --git a/package-lock.json b/package-lock.json index d775a2ee9..0e75ac730 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "chrome-extension-boilerplate-react", - "version": "2.4.2", + "version": "2.5.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -1160,6 +1160,15 @@ "integrity": "sha512-/+CRPXpBDpo2RK9C68N3b2cOvO0Cf5B9aPijHsoDQTHivnGSObdOF2BRQOYjojWTDy6nQvMjmqRXIxH55VjxxA==", "dev": true }, + "@types/chrome": { + "version": "0.0.104", + "resolved": "https://registry.npmjs.org/@types/chrome/-/chrome-0.0.104.tgz", + "integrity": "sha512-NDq+Vpphs5XT7IXrIHJcy27Rvf09Mes3XNsfpP2yOXUk6YiEU1QRcSLjj/A+y5jyq/kpUwC5shNET2jFeWAqEw==", + "requires": { + "@types/filesystem": "*", + "@types/har-format": "*" + } + }, "@types/color-name": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", @@ -1172,6 +1181,19 @@ "integrity": "sha512-EaObqwIvayI5a8dCzhFrjKzVwKLxjoG9T6Ppd5CEo07LRKfQ8Yokw54r5+Wq7FaBQ+yXRvQAYPrHwya1/UFt9g==", "dev": true }, + "@types/filesystem": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/filesystem/-/filesystem-0.0.29.tgz", + "integrity": "sha512-85/1KfRedmfPGsbK8YzeaQUyV1FQAvMPMTuWFQ5EkLd2w7szhNO96bk3Rh/SKmOfd9co2rCLf0Voy4o7ECBOvw==", + "requires": { + "@types/filewriter": "*" + } + }, + "@types/filewriter": { + "version": "0.0.28", + "resolved": "https://registry.npmjs.org/@types/filewriter/-/filewriter-0.0.28.tgz", + "integrity": "sha1-wFTor02d11205jq8dviFFocU1LM=" + }, "@types/glob": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.1.tgz", @@ -1183,6 +1205,11 @@ "@types/node": "*" } }, + "@types/har-format": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@types/har-format/-/har-format-1.2.4.tgz", + "integrity": "sha512-iUxzm1meBm3stxUMzRqgOVHjj4Kgpgu5w9fm4X7kPRfSgVRzythsucEN7/jtOo8SQzm+HfcxWWzJS0mJDH/3DQ==" + }, "@types/minimatch": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz", diff --git a/package.json b/package.json index 7293f2797..ce0401754 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chrome-extension-boilerplate-react", - "version": "2.4.2", + "version": "2.5.0", "description": "A chrome extension boilerplate built with React 16 and Webpack 4", "license": "MIT", "repository": { @@ -14,6 +14,7 @@ }, "dependencies": { "@hot-loader/react-dom": "^16.13.0", + "@types/chrome": "0.0.104", "@types/react": "^16.9.26", "react": "^16.13.1", "react-dom": "^16.13.1",