# fwcc-server

> The node server which processes the request.

Latest version **1.0.3** (published 2018-12-05) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install fwcc-server
pnpm add fwcc-server
yarn add fwcc-server
bun add fwcc-server
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-12-05 |
| First published | 2018-12-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 (+6 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 5 |
| Maintainers | themaaarc |

## Links

- npm: https://www.npmjs.com/package/fwcc-server
- Repository: https://github.com/frontend-workflow-cloud-compiler/server
- npm.io page: https://npm.io/package/fwcc-server

## Dependencies (10)

- [express](https://npm.io/package/express.md) ^4.16.4
- [postcss](https://npm.io/package/postcss.md) ^7.0.6
- [fs-extra](https://npm.io/package/fs-extra.md) ^7.0.1
- [node-sass](https://npm.io/package/node-sass.md) ^4.10.0
- [uglify-js](https://npm.io/package/uglify-js.md) ^3.4.9
- [babel-core](https://npm.io/package/babel-core.md) ^6.26.3
- [body-parser](https://npm.io/package/body-parser.md) ^1.18.3
- [autoprefixer](https://npm.io/package/autoprefixer.md) ^9.4.2
- [babel-preset-env](https://npm.io/package/babel-preset-env.md) ^1.7.0
- [concat-with-sourcemaps](https://npm.io/package/concat-with-sourcemaps.md) ^1.1.0

## Recent versions

- 1.0.3 (latest) — 2018-12-05
- 1.0.2 — 2018-12-05
- 1.0.1 — 2018-12-05
- 1.0.0 — 2018-12-05

## README

# FWCC Server

The node server which processes the request.

## Install

### Node package

`yarn add fwcc-server`

### GIT

Clone this repository:

`git clone https://github.com/frontend-workflow-cloud-compiler/server.git fwcc-server/`

Install node modules:

`yarn install`

## Start

### Node package

`yarn --cwd node_modules/fwcc-server/ run start`

If you want to, you can add following code to your package.json to shorten the command to `yarn start`:

```json
"scripts": {
    "start": "yarn --cwd node_modules/fwcc-server/ run start"
}
```

### GIT

`yarn start`

## Endpoints

**`/compile/scss`**

Compiles given scss files to css and runs autoprefixer.  
A sourcemap can be inlined.

**`/compile/js`**

Uglifies given js files and compiles them from ES6 to ES5 if necessary.  
Sourcemaps can't be generated at the moment.

Expects:

```json
{
    "mainFile" : "/path/to/main/file/as/it/is/in/files.scss",
    "files": [
        {
            "file" : "/path/to/file.scss",
            "content" : "content-of-file"
        }
    ]
}
```

> `mainFile` is only required to compile scss, the js task doesn't use it.  
> `files` is always required.

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