Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Remove all CLI's from compile #261

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,26 +215,6 @@ In this example `.compilerc`, JavaScript files won't be compiled:

By *far*, the easiest way to do this is via using [electron-forge](https://github.com/electron-userland/electron-forge/). electron-forge handles every aspect of packaging your app on all platforms and helping you publish it. Unless you have a very good reason, you should be using it!

## How can I precompile my code for release-time? (the hard way)

electron-compile comes with a command-line application to pre-create a cache for you.

```sh
Usage: electron-compile --appdir [root-app-dir] paths...

Options:
-a, --appdir The top-level application directory (i.e. where your
package.json is)
-v, --verbose Print verbose information
-h, --help Show help
```

Run `electron-compile` on all of your application assets, even if they aren't strictly code (i.e. your static assets like PNGs). electron-compile will recursively walk the given directories.

```sh
electron-compile --appDir /path/to/my/app ./src ./static
```

### But I use Grunt / Gulp / I want to do Something Interesting

Compilation also has its own API, check out the [documentation](http://electron.github.io/electron-compile/docs/) for more information.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,13 @@
"dependencies": {
"@paulcbetts/mime-types": "^2.1.10",
"@types/node": "^7.0.12",
"btoa": "^1.1.2",
"debug": "^2.5.1",
"lru-cache": "^4.0.1",
"mkdirp": "^0.5.1",
"pify": "^2.3.0",
"rimraf": "^2.5.4",
"rxjs": "^5.1.1",
"spawn-rx": "^2.0.3",
"yargs": "^4.8.1"
"spawn-rx": "^2.0.3"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we can get rid of this too.

},
"devDependencies": {
"asar": "^0.12.1",
Expand Down
102 changes: 0 additions & 102 deletions src/cli.js

This file was deleted.

163 changes: 0 additions & 163 deletions src/packager-cli.js

This file was deleted.

Loading