Identity provider and SSO for Kupolo.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

48 lines
1.4 KiB

extern crate plushie_narwhal;
use plushie_narwhal::{
browserify, sass, yarn_install, Resource, ResourceMount, ResourcesGenerator,
};
use std::default::Default;
use std::path::{Path, PathBuf};
fn main() {
if !Path::new("node_modules").is_dir() {
yarn_install();
}
ResourcesGenerator::new()
.add(Resource {
source: PathBuf::from("res/index.html.hbs"),
template_name: Some("index"),
..Default::default()
})
.add(Resource {
source: PathBuf::from("res/login.html.hbs"),
template_name: Some("login"),
..Default::default()
})
.add(Resource {
source: PathBuf::from("res/register.html.hbs"),
template_name: Some("register"),
..Default::default()
})
.add(Resource {
source: PathBuf::from("res/navbar.html.hbs"),
template_name: Some("navbar"),
..Default::default()
})
.add(Resource {
source: PathBuf::from("res/error.html.hbs"),
template_name: Some("error"),
..Default::default()
})
.add(Resource {
source: sass("res/index.scss", "index.css"),
mount_at: Some(ResourceMount {
endpoint: String::from("/index.css"),
content_type: "CSS",
}),
..Default::default()
})
.write();
}