Skip to content

Commit

Permalink
feat: move create-electron-app into forge
Browse files Browse the repository at this point in the history
  • Loading branch information
VerteDinde committed Oct 25, 2022
1 parent 36dcdd0 commit 359d616
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ node_modules
packages/*/*/doc
packages/*/*/index.ts
packages/**/bad.js
packages/externals/create-electron-app/src/*
tmpl
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ packages/*/*/index.ts
packages/*/*/README.md
packages/*/*/tsconfig.json
packages/api/core/test/fixture/bad_external_forge_config/bad.js
packages/externals/create-electron-app/src/*
packages/plugin/webpack/test/**/.webpack
15 changes: 15 additions & 0 deletions packages/externals/create-electron-app/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "create-electron-app",
"version": "1.0.0",
"description": "Create Electron App",
"main": "src/index.js",
"typings": "../../api/cli/src/electron-forge-init.ts",
"author": "Samuel Attard",
"license": "MIT",
"dependencies": {
"@electron-forge/cli": "latest"
},
"bin": {
"create-electron-app": "./src/index"
}
}
3 changes: 3 additions & 0 deletions packages/externals/create-electron-app/src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node

require('@electron-forge/cli/dist/electron-forge-init.js');
3 changes: 3 additions & 0 deletions packages/externals/create-electron-app/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env ts-node

require('@electron-forge/cli/dist/electron-forge-init.js');

0 comments on commit 359d616

Please sign in to comment.