This starter project has been created by generator-devextreme version 1.0.6 and includes Angular and DevExtreme widgets.
These options were used to generate the project:
{
"appname": "demo-generator-devextreme-angular",
"apptype": "angular",
"localization": "intl",
"locales": [
"de",
"ja",
"en-GB"
],
"bundling": "angular-cli",
"language": "ts"
}
Based on the options, localization support has been included on the basis of Intl and the DevExtreme-Intl library. In addition to the language files for the 'en' locale, which are included by default, the following locales have also been added: de, ja, en-GB.
The template for this project was generated with Angular CLI version 1.4.4.
npm install
Note that the generated project installs the required version of ng
. However, for a command like ng serve
, only a globally installed version would be found. Maintenance of generator-devextreme tries to keep up with Angular CLI releases, but theoretically your installed global version could be incompatible with the project setup.
To use the version of ng
that is definitely compatible with the generated project, you need to execute node_modules/.bin/ng
. Alternatively, you can use the scripts defined in package.json
, since these automatically use the local ng
version. For instance, instead of ng serve
you can run npm start
, and ng build
can be replaced by npm run build
.
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. Use the -prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.