This project was generated with Angular CLI version 13.1.2.
Prepping local ubuntu machine to build phylodiver-viz repo
Install an lts version of node https://github.com/nodesource/distributions/blob/master/README.md
curl -fsSL https://deb.nodesource.com/setup_lts.x > setup_lts.sh
sudo -E bash setup_lts.sh
sudo apt-get install -y nodejs
If the nodejs installation didn't install npm, do so and then install angular https://angular.io/guide/setup-local
-
sudo apt-get install npm
-
sudo npm install -g @angular/cli
-
ng version
#if this succeeds, angular cli is working
Install remaining project specific packages. From the top-level project directory of this repo (where the package.json is located):
npm install
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
Run npm run test:e2e
to start a dev server and launch Cypress.
To publish the contents of the local dist/phylodiver-viz/
(from your machine,
not what is committed to github):
npm run deploy-pages
This script copies the files from the dist directory to the root of the gh-pages
branch, which
is then automatically served as a static site at https://ncsa.github.io/phylodiver-viz/
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.