@gipisistemas/ng-core 1.0.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -0
- package/_ITSS-NG-CI-CD.yml +53 -0
- package/_ITSS-NG-CI-PR.yml +53 -0
- package/angular-cli.json +42 -0
- package/azure-pipelines.yml +35 -0
- package/package.json +85 -0
- package/projects/itss-ng/ng-package.json +7 -0
- package/projects/itss-ng/package.json +25 -0
package/README.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# ItssNg
|
2
|
+
|
3
|
+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.1.2.
|
4
|
+
|
5
|
+
## Development server
|
6
|
+
|
7
|
+
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.
|
8
|
+
|
9
|
+
## Code scaffolding
|
10
|
+
|
11
|
+
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`.
|
12
|
+
|
13
|
+
## Build
|
14
|
+
|
15
|
+
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.
|
16
|
+
|
17
|
+
## Running unit tests
|
18
|
+
|
19
|
+
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
20
|
+
|
21
|
+
## Running end-to-end tests
|
22
|
+
|
23
|
+
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
|
24
|
+
|
25
|
+
## Further help
|
26
|
+
|
27
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
|
28
|
+
|
29
|
+
## Install library from specific github branch
|
30
|
+
|
31
|
+
### Install the main branch
|
32
|
+
```bash
|
33
|
+
npm install --save
|
34
|
+
```
|
35
|
+
|
36
|
+
### Install a specific branch
|
37
|
+
> [!WARNING]
|
38
|
+
> Change <BRANCH_NAME> to the name of the branch to be installed.
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# Build Publish Artifacts itss-ng
|
2
|
+
|
3
|
+
trigger:
|
4
|
+
#o deploy deve ocorrer somente via branch develop e a master é pra controle de versões aprovadas
|
5
|
+
#o deploy deve ser via develop para apoio aos desenvolvimento.
|
6
|
+
- develop
|
7
|
+
|
8
|
+
pool:
|
9
|
+
#name: GrupoItssWindows
|
10
|
+
name: Azure Pipelines
|
11
|
+
#vmImage: 'windows-latest'
|
12
|
+
vmImage: 'Ubuntu-20.04'
|
13
|
+
demands:
|
14
|
+
- npm
|
15
|
+
|
16
|
+
steps:
|
17
|
+
|
18
|
+
#- task: RestoreAndSaveCache@1
|
19
|
+
# inputs:
|
20
|
+
# keyfile: '**/package-lock.json'
|
21
|
+
# targetfolder: '/node_modules, !/node_modules/**/node_modules'
|
22
|
+
# vstsFeed: '3a428840-06b8-4141-8154-6025ed4fd4d6'
|
23
|
+
# platformIndependent: true
|
24
|
+
# alias: 'Controle de cache NPM'
|
25
|
+
- task: PowerShell@2
|
26
|
+
inputs:
|
27
|
+
targetType: 'inline'
|
28
|
+
script: 'cp $(system.defaultworkingdirectory)/.npmrc ${HOME}'
|
29
|
+
condition: eq( variables['Agent.OS'], 'Linux' )
|
30
|
+
|
31
|
+
- task: NodeTool@0
|
32
|
+
inputs:
|
33
|
+
versionSpec: '12.18.0'
|
34
|
+
displayName: 'Install Node.js'
|
35
|
+
|
36
|
+
- task: Npm@1
|
37
|
+
inputs:
|
38
|
+
command: 'install'
|
39
|
+
workingDir: '$(system.defaultworkingdirectory)'
|
40
|
+
customRegistry: 'useNpmrc'
|
41
|
+
|
42
|
+
- task: Npm@1
|
43
|
+
inputs:
|
44
|
+
command: 'custom'
|
45
|
+
customCommand: 'install -g @angular/cli'
|
46
|
+
customRegistry: 'useNpmrc'
|
47
|
+
|
48
|
+
- task: PowerShell@2
|
49
|
+
inputs:
|
50
|
+
targetType: 'inline'
|
51
|
+
script: 'npm run publish'
|
52
|
+
workingDirectory: '$(system.defaultworkingdirectory)'
|
53
|
+
customRegistry: 'useNpmrc'
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# Node.js
|
2
|
+
# Build a general Node.js project with npm.
|
3
|
+
# Add steps that analyze code, save build artifacts, deploy, and more:
|
4
|
+
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
|
5
|
+
|
6
|
+
trigger: none
|
7
|
+
|
8
|
+
pool:
|
9
|
+
#name: GrupoItssWindows
|
10
|
+
name: Azure Pipelines
|
11
|
+
#vmImage: 'windows-latest'
|
12
|
+
vmImage: 'ubuntu-20.04'
|
13
|
+
demands:
|
14
|
+
- npm
|
15
|
+
|
16
|
+
steps:
|
17
|
+
|
18
|
+
#- task: RestoreAndSaveCache@1
|
19
|
+
# inputs:
|
20
|
+
# keyfile: '**/package-lock.json'
|
21
|
+
# targetfolder: '/node_modules, !/node_modules/**/node_modules'
|
22
|
+
# vstsFeed: '727cb252-df1d-46c8-966d-e2c5dd65c184'
|
23
|
+
# platformIndependent: true
|
24
|
+
# alias: 'Controle de cache NPM'
|
25
|
+
- task: PowerShell@2
|
26
|
+
inputs:
|
27
|
+
targetType: 'inline'
|
28
|
+
script: 'cp $(system.defaultworkingdirectory)/.npmrc ${HOME}'
|
29
|
+
condition: eq( variables['Agent.OS'], 'Linux' )
|
30
|
+
|
31
|
+
- task: NodeTool@0
|
32
|
+
inputs:
|
33
|
+
versionSpec: '12.18.0'
|
34
|
+
displayName: 'Install Node.js'
|
35
|
+
|
36
|
+
- task: Npm@1
|
37
|
+
inputs:
|
38
|
+
command: 'install'
|
39
|
+
#customRegistry: 'useNpmrc'
|
40
|
+
workingDir: '$(system.defaultworkingdirectory)'
|
41
|
+
|
42
|
+
- task: Npm@1
|
43
|
+
inputs:
|
44
|
+
command: 'custom'
|
45
|
+
customCommand: 'install -g @angular/cli'
|
46
|
+
#customRegistry: 'useNpmrc'
|
47
|
+
|
48
|
+
- task: PowerShell@2
|
49
|
+
inputs:
|
50
|
+
targetType: 'inline'
|
51
|
+
script: 'npm run build_lib'
|
52
|
+
workingDirectory: '$(system.defaultworkingdirectory)'
|
53
|
+
customRegistry: 'useNpmrc'
|
package/angular-cli.json
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
{
|
2
|
+
"defaults": {
|
3
|
+
"styleExt": "scss",
|
4
|
+
"component": {
|
5
|
+
"style": "scss",
|
6
|
+
"changeDetection": "OnPush",
|
7
|
+
"export": true,
|
8
|
+
"inlineStyle": false,
|
9
|
+
"inlineTemplate": false,
|
10
|
+
"prefix": "gipi",
|
11
|
+
"spec": false,
|
12
|
+
"viewEncapsulation": "None",
|
13
|
+
"displayBlock": true
|
14
|
+
},
|
15
|
+
"class": {
|
16
|
+
"spec": false
|
17
|
+
},
|
18
|
+
"directive": {
|
19
|
+
"flat": true,
|
20
|
+
"spec": false
|
21
|
+
},
|
22
|
+
"guard": {
|
23
|
+
"flat": true,
|
24
|
+
"spec": false
|
25
|
+
},
|
26
|
+
"interface": {
|
27
|
+
"prefix": ""
|
28
|
+
},
|
29
|
+
"module": {
|
30
|
+
"flat": false,
|
31
|
+
"spec": false
|
32
|
+
},
|
33
|
+
"pipe": {
|
34
|
+
"flat": true,
|
35
|
+
"spec": false
|
36
|
+
},
|
37
|
+
"service": {
|
38
|
+
"flat": true,
|
39
|
+
"spec": false
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# Node.js with Angular
|
2
|
+
# Build a Node.js project that uses Angular.
|
3
|
+
# Add steps that analyze code, save build artifacts, deploy, and more:
|
4
|
+
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
|
5
|
+
|
6
|
+
trigger:
|
7
|
+
- master
|
8
|
+
|
9
|
+
pool:
|
10
|
+
name: GrupoItssWindows
|
11
|
+
#vmImage: 'ubuntu-latest'
|
12
|
+
vmImage: 'windows-latest'
|
13
|
+
|
14
|
+
steps:
|
15
|
+
- task: NodeTool@0
|
16
|
+
inputs:
|
17
|
+
versionSpec: '10.x'
|
18
|
+
displayName: 'Install Node.js'
|
19
|
+
|
20
|
+
#- script: |
|
21
|
+
# npm install -g @angular/cli
|
22
|
+
# npm install
|
23
|
+
# npm run publish
|
24
|
+
# displayName: 'npm install and build'
|
25
|
+
# #customRegistry: 'useNpmrc'
|
26
|
+
|
27
|
+
- task: Bash@3
|
28
|
+
inputs:
|
29
|
+
targetType: 'inline'
|
30
|
+
script: |
|
31
|
+
npm install -g @angular/cli
|
32
|
+
npm install
|
33
|
+
npm run publish
|
34
|
+
customRegistry: 'useNpmrc'
|
35
|
+
# ng build --prod
|
package/package.json
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
{
|
2
|
+
"name": "@gipisistemas/ng-core",
|
3
|
+
"version": "1.0.67",
|
4
|
+
"scripts": {
|
5
|
+
"ng": "ng",
|
6
|
+
"start": "ng serve",
|
7
|
+
"build": "ng build",
|
8
|
+
"test": "ng test",
|
9
|
+
"lint": "ng lint",
|
10
|
+
"e2e": "ng e2e",
|
11
|
+
"build_lib": "ng build itss-ng",
|
12
|
+
"npm_pack": "cd dist/itss-ng && npm pack",
|
13
|
+
"copy_assets": "run-script-os",
|
14
|
+
"copy_assets:darwin:linux": "rsync -aqz \"./projects/itss-ng/src/assets\" \"./dist/itss-ng/\"",
|
15
|
+
"copy_assets:win32": "md \"./dist/itss-ng/assets\" && xcopy \"./projects/itss-ng/src/assets\" \"./dist/itss-ng/assets\" /s/h/e/k/f/c",
|
16
|
+
"package": "rm -rf dist && npm run build_lib && npm run copy_assets && npm run npm_pack",
|
17
|
+
"publish": "rm -rf dist && npm run build_lib && npm run copy_assets && cd dist/itss-ng && npm publish ",
|
18
|
+
"refreshVSToken": "vsts-npm-auth -config .npmrc",
|
19
|
+
"updateVersionMajor": "npm version major",
|
20
|
+
"updateVersionMinor": "npm version minor",
|
21
|
+
"updateVersionPatch": "npm version patch"
|
22
|
+
},
|
23
|
+
"private": false,
|
24
|
+
"dependencies": {
|
25
|
+
"@angular/animations": "~8.2.3",
|
26
|
+
"@angular/cdk": "~8.2.1",
|
27
|
+
"@angular/cdk-experimental": "~8.1.3",
|
28
|
+
"@angular/common": "~8.2.3",
|
29
|
+
"@angular/compiler": "~8.2.3",
|
30
|
+
"@angular/core": "~8.2.3",
|
31
|
+
"@angular/flex-layout": "~8.0.0-beta.27",
|
32
|
+
"@angular/forms": "~8.2.3",
|
33
|
+
"@angular/material": "~8.1.3",
|
34
|
+
"@angular/material-moment-adapter": "^8.2.3",
|
35
|
+
"@angular/platform-browser": "~8.2.3",
|
36
|
+
"@angular/platform-browser-dynamic": "~8.2.3",
|
37
|
+
"@angular/router": "~8.2.3",
|
38
|
+
"@brazilian-utils/brazilian-utils": "^1.0.0-rc.12",
|
39
|
+
"@material-extended/mde": "^2.3.1",
|
40
|
+
"@ngx-pwa/local-storage": "^8.2.4",
|
41
|
+
"angular-mentions": "1.1.6",
|
42
|
+
"libphonenumber-js": "^1.11.4",
|
43
|
+
"lodash": "^4.17.15",
|
44
|
+
"moment": "^2.27.0",
|
45
|
+
"ngx-currency": "^2.0.0",
|
46
|
+
"ngx-infinite-scroll": "^9.0.0",
|
47
|
+
"ngx-mask": "^8.1.6",
|
48
|
+
"ngx-material-timepicker": "^5.5.3",
|
49
|
+
"node-sass": "^4.13.0",
|
50
|
+
"package": "^1.0.1",
|
51
|
+
"pkg": "^4.4.9",
|
52
|
+
"rxjs": "~6.4.0",
|
53
|
+
"tslib": "^1.10.0",
|
54
|
+
"zone.js": "~0.9.1"
|
55
|
+
},
|
56
|
+
"publishConfig": {
|
57
|
+
"access": "public"
|
58
|
+
},
|
59
|
+
"devDependencies": {
|
60
|
+
"@angular-devkit/architect": "~0.803.26",
|
61
|
+
"@angular-devkit/build-angular": "~0.803.1",
|
62
|
+
"@angular-devkit/build-ng-packagr": "~0.803.2",
|
63
|
+
"@angular/cli": "~8.3.1",
|
64
|
+
"@angular/compiler-cli": "~8.2.3",
|
65
|
+
"@angular/language-service": "~8.2.3",
|
66
|
+
"@types/jasmine": "~3.3.8",
|
67
|
+
"@types/jasminewd2": "~2.0.3",
|
68
|
+
"@types/node": "~8.9.4",
|
69
|
+
"codelyzer": "^5.0.0",
|
70
|
+
"jasmine-core": "~3.4.0",
|
71
|
+
"jasmine-spec-reporter": "~4.2.1",
|
72
|
+
"karma": "~4.1.0",
|
73
|
+
"karma-chrome-launcher": "~2.2.0",
|
74
|
+
"karma-coverage-istanbul-reporter": "~2.0.1",
|
75
|
+
"karma-jasmine": "~2.0.1",
|
76
|
+
"karma-jasmine-html-reporter": "^1.4.0",
|
77
|
+
"ng-packagr": "^5.4.0",
|
78
|
+
"protractor": "~5.4.0",
|
79
|
+
"run-script-os": "^1.0.7",
|
80
|
+
"ts-node": "~7.0.0",
|
81
|
+
"tsickle": "^0.37.0",
|
82
|
+
"tslint": "~5.15.0",
|
83
|
+
"typescript": "^3.9.7"
|
84
|
+
}
|
85
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
{
|
2
|
+
"name": "@gipi-sistemas/ng-core",
|
3
|
+
"version": "1.0.67",
|
4
|
+
"scripts": {
|
5
|
+
"updateVersionMajor": "npm version major",
|
6
|
+
"updateVersionMinor": "npm version minor",
|
7
|
+
"updateVersionPatch": "npm version patch"
|
8
|
+
},
|
9
|
+
"peerDependencies": {
|
10
|
+
"@angular/common": "~8.2.3",
|
11
|
+
"@angular/core": "~8.2.3",
|
12
|
+
"@angular/cdk": "~8.2.1",
|
13
|
+
"@angular/cdk-experimental": "~8.1.3",
|
14
|
+
"@angular/material": "~8.1.3",
|
15
|
+
"@angular/flex-layout": "~8.0.0-beta.27",
|
16
|
+
"@material-extended/mde": "^2.3.1",
|
17
|
+
"ngx-currency": "^2.3.3",
|
18
|
+
"ngx-mask": "^9.1.2",
|
19
|
+
"lodash": "^4.17.15",
|
20
|
+
"ngx-infinite-scroll": "^9.0.0",
|
21
|
+
"moment": "^2.27.0",
|
22
|
+
"@brazilian-utils/brazilian-utils": "^1.0.0-rc.12"
|
23
|
+
},
|
24
|
+
"private": false
|
25
|
+
}
|