To work with this repos you need Node.js 6+ and lerna https://lernajs.io/
-
Install lerna:
npm i -g lerna
-
Clone this repo
-
Go to the root of the project and run:
$ lerna bootstrap --hoist
$ lerna run build
KTH adapted Bootstrap package.
KTH Style docs server.
Visual components to add consistency and simplify development of Inferno-apps.
To develop docs:
$ git clone https://github.com/KTH/kth-style.git
$ cd kth-style
$ scripts/start-doc-dev.sh init
$ scripts/start-doc-dev.sh run-all
You can now visit the docs at http://localhost:8080
The docs will automatically rebuild, all you need to do is reload the browser.
You might need to rerun scripts/start-doc-dev.sh init
at times if changes have been made to package.json.
To use it in Node JS project: As an example, the user can look at projects lms-exports-results, places-web and so on.
$ npm i -S kth-style bootstrap
In file server/server.js:
const path = require('path')
const express = require('express')
const server = require('kth-node-server')
const prefix = config.proxyPrefixPath.uri
server.use(prefix +'/kth-style', express.static(path.join(__dirname, '../node_modules/kth-style/dist')))
const path = require('path')
const express = require('express')
const app = express()
app.use(prefix +'/kth-style', express.static(path.join(__dirname, '../node_modules/kth-style/dist')))
Then link to the KTH-bootstrap stylesheet in /dist directory, f.e.:
<link rel="stylesheet" href="/api/lms-export-results/kth-style/css/kth-bootstrap.css">
Remember to place the import above your own project stylesheet imports.
If you are using Fontello icons in your own project you might get conflicting UNICODE codes.
Before generating your icon set from Fontello you should set the CSS-prefix from the default 'icon-' to f.e. 'projectname-icon-'