# rise-deploycode

> ![GitHub CI status](https://github.com/rise-cli/rise-deploycode/actions/workflows/test.yml/badge.svg)

Latest version **0.0.3** (published 2023-06-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install rise-deploycode
pnpm add rise-deploycode
yarn add rise-deploycode
bun add rise-deploycode
```

## 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.0.3 |
| Published | 2023-06-17 |
| First published | 2023-02-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 17.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | garysjennings |

## Links

- npm: https://www.npmjs.com/package/rise-deploycode
- npm.io page: https://npm.io/package/rise-deploycode

## Dependencies (4)

- [rise-deployinfra](https://npm.io/package/rise-deployinfra.md) ^0.0.5
- [rise-aws-foundation](https://npm.io/package/rise-aws-foundation.md) ^0.0.25
- [rise-cli-foundation](https://npm.io/package/rise-cli-foundation.md) ^0.0.14
- [rise-filesystem-foundation](https://npm.io/package/rise-filesystem-foundation.md) ^0.0.1

## Recent versions

- 0.0.3 (latest) — 2023-06-17
- 0.0.2 — 2023-06-17
- 0.0.1 — 2023-02-05

## README

# Rise DeployCode

![GitHub CI status](https://github.com/rise-cli/rise-deploycode/actions/workflows/test.yml/badge.svg)

## Install

```
npm i rise-deploycode
```

## Usage

### deployCodeBucket

```js
import { deployCodeBucket } from 'rise-deploycode'
const bucketName = await deployCodeBucket({
    name: 'deploycodetest2',
    stage: 'dev',
    region: 'us-east-1'
})
```

### zipCode

```js
import { zipCode } from 'rise-deploycode'
await zipCode({
    functionsLocation: '/exampleCode/src',
    zipTarget: '/exampleCode/.hidden/target',
    hiddenFolder: '.hidden'
})
```

### uploadCode

```js
import { uploadCode } from 'rise-deploycode'
await uploadCode({
    bucketName: bucketId,
    functionsLocation: '/exampleCode/src',
    zipTarget: '/exampleCode/.hidden/target',
    hiddenFolder: '.hidden'
})
```

### updateLambdaCode

```js
import { updateLambdaCode } from 'rise-deploycode'
await updateLambdaCode({
    appName: 'deploycodetestapp',
    stage: 'dev',
    region: 'us-east-1',
    bucket: bucketId,
    zipConfig: {
        functionsLocation: '/exampleCode/src',
        zipTarget: '/exampleCode/.hidden/target',
        hiddenFolder: '.hidden'
    }
})
```

### emptyCodeBucket

```js
import { emptyCodeBucket } from 'rise-deploycode'
await emptyCodeBucket({
    bucketName: 'nameOfMyBucket'
})
```

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