The WebMAPBaseComponents project is a base library that contains the basic funcionality of WebMAPComponents project. It contains basic components, decorators, common directives, share services and some utils.
Once you have the repository downloaded and all the Software dependencies of section 2 are installed, go ahead and install all the dependencies using yarn:
First go to the root directory inside this repository, and then execute yarn install or yarn in a command line.
For more information about yarn visit their website: Yarn
Before you try to install the final dependencies of the project you'll need to set the npm registry and have the next ones:
npm set registry http://ais-build-w7:81/npm/Frontend/ or npm set registry https://www.myget.org/F/mobilizenet/npm/npm install -g @angular/cli@9.1.11npm install -g yarn with Node.js installed.For a complete reference to the project documentation you can visit the next link:
To build the project, go to the root directory inside this repository, and then execute npm run build.
In case of testing, execute npm run test.
To run e2e tests, follow the next steps:
Using npm link:
Execute the next commands in a cmd:
cd path/to/BaseComponents/package this means the location of the package.json inside the project.npm linkcd ./SamplesPATH this Samples can be the full path to the Samples or E2E directories inside WFNetKendo repositorynpm link @mobilize/base-componentsAnd then follow the e2e instructions inside Samples or E2E README
Using the npm pack:
Build the project
Go to the /dist directory inside the root directory
run npm version x.x.x (x can be any number), this is just to put a version for the package
run npm pack
copy the path of the package (.tgz)
open ./package.json file that is located in the WFNetKendoComponents/WinformsComponent folder and paste the path exactly in "@mobilize/base-components" value, just like this:
"@mobilize/base-components": "path\to\the\package.tgz"
follow the e2e instructions inside WinformsComponents README
Run ng serve or npm run start 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.
To get more help on the Angular CLI use ng help or go check out the Angular CLI README.