# svelte-scripts

> Configurations and scripts for svelte applications and svelte libraries

Latest version **0.3.7** (published 2020-03-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install svelte-scripts
pnpm add svelte-scripts
yarn add svelte-scripts
bun add svelte-scripts
```

Provides the commands `svelte-scripts`, `svelte-scripts-library`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.7 |
| Published | 2020-03-23 |
| First published | 2020-03-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 13 |
| Unpacked size | 12.1 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | André Lins |
| Maintainers | andrelmlins |
| Keywords | svelte, scripts, start, build, test |

## Links

- npm: https://www.npmjs.com/package/svelte-scripts
- Repository: https://github.com/andrelmlins/svelte-scripts
- Issues: https://github.com/andrelmlins/svelte-scripts/issues
- npm.io page: https://npm.io/package/svelte-scripts

## Dependencies (13)

- [jest](https://npm.io/package/jest.md) ^25.1.0
- [rollup](https://npm.io/package/rollup.md) ^1.32.0
- [babel-jest](https://npm.io/package/babel-jest.md) ^25.1.0
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.8.7
- [choose-port](https://npm.io/package/choose-port.md) ^0.2.0
- [svelte-jester](https://npm.io/package/svelte-jester.md) ^1.0.5
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) ^7.8.7
- [rollup-plugin-serve](https://npm.io/package/rollup-plugin-serve.md) ^1.0.1
- [rollup-plugin-svelte](https://npm.io/package/rollup-plugin-svelte.md) ^5.1.1
- [rollup-plugin-terser](https://npm.io/package/rollup-plugin-terser.md) ^5.2.0
- [rollup-plugin-commonjs](https://npm.io/package/rollup-plugin-commonjs.md) ^10.1.0
- [rollup-plugin-livereload](https://npm.io/package/rollup-plugin-livereload.md) ^1.0.4
- [rollup-plugin-node-resolve](https://npm.io/package/rollup-plugin-node-resolve.md) ^5.2.0

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 0.3.7 (latest) — 2020-03-23
- 0.3.6 — 2020-03-23
- 0.3.5 — 2020-03-13
- 0.3.4 — 2020-03-09
- 0.3.3 — 2020-03-09
- 0.3.2 — 2020-03-09
- 0.3.1 — 2020-03-09
- 0.3.0 — 2020-03-09
- 0.2.1 — 2020-03-07
- 0.2.0 — 2020-03-06
- 0.1.6 — 2020-03-06
- 0.1.5 — 2020-03-06
- 0.1.4 — 2020-03-06
- 0.1.3 — 2020-03-06
- 0.1.2 — 2020-03-06
- … 5 more at https://npm.io/package/svelte-scripts/versions

## README

# Svelte Scripts

Configurations and scripts for svelte applications and svelte libraries

[![npm version](https://badge.fury.io/js/svelte-scripts.svg)](https://www.npmjs.com/package/svelte-scripts) &bull; [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/andrelmlins/svelte-scripts/blob/master/LICENSE) &bull; [![Build Status](https://travis-ci.com/andrelmlins/svelte-scripts.svg?branch=master)](https://travis-ci.com/andrelmlins/svelte-scripts) &bull; [![Dependencies](https://david-dm.org/andrelmlins/svelte-scripts.svg)](https://david-dm.org/andrelmlins/svelte-scripts)

- Create svelte applications and libraries with zero settings.
- Configurations and scripts for svelte applications.
- Works on the most used operating systems.

## Basic Use

### For Application

Create your svelte application

```
npx degit andrelmlins/svelte-scripts/template svelte-app
cd svelte-app
yarn start
```

Then open http://localhost:5000/ to see your app.

### For Library

Create your svelte library

```
npx degit andrelmlins/svelte-scripts/template-library svelte-library
cd svelte-library
yarn start
```

Then open http://localhost:5000/ to see your library.

## Scripts

### Start the development application

Using [rollup](https://rollupjs.org/) with reference to folder `src`.
Used in applications and libraries.

```
npm start
// OR
yarn start
```

### Build the application

Using [rollup](https://rollupjs.org/) with reference to folder `src`.
Used in applications and libraries.

```
npm build
// OR
yarn build
```

### Test the project

Using [jest](https://jestjs.io/) with reference to folder `src`. Is possible edit the test config in `package.json`. Used in applications and libraries.

```
npm test
// OR
yarn test
```

## Philosophy

1. Zero settings
2. Only dependency to start a project
3. Quickly launch a svelte application

## Environment Variables

Some environment variables are available.

| Variable         | Type   | Default Value |
| ---------------- | ------ | ------------- |
| PORT             | number | 5000          |
| HOST             | string | localhost     |
| PORT_LIVE_RELOAD | number | 35729         |

## Contribution guidelines

If you want to contribute to **Svelte Scripts**, be sure to review the
[contribution guidelines](CONTRIBUTING.md). This project adheres to
[code of conduct](CODE_OF_CONDUCT.md). By participating, you are expected to
uphold this code.

## License

Svelte Scripts is open source software [licensed as MIT](https://github.com/andrelmlins/svelte-scripts/blob/master/LICENSE).

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