htmlrapier

28.0.0 • Public • Published

HtmlRapier

A tiny mvc library for building web apps using rest apis.

Visit https://threax.github.io/HtmlRapierDocs/ for more information.

Testing

To run the tests npm link this library into a hypermedia project.

Add the following to artifacts.json:


  {
    "pathBase": "./node_modules/htmlrapier/testPages",
    "outDir": "test/htmlrapier",
    "copy": [
      "./node_modules/htmlrapier/testPages/*"
    ]
  }

And the following to tsconfig.json:

under "paths"

"hr.test.*": [
    "node_modules\\htmlrapier\\test\\*"
],

under "include"

"node_modules\\htmlrapier\\test\\**\\*.ts",

visit https://projecturl/test/htmlrapier/unittests.html to test.

Removing Tests

To remove the tests you can fix your tsconfig by running import-tsconfig again and removing the lines from artifacts.json.

Using the Form Builder

Versions of HtmlRapier before version 19 had a built in default form that used styles from bootstrap 3. Newer versions remove this default form, since we don't actually have any dependency on bootstrap 3 other than the form. There is no simplified default form included, so if you are trying this library out please include htmlrapier.form.bootstrap3 or htmlrapier.form.bootstrap4 in your dependencies. Once you do this run threax-npm-tk tsconfig to import the tsconfig for the form. This will make it build with the rest of your typescript.

Documentation

The docs source is stored in this repo. To work on them run Edity McEditface in the docs folder. You can publish directly from there the output folder is ignored.

Readme

Keywords

none

Package Sidebar

Install

npm i htmlrapier

Weekly Downloads

6

Version

28.0.0

License

none

Unpacked Size

296 kB

Total Files

41

Last publish

Collaborators

  • threax