|
5 månader sedan | |
---|---|---|
.storybook | 5 månader sedan | |
public | 6 månader sedan | |
src | 5 månader sedan | |
tests/unit | 6 månader sedan | |
.browserslistrc | 6 månader sedan | |
.editorconfig | 6 månader sedan | |
.envrc | 6 månader sedan | |
.eslintrc.js | 6 månader sedan | |
.gitignore | 5 månader sedan | |
README.md | 6 månader sedan | |
default.nix | 5 månader sedan | |
package.json | 5 månader sedan | |
shell.nix | 5 månader sedan | |
tsconfig.json | 6 månader sedan | |
vue.config.js | 5 månader sedan | |
yarn.lock | 5 månader sedan | |
yarn.nix | 5 månader sedan |
Frontend portion of MiracleTV Suite.
Built with TypeScript, Vue and Nix.
This package is intended to work with
For Nix and NixOS users
nix-shell
Alternatively, .envrc
is available with use_nix for ease of access with direnv
nix-build
Will build the frontend and produce the following output:
dist/
- Containing all of the build output of yarn buildtarballs/${artifactName}.${version}.tar.gz
- Tarball with contents of dist as an artifact, where artifactName
is usually miracle-tv-frontend and version
is typycally matching release versionImport this as a package and use it
let
# Import package (some way i.e. save default.nix as ./miracle-tv-frontend.nix
...
miracle-tv-frontend = import ./miracle-tv-frontend.nix;
...
in {
...
location."/" = {
# Use dist folder of built package as source for content
# i.e. here in nginx location block
root = "${miracle-tv-frontend}/dist";
};
...
};
For every common distro, ensure you’re using NodeJS >14.0 and yarn with the same Node version.
yarn install
yarn serve
yarn build
yarn test:unit
yarn lint
nix-build
produces usable output.
./result/dist
contains desired frontend, i.e. if servable with http-server
and functioningyarn.nix
by running yarn2nix > yarn.nix
yarn2nix
should be available inside nix-shell
nix-collect-garbage && nix-build
after that to make sure project buildsyarn build
produces usable output
./dist/
contains desired frontend, i.e. if servable with http-server
and functioningyarn.nix
when opening a pull-request