1.0.3 • Published 6 years ago
fwcc-server v1.0.3
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.