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.
- package/README.md +29 -30
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +252 -0
- package/package.json +51 -36
- package/LICENSE +0 -21
- package/cli.js +0 -40
- package/create/CONTRIBUTING.md +0 -47
- package/create/README.md +0 -55
- package/create/cli.js +0 -58
- package/create/cli.test.js +0 -37
- package/create/createExtension.js +0 -35
- package/create/messages/directoryHasConflicts.js +0 -38
- package/create/messages/index.js +0 -16
- package/create/messages/programHelp.js +0 -26
- package/create/messages/successfullInstall.js +0 -24
- package/create/package.json +0 -38
- package/create/steps/abortProjectAndClean.js +0 -40
- package/create/steps/cleanTemplateFolder.js +0 -26
- package/create/steps/createDirectory.js +0 -45
- package/create/steps/getTemplatePath.js +0 -23
- package/create/steps/importExternalTemplate.js +0 -41
- package/create/steps/importLocalTemplate.js +0 -33
- package/create/steps/installDependencies.js +0 -61
- package/create/steps/writePackageJson.js +0 -64
- package/create/templates/standard/.gitignore +0 -21
- package/create/templates/standard/README.md +0 -14
- package/create/templates/standard/package.json +0 -26
- package/create/templates/standard/template/.gitignore +0 -21
- package/create/templates/standard/template/README.md +0 -0
- package/create/templates/standard/template/manifest.json +0 -31
- package/create/templates/standard/template/newtab/newtab.html +0 -24
- package/create/templates/standard/template/newtab/newtab.js +0 -1
- package/create/templates/standard/template/newtab/styles.css +0 -43
- package/create/templates/standard/template/popup/popup.css +0 -26
- package/create/templates/standard/template/popup/popup.html +0 -15
- package/create/templates/standard/template/popup/popup.js +0 -1
- package/create/templates/standard/template/public/icon/test_16.png +0 -0
- package/create/templates/standard/template/public/icon/test_32.png +0 -0
- package/create/templates/standard/template/public/icon/test_48.png +0 -0
- package/create/templates/standard/template/public/icon/test_64.png +0 -0
- package/create/templates/standard/template/public/puzzle.png +0 -0
- package/create/templates/standard/template.json +0 -6
- package/create/yarn.lock +0 -4462
- package/develop/CONTRIBUTING.md +0 -47
- package/develop/README.md +0 -55
- package/develop/module.js +0 -16
- package/develop/package.json +0 -44
- package/develop/start/cli.js +0 -47
- package/develop/start/cli.test.js +0 -45
- package/develop/start/config/browserSwitch.js +0 -31
- package/develop/start/config/compiler.js +0 -47
- package/develop/start/config/server.js +0 -17
- package/develop/start/messages/index.js +0 -14
- package/develop/start/messages/manifestNotFound.js +0 -22
- package/develop/start/messages/programHelp.js +0 -49
- package/develop/start/resolve/resolveExtensionPath.js +0 -45
- package/develop/start/startExtension.js +0 -69
- package/develop/start/steps/resolveManifest.js +0 -44
- package/develop/start/steps/startWebpack.js +0 -46
- package/develop/yarn.lock +0 -7165
- package/messages.js +0 -57
- package/preinstall.sh +0 -2
- package/reservedKeywords.js +0 -17
package/messages.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
const {log} = require('log-md')
|
|
2
|
-
|
|
3
|
-
function help () {
|
|
4
|
-
log(`
|
|
5
|
-
# Help center for the extension-create program
|
|
6
|
-
|
|
7
|
-
## Usage: \`extension-create [command] [options]\`
|
|
8
|
-
|
|
9
|
-
**Note:** If you are looking for a specific list of options,
|
|
10
|
-
all high-level commands offer their own \`--help\` file with
|
|
11
|
-
information about usage and a list of command flags available.
|
|
12
|
-
|
|
13
|
-
For example:
|
|
14
|
-
|
|
15
|
-
\`extension-create create --help\`
|
|
16
|
-
outputs information about the \`create\` command.
|
|
17
|
-
|
|
18
|
-
## Options available
|
|
19
|
-
|
|
20
|
-
\`extension-create create <extension-name>\`
|
|
21
|
-
Creates a new extension from template. The "create" command
|
|
22
|
-
is optional and can be ommitted.
|
|
23
|
-
|
|
24
|
-
\`extension-create start <extension-path>\`
|
|
25
|
-
Starts a new browser instance with the target extension loaded
|
|
26
|
-
and set up as a modern web app including esnext and module support.
|
|
27
|
-
|
|
28
|
-
\`extension-create --help\`
|
|
29
|
-
This command ;) Outputs a help file with key command options.
|
|
30
|
-
|
|
31
|
-
Feels something is wrong? Help by reporting a bug:
|
|
32
|
-
https://github.com/cezaraugusto/extension-create/issues/new
|
|
33
|
-
`)
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function unsupportedNodeVersion () {
|
|
37
|
-
log(`
|
|
38
|
-
You are using an unsupported Node version (${process.version}).
|
|
39
|
-
|
|
40
|
-
Please update to a version higher than 10.
|
|
41
|
-
`)
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function noURLWithoutStart (argument) {
|
|
45
|
-
log(`
|
|
46
|
-
The default \`create\` command does not accept URLs.
|
|
47
|
-
Are you forgetting a \`start\` command? Maybe:
|
|
48
|
-
|
|
49
|
-
npx extension-create \`start\` ${argument}
|
|
50
|
-
`)
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
module.exports = {
|
|
54
|
-
help,
|
|
55
|
-
unsupportedNodeVersion,
|
|
56
|
-
noURLWithoutStart
|
|
57
|
-
}
|
package/preinstall.sh
DELETED
package/reservedKeywords.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// List of words you can't use as a name for your project
|
|
2
|
-
// because they conflict with either current or future program commands
|
|
3
|
-
const reservedKeywords = [
|
|
4
|
-
'build',
|
|
5
|
-
'eject',
|
|
6
|
-
'start',
|
|
7
|
-
'test',
|
|
8
|
-
'open',
|
|
9
|
-
'deploy'
|
|
10
|
-
]
|
|
11
|
-
|
|
12
|
-
module.exports = function () {
|
|
13
|
-
const commands = process.argv
|
|
14
|
-
|
|
15
|
-
return reservedKeywords
|
|
16
|
-
.some((word, index) => word === commands[index])
|
|
17
|
-
}
|