npm.io
1.0.3 • Published 7 years ago

fwcc-server

Licence
MIT
Version
1.0.3
Deps
10
Size
7 kB
Vulns
6
Weekly
0
Stars
5
DeprecatedThis package is deprecated

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:

"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:

{
    "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.