Join our Discord to discuss about our software!
Our enterprise frontend library for TypeScript.
We don't have traditional releases. This project evolves directly to our git repository in an agile manner.
This git repository contains only the source code for a compile time use case. It is meant to be used as a git submodule in a NodeJS or webpack project.
See also hg.fi for easy NPM package creators for your project and other additional modules from us.
Copyright (c) Heusala Group. All rights reserved. Licensed under the MIT License (the "License");
Run the installation commands from your project's root directory. Usually it's where your package.json
is located.
For these sample commands we expect your source files to be located in ./src
and we'll use ./src/fi/hg/frontend
for location for our submodule.
Setup git submodule:
mkdir -p src/fi/hg
git submodule add [email protected]:heusalagroup/fi.hg.frontend.git src/fi/hg/frontend
git config -f .gitmodules submodule.src/fi/hg/frontend.branch main
Next install our required dependencies (newest lodash library and reflect-metadata library):
git submodule add [email protected]:heusalagroup/fi.hg.core.git src/fi/hg/core
git config -f .gitmodules submodule.src/fi/hg/core.branch main
npm i --save-dev lodash @types/lodash 'moment-timezone' '@types/moment-timezone'
Git doesn't automatically clone your sub modules.
You'll need to command:
git clone --recurse-submodules [email protected]:heusalagroup/your-project.git your-project
...or:
git clone [email protected]:heusalagroup/your-project.git your-project
cd your-project
git submodule init
git submodule update
Later when you want to update your submodules, you may do:
git pull
git submodule update --remote
NPM doesn't provide a good way to implement pure compile time TypeScript libraries.
We would have to compile our whole library in our bundle even though you probably don't use everything.
It wouldn't be possible to use compile time optimizations and other ENV based feature flags.