|
пре 5 месеци | |
---|---|---|
.storybook | пре 5 месеци | |
public | пре 6 месеци | |
src | пре 5 месеци | |
tests/unit | пре 6 месеци | |
.browserslistrc | пре 6 месеци | |
.editorconfig | пре 6 месеци | |
.envrc | пре 6 месеци | |
.eslintrc.js | пре 6 месеци | |
.gitignore | пре 6 месеци | |
README.md | пре 6 месеци | |
default.nix | пре 5 месеци | |
package.json | пре 5 месеци | |
shell.nix | пре 6 месеци | |
tsconfig.json | пре 6 месеци | |
vue.config.js | пре 6 месеци | |
yarn.lock | пре 5 месеци | |
yarn.nix | пре 5 месеци |
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