# @xpda-dev/webpack-step

> Cross platform desktop app development tools

Latest version **0.2.1** (published 2024-02-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @xpda-dev/webpack-step
pnpm add @xpda-dev/webpack-step
yarn add @xpda-dev/webpack-step
bun add @xpda-dev/webpack-step
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2024-02-19 |
| First published | 2019-08-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | “Michał |
| Maintainers | michalzaq12 |

## Links

- npm: https://www.npmjs.com/package/@xpda-dev/webpack-step
- Repository: https://github.com/michalzaq12/xpda-dev
- Homepage: https://github.com/michalzaq12/xpda-dev#readme
- Issues: https://github.com/michalzaq12/xpda-dev/issues
- npm.io page: https://npm.io/package/@xpda-dev/webpack-step

## Dependencies (1)

- [webpack](https://npm.io/package/webpack.md) ^5.90.2

## Recent versions

- 0.2.1 (latest) — 2024-02-19
- 0.2.0 — 2024-02-18
- 0.1.6 — 2021-06-18
- 0.1.5 — 2021-04-21
- 0.1.4 — 2021-04-02
- 0.1.2 — 2019-08-30
- 0.1.1 — 2019-08-25
- 0.1.0 — 2019-08-13

## README

<div align="center">
 
  <br>

<a href="https://coveralls.io/github/michalzaq12/xpda-dev"><img src="https://img.shields.io/coveralls/github/michalzaq12/xpda-dev?style=flat-square"/></a>

  <h1>xpda-dev</h1>
  <p>
     Cross platform desktop app development tools
  </p>
  <small>
  <i>Everything in xpda-dev is based on high level abstraction, so you can easily write own implementation</i>
  </small>
</div> 
 
 
<h2 align="center">Install</h2>

Install with npm:

```bash
npm install --save-dev @xpda-dev/core
```

<h2 align="center">Concepts</h2>

### 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](https://github.com/michalzaq12/xpda-dev/blob/master/packages/core/src/IStep.ts) interface**

| Name    | Description                                                            | Constructor options                                                                                            | Requirements                                                                   |
| ------- | ---------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
| Webpack | Transpile your code with [webpack](https://github.com/webpack/webpack) | [IWebpackOptions](https://github.com/michalzaq12/xpda-dev/blob/master/packages/webpack-step/src/Webpack.ts#L8) | [@xpda-dev/webpack-step](https://www.npmjs.com/package/@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](https://github.com/michalzaq12/xpda-dev/blob/master/packages/core/src/ILauncher.ts) interface**

| Name             | Description                                             | Options                                                                                                                       | Requirements                                                                             |
| ---------------- | ------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| ElectronLauncher | Launch [electron](https://github.com/electron/electron) | [IElectronOptions](https://github.com/michalzaq12/xpda-dev/blob/master/packages/electron-launcher/src/ElectronLauncher.ts#L6) | [@xpda-dev/electron-launcher](https://www.npmjs.com/package/@xpda-dev/electron-launcher) |


<h2 align="center">Examples</h2>

- Electron cross platform app. Main process was written with help of Typescript

```javascript
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()
```

---
_Source: https://npm.io/package/@xpda-dev/webpack-step · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
