extension-create 0.5.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/README.md +29 -30
  2. package/dist/cli.d.ts +1 -0
  3. package/dist/cli.js +252 -0
  4. package/package.json +51 -36
  5. package/LICENSE +0 -21
  6. package/cli.js +0 -40
  7. package/create/CONTRIBUTING.md +0 -47
  8. package/create/README.md +0 -55
  9. package/create/cli.js +0 -58
  10. package/create/cli.test.js +0 -37
  11. package/create/createExtension.js +0 -35
  12. package/create/messages/directoryHasConflicts.js +0 -38
  13. package/create/messages/index.js +0 -16
  14. package/create/messages/programHelp.js +0 -26
  15. package/create/messages/successfullInstall.js +0 -24
  16. package/create/package.json +0 -38
  17. package/create/steps/abortProjectAndClean.js +0 -40
  18. package/create/steps/cleanTemplateFolder.js +0 -26
  19. package/create/steps/createDirectory.js +0 -45
  20. package/create/steps/getTemplatePath.js +0 -23
  21. package/create/steps/importExternalTemplate.js +0 -41
  22. package/create/steps/importLocalTemplate.js +0 -33
  23. package/create/steps/installDependencies.js +0 -61
  24. package/create/steps/writePackageJson.js +0 -64
  25. package/create/templates/standard/.gitignore +0 -21
  26. package/create/templates/standard/README.md +0 -14
  27. package/create/templates/standard/package.json +0 -26
  28. package/create/templates/standard/template/.gitignore +0 -21
  29. package/create/templates/standard/template/README.md +0 -0
  30. package/create/templates/standard/template/manifest.json +0 -31
  31. package/create/templates/standard/template/newtab/newtab.html +0 -24
  32. package/create/templates/standard/template/newtab/newtab.js +0 -1
  33. package/create/templates/standard/template/newtab/styles.css +0 -43
  34. package/create/templates/standard/template/popup/popup.css +0 -26
  35. package/create/templates/standard/template/popup/popup.html +0 -15
  36. package/create/templates/standard/template/popup/popup.js +0 -1
  37. package/create/templates/standard/template/public/icon/test_16.png +0 -0
  38. package/create/templates/standard/template/public/icon/test_32.png +0 -0
  39. package/create/templates/standard/template/public/icon/test_48.png +0 -0
  40. package/create/templates/standard/template/public/icon/test_64.png +0 -0
  41. package/create/templates/standard/template/public/puzzle.png +0 -0
  42. package/create/templates/standard/template.json +0 -6
  43. package/create/yarn.lock +0 -4462
  44. package/develop/CONTRIBUTING.md +0 -47
  45. package/develop/README.md +0 -55
  46. package/develop/module.js +0 -16
  47. package/develop/package.json +0 -44
  48. package/develop/start/cli.js +0 -47
  49. package/develop/start/cli.test.js +0 -45
  50. package/develop/start/config/browserSwitch.js +0 -31
  51. package/develop/start/config/compiler.js +0 -47
  52. package/develop/start/config/server.js +0 -17
  53. package/develop/start/messages/index.js +0 -14
  54. package/develop/start/messages/manifestNotFound.js +0 -22
  55. package/develop/start/messages/programHelp.js +0 -49
  56. package/develop/start/resolve/resolveExtensionPath.js +0 -45
  57. package/develop/start/startExtension.js +0 -69
  58. package/develop/start/steps/resolveManifest.js +0 -44
  59. package/develop/start/steps/startWebpack.js +0 -46
  60. package/develop/yarn.lock +0 -7165
  61. package/messages.js +0 -57
  62. package/preinstall.sh +0 -2
  63. package/reservedKeywords.js +0 -17
@@ -1,26 +0,0 @@
1
- {
2
- "license": "MIT",
3
- "repository": {
4
- "type": "git",
5
- "url": "https://github.com/cezaraugusto/standard-template.git",
6
- "directory": "packages/standard-template"
7
- },
8
- "name": "standard-template",
9
- "description": "The standard template for extension-create.",
10
- "version": "0.0.0",
11
- "author": {
12
- "name": "Cezar Augusto",
13
- "email": "boss@cezaraugusto.net",
14
- "url": "https://cezaraugusto.net"
15
- },
16
- "files": [
17
- "template",
18
- "template.json"
19
- ],
20
- "keywords": [
21
- "extension-create",
22
- "browser-extension",
23
- "web-extension",
24
- "template"
25
- ]
26
- }
@@ -1,21 +0,0 @@
1
- # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2
-
3
- # dependencies
4
- /node_modules
5
-
6
- # testing
7
- /coverage
8
-
9
- # production
10
- /dist
11
-
12
- # misc
13
- .DS_Store
14
- .env.local
15
- .env.development.local
16
- .env.test.local
17
- .env.production.local
18
-
19
- npm-debug.log*
20
- yarn-debug.log*
21
- yarn-error.log*
File without changes
@@ -1,31 +0,0 @@
1
- {
2
- "manifest_version": 2,
3
- "version": "1.0",
4
- "name": "Welcome Extension",
5
- "description": "An extension to welcome you!",
6
- "icons": {
7
- "16": "public/icon/test_16.png",
8
- "32": "public/icon/test_32.png",
9
- "48": "public/icon/test_48.png",
10
- "64": "public/icon/test_64.png"
11
- },
12
- "permissions": [
13
- "tabs"
14
- ],
15
- "web_accessible_resources": [
16
- "public/*"
17
- ],
18
- "browser_action": {
19
- "default_icon": {
20
- "16": "public/icon/test_16.png",
21
- "32": "public/icon/test_32.png",
22
- "48": "public/icon/test_48.png",
23
- "64": "public/icon/test_64.png"
24
- },
25
- "default_popup": "popup/popup.html",
26
- "default_title": "Welcome Extension"
27
- },
28
- "chrome_url_overrides": {
29
- "newtab": "newtab/newtab.html"
30
- }
31
- }
@@ -1,24 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <title>New tab page</title>
6
- <link rel="preconnect" href="https://fonts.gstatic.com">
7
- <link href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@1,900&display=swap" rel="stylesheet">
8
- <link rel="stylesheet" href="./styles.css">
9
- </head>
10
- <body>
11
- <div class="hello-box">
12
- <header>
13
- <img src="../public/puzzle.png" alt="A puzzle icon">
14
- <h1>Welcome to your extension</h1>
15
- <p class="description loading">Browser extensions are 🙌🙌🙌</p>
16
- </header>
17
- <p>
18
- This page is being watched, and so are all entries in manifest.json.
19
- Happy hacking!!
20
- </p>
21
- </div>
22
- </body>
23
- <script src="./newtab.js"></script>
24
- </html>
@@ -1 +0,0 @@
1
- console.log('newtab script loaded')
@@ -1,43 +0,0 @@
1
- body {
2
- font-family: 'Lato', sans-serif;
3
- font-size: 32px;
4
- line-height: 1.4;
5
- text-align: center;
6
- height: 100vh;
7
- display: flex;
8
- color: #1b2d45;
9
- background-color: #f2f4f6;
10
- margin: 0;
11
- }
12
-
13
- .hello-box {
14
- background-color: #fff;
15
- border-radius: 4px;
16
- max-width: 600px;
17
- padding: 40px;
18
- margin: auto;
19
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
20
- }
21
-
22
- img {
23
- display: block;
24
- margin: auto;
25
- width: 150px;
26
- }
27
-
28
- h1 {
29
- font-size: 2.5rem;
30
- line-height: 1.75rem;
31
- color: #00214d;
32
- }
33
-
34
-
35
- p {
36
- font-family: 'Courier New';
37
- font-size: 1.25rem;
38
- color: #94a1b2;
39
- }
40
-
41
- header + p {
42
- margin: 1rem 0;
43
- }
@@ -1,26 +0,0 @@
1
- body {
2
- background: #00214d;
3
- width: 300px;
4
- height: 300px;
5
- display: flex;
6
- }
7
-
8
- main {
9
- display: flex;
10
- align-items: center;
11
- justify-content: center;
12
- flex-direction: column;
13
- text-align: center;
14
- padding: 40px 20px;
15
- }
16
-
17
- h1 {
18
- font-size: 2.5rem;
19
- line-height: 1;
20
- color: #27FBB7;
21
- margin: auto;
22
- }
23
-
24
- div {
25
- font-size: 4rem;
26
- }
@@ -1,15 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <title>Popup page</title>
6
- <link rel="stylesheet" href="./popup.css">
7
- </head>
8
- <body>
9
- <main>
10
- <h1>Your extension popup</h1>
11
- <div>🧩</div>
12
- </main>
13
- </body>
14
- <script src="./popup.js"></script>
15
- </html>
@@ -1 +0,0 @@
1
- console.log('popup script loaded')
@@ -1,6 +0,0 @@
1
- {
2
- "package": {
3
- "devDependencies": {
4
- }
5
- }
6
- }