luci-theme-tano
luci-theme-tano copied to clipboard
Tano Systems LuCI theme
Tano Systems LuCI theme
This repository contains Tano Systems theme for LuCI web configuration interface.
This theme is the official theme of the LuCI web configuration interface for TanoWrt Linux distribution.
This theme is intended to use forked LuCI version by Tano Systems which has a some differences in HTML markup. Therefore, this theme may not work correctly with the official LuCI and/or official OpenWrt builds.
The BitBake recipe for this theme can be founded in the meta-tanowrt OpenEmbedded layer repository.
Development prerequisites
Node.js and npm
To start development you should have Node.js installed on your development machine.
Depending on OS you are using you can obtain appropriate distributive or source code of Node.js from official site.
Another way to get Node.js installed is by using NVM (Node Version Manager).
It's strongly recommended to have npm of version 5 or higher to be able to use package-lock.json
file.
Setting up
After Node.js and npm are installed you have to take some setup actions.
Installing packages
All packages required for building will be installed automatically. It can take some time. Run this command to install packages.
npm install
After packages are installed you can run theme bundle building.
Configuring env
To be able to deploy to some host having LuCI up and running you have to setup some environment variables. To get this done do the following (assuming you are in repo's root directory):
cp ./buildscripts/env.example ./buildscripts/env
Created file ./buildscripts/env
contains environment variables required for deployment of built theme to target host. All the variables are documented in place. You may use any other editor instead of vim
.
vim ./buildscripts/env
After variables are set you may to deploy your changes to configured host.
Running build scripts
Below described commands that allow you to build and deploy theme.
Building and deploying theme
To get theme built and deployed you have to run this command
npm run build_and_deploy
Theme will be deployed to target host as soon as get built.
Building theme bundle
To build a tarball that includes all theme files you have to run this command
npm run bundle
After a tarball get built it will be placed into bundle
directory.