# @gustavnikolaj/module-kickstart

> A descriptive description.

Latest version **1.0.0** (published 2016-03-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install @gustavnikolaj/module-kickstart
pnpm add @gustavnikolaj/module-kickstart
yarn add @gustavnikolaj/module-kickstart
bun add @gustavnikolaj/module-kickstart
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-03-19 |
| First published | 2016-03-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Gustav Nikolaj |
| Maintainers | gustavnikolaj |

## Links

- npm: https://www.npmjs.com/package/@gustavnikolaj/module-kickstart
- Repository: https://github.com/gustavnikolaj/module-kickstart
- Homepage: https://github.com/gustavnikolaj/module-kickstart#readme
- Issues: https://github.com/gustavnikolaj/module-kickstart/issues
- npm.io page: https://npm.io/package/@gustavnikolaj/module-kickstart

## Dependencies (1)

- [babel-runtime](https://npm.io/package/babel-runtime.md) ^5.0.0

## Recent versions

- 1.0.0 (latest) — 2016-03-19
- 0.1.9 — 2016-03-19
- 0.1.8 — 2016-03-19
- 0.1.7 — 2016-03-19
- 0.1.6 — 2016-03-19
- 0.1.5 — 2016-03-18
- 0.1.4 — 2016-03-18
- 0.1.3 — 2016-03-18
- 0.1.2 — 2016-03-18
- 0.1.1 — 2016-03-18
- 0.1.0 — 2016-03-18
- 0.0.1 — 2016-03-18
- 0.0.0 — 2016-03-18

## README

# Module Kickstart

An example of how you can set up a repo for a node module enabling use of babel
while allowing you to publish only transpiled code. It works when linking the
source repo into other projects (by adding the babel runtime transpiler) and
will automatically build the files for distribution when you publish packages.

## Notes

### Enable source maps

When transpiling the code with babel we enable inline source maps. The module
[source-map-support](https://github.com/evanw/node-source-map-support) adds
support for source maps in node. The module should be installed in the consuming
project.

### babel-plugin-add-module-exports

This
[babel plugin](https://www.npmjs.com/package/babel-plugin-add-module-exports)
will allow you to write `ES?` module code that works nicely with CommonJS.

Take this example:

```js
export default function main() { /* ... */ }
```

It would normally be transpiled into something rougly equivalent to:

```js
module.exports = {
  default: function main() { /* ... */ }
};
```

With this plugin it will be transpiled into:

```js
module.exports = function main() { /* ... */ };
```

It will only do that change, when you have only one `export` which is also
marked with `default`. It will not change the behaviour in other cases.

---
_Source: https://npm.io/package/@gustavnikolaj/module-kickstart · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
