Skip to content

Commit

Permalink
feat(initializer): add Forge as a devDependency to new Electron projects
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #294
  • Loading branch information
malept authored and MarshallOfSound committed Aug 17, 2017
1 parent bb33d9b commit 6d2cf4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/init/init-npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import yarnOrNpm from '../util/yarn-or-npm';
const d = debug('electron-forge:init:npm');

export const deps = ['electron-compile'];
export const devDeps = ['babel-preset-env', 'babel-preset-react', 'babel-plugin-transform-async-to-generator'];
export const devDeps = ['babel-preset-env', 'babel-preset-react', 'babel-plugin-transform-async-to-generator', 'electron-forge'];
export const exactDevDeps = ['electron-prebuilt-compile'];
export const standardDeps = ['standard'];
export const airbnbDeps = ['eslint@^3', 'eslint-config-airbnb@^15', 'eslint-plugin-import@^2',
Expand Down
1 change: 1 addition & 0 deletions test/slow/api_spec_slow.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ describe(`electron-forge API (with installer=${installer.substr(12)})`, () => {
expect(await fs.pathExists(path.resolve(dir, 'node_modules')), 'node_modules folder should exist').to.equal(true);
expect(await fs.pathExists(path.resolve(dir, 'node_modules/electron-prebuilt-compile')), 'electron-prebuilt-compile should exist').to.equal(true);
expect(await fs.pathExists(path.resolve(dir, 'node_modules/babel-core')), 'babel-core should exist').to.equal(true);
expect(await fs.pathExists(path.resolve(dir, 'node_modules/electron-forge')), 'electron-forge should exist').to.equal(true);
});

it('should have set the .compilerc electron version to be a float', async () => {
Expand Down

0 comments on commit 6d2cf4b

Please sign in to comment.