Skip to content

xtity/riotjs-webpack-sass-boilerplate

Repository files navigation

riotjs-webpack-sass-boilerplate

riotjs-webpack-sass-boilerplate

How to use

Install

npm i

Build

npm run build

Start development server

npm run dev

Start production server

npm run prod

more simply,

npm start

Test

npm run test

Coverage

npm run coverage
open ./coverage/ts-report/index.html

VSCode Configuration

settings.json

{
    "typescript.tsdk": "./node_modules/typescript/lib"
}

launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "start program",
            "program": "${workspaceRoot}/build/src/index",
            "outFiles": [
                "${workspaceRoot}/build/**/*.js"
            ],
            "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/nodemon",
            "runtimeArgs": [
                "-w",
                "build/src"
            ],
            "sourceMaps": true
        }
    ]
}