Skip to content
Permalink
Browse files

feat(initializer): add Forge as a devDependency to new Electron projects

ISSUES CLOSED: #294
  • Loading branch information
malept authored and MarshallOfSound committed Aug 17, 2017
1 parent bb33d9b commit 6d2cf4b06440e5edd4b8371e673de2c7f95c2f6f
Showing with 2 additions and 1 deletion.
  1. +1 −1 src/init/init-npm.js
  2. +1 −0 test/slow/api_spec_slow.js
@@ -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',
@@ -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 () => {

0 comments on commit 6d2cf4b

Please sign in to comment.
You can’t perform that action at this time.