Skip to content

Latest commit

 

History

History

cider-app

Cider Application

This project was generated with Angular CLI version 13.2.2.

Useful Commands

Local server

Run npm run start for a dev server. Navigate to https://localhost:4200/. The app will automatically reload if you change any of the source files.

Electron application

Run npm run electron for the electron desktop application.

Code scaffolding

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.

Updating Dependencies

List outdated dependencies

Run npm outdated

Update dependency

Run ng update library@version or npm update library@version. If it doesn't work use ng update library@version --allow-dirty.

Install dependencies from package-lock.json only

Run npm ci

Install updated dependencies from package.json

Run npm install

Other

Electron application

Run npm run electron:build to build the electron desktop application executable.

Build GitHub Pages (New)

Run npm run build:gh-pages to build the site for github pages. Make sure to copy index.html to 404.html to handle all urls.

Deploy GitHub Pages

Run ng build --outputPath=../docs --baseHref=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/cider/ to build the site for github pages. Make sure to copy index.html to 404.html to handle all urls. Replaced by Build GitHub Pages above.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

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.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.

How to create the ICNS Icon

Make sure you create a flie called Icon1024.png in the directory you run these commands.

mkdir MyIcon.iconset
sips -z 16 16     Icon1024.png --out MyIcon.iconset/icon_16x16.png
sips -z 32 32     Icon1024.png --out MyIcon.iconset/[email protected]
sips -z 32 32     Icon1024.png --out MyIcon.iconset/icon_32x32.png
sips -z 64 64     Icon1024.png --out MyIcon.iconset/[email protected]
sips -z 128 128   Icon1024.png --out MyIcon.iconset/icon_128x128.png
sips -z 256 256   Icon1024.png --out MyIcon.iconset/[email protected]
sips -z 256 256   Icon1024.png --out MyIcon.iconset/icon_256x256.png
sips -z 512 512   Icon1024.png --out MyIcon.iconset/[email protected]
sips -z 512 512   Icon1024.png --out MyIcon.iconset/icon_512x512.png
cp Icon1024.png MyIcon.iconset/[email protected]
iconutil -c icns MyIcon.iconset
rm -R MyIcon.iconset