0.2.1 • Published 9 months ago

@xpda-dev/webpack-step v0.2.1

Weekly downloads
163
License
MIT
Repository
github
Last release
9 months ago

Install with npm:

npm install --save-dev @xpda-dev/core

Steps

Step allows you to build or do everything you wish with your application to make it ready to use.

Each step must implement IStep interface

NameDescriptionConstructor optionsRequirements
WebpackTranspile your code with webpackIWebpackOptions@xpda-dev/webpack-step

Launcher

Launcher allows you to run application when all steps completed (step may fail). Launcher works only in development mode.

Launcher must implement ILauncher interface

NameDescriptionOptionsRequirements
ElectronLauncherLaunch electronIElectronOptions@xpda-dev/electron-launcher

Launcher

// TODO

  • Electron cross platform app. Main process was written with help of Typescript
const electron = require('electron')
const { Pipeline } = require('@xpda-dev/core')
const { Webpack } = require('@xpda-dev/webpack-step')
const { ElectronLauncher } = require('@xpda-dev/electron-launcher')

const launcher = new ElectronLauncher({
  entryFile: './dist/index.js',
  electronPath: electron,
})

const webpackConfig = Webpack.getTypescriptConfig({
  tsconfig: './tsconfig.json',
  entry: './index.ts',
  output: {
    filename: 'index.js',
    path: './dist',
  },
})

const webpackStep = new Webpack({
  webpackConfig: webpackConfig,
  launcher: launcher,
})

const pipe = new Pipeline({
  title: 'electron-pipeline',
  isDevelopment: true,
  steps: [webpackStep],
  launcher: launcher,
})

pipe.run()
0.2.1

9 months ago

0.2.0

9 months ago

0.1.6

3 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago