This branch is 10 commits behind M-Labs/web2019:master
Egor Savkin 937e5768f4 Update bundle and remove debug messages from production build
Signed-off-by: Egor Savkin <es@m-labs.hk>

# Conflicts:
#	package-lock.json
#	static/js/shop.bundle.js
2025-03-25 16:39:22 +08:00
2025-03-10 17:30:04 +08:00
2025-03-19 12:32:13 +08:00
2024-01-08 17:53:04 +08:00
2025-02-16 21:13:33 +08:00
2025-01-23 16:04:31 +08:00
2025-03-20 12:23:18 +08:00
2025-03-20 12:23:18 +08:00
2024-01-09 10:14:53 +08:00

M-Labs.hk website source code

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. For deployment, see the nix-scripts repository. Commits to https://git.m-labs.hk/M-Labs/web2019.git are automatically deployed to m-labs.hk through Hydra.

Clone the project:

git clone https://git.m-labs.hk/M-Labs/web2019.git
cd web2019

Install Zola.

Start with targeting m-labs.hk domain:

zola serve

Environmental variable DOMAINNAME can be specified to substitute links on the website.

To build the .bundle.js from .jsx files:

nix-shell -p nodejs
npm install
npm run build

Development builds are also available. npm run build-dev to re/build once, or npm run start-dev for incremental continuous builds as source files change.

Domain handling

Environmental variable DOMAINNAME controls only the following links on the website:

  • email mailto: links
  • hook for the RFQ server (window.API_RFQ) variable

If absent, DOMAINNAME defaults to m-labs.hk.

Description
No description provided
Readme 121 MiB
Languages
JavaScript 99.5%
HTML 0.2%
SCSS 0.2%