The root of this folder contains the following files:
Filename | Description |
---|---|
.editorconfig |
Configuration for code editors. See EditorConfig. |
.gitignore |
Specifies intentionally untracked files that Git should ignore. |
.angular.json |
CLI configuration defaults for all projects in the workspace, including configuration options for build, serve, and test tools that the CLI uses, such as TSLint, Karma. For details, see Angular Workspace Configuration. |
.gitlab-ci.yml |
Provides the project build and deploy configuration for Gitlab |
package.json |
Configures npm package dependencies that are available to all projects in the workspace. See npm documentation for the specific format and contents of this file. |
tsconfig.json |
Default TypeScript configuration for apps in the workspace, including TypeScript and Angular template compiler options. See TypeScript Configuration. |
tslint.json |
Default TSLint configuration for apps in the workspace. |
README.md |
Introductory documentation for the root app. |
The configuration provided by angular.json
file.
The environment configuration files in /src/environments/
provide a way for you to set and override configuration settings based on a given environment.
The /tools/env/env.config.ts
configuration is set up in base LOCAL
environment, whereas the /src/deploy-configs/dev.json
is specific the development environment,
as is /src/deploy-configs/prod.json
specific to the prod environment.
All steps are described for Ubuntu 18.04 LTS. Can be different in other systems.
Node.js - v10.x and yarn
sudo curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
sudo apt-get update
sudo apt-get install nodejs
sudo npm install -g npm
sudo npm install -g yarn
JetBrains WebStorm - latest
Import IDE's Code Style settings.
- File > Settings > Editor > Code Style > HTML > Do not indent children of: Set only HTML
- File > Settings > Editor > Code Style > TypeScript > Spaces Set: Object literal braces, ES6 Import/Export braces
- File > Settings > Editor > Code Style > TypeScript > Other Set: Quote marks: Single Quote, use ‘public’ modifier
Allow EditorConfig to overwrite code style settings.
- File > Settings > Languages & Frameworks > TypeScript Disable TypeScript compiler.
- File > Settings > Languages & Frameworks > TypeScript > TSLint Set: Enable. TSLint package will be available after packages install. Set: Search for tslint.json.
yarn install
Run ng serve
for a dev server. Navigate to http://localhost:5555/
. The app will automatically reload if you change any of the source files.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.