Browse Source

Conexio amb la api

master
janmaroto 5 months ago
parent
commit
b12369cb47
  1. 0
      README.md
  2. 184
      angular.json
  3. 37
      e2e/protractor.conf.js
  4. 14
      e2e/src/app.e2e-spec.ts
  5. 11
      e2e/src/app.po.ts
  6. 12
      e2e/tsconfig.json
  7. 5
      ionic.config.json
  8. 44
      karma.conf.js
  9. 1
      node_modules/.bin/acorn
  10. 1
      node_modules/.bin/ansi-html
  11. 1
      node_modules/.bin/atob
  12. 1
      node_modules/.bin/autoprefixer
  13. 1
      node_modules/.bin/blocking-proxy
  14. 1
      node_modules/.bin/browserslist
  15. 1
      node_modules/.bin/build-optimizer
  16. 1
      node_modules/.bin/css-blank-pseudo
  17. 1
      node_modules/.bin/css-has-pseudo
  18. 1
      node_modules/.bin/css-prefers-color-scheme
  19. 1
      node_modules/.bin/cssesc
  20. 1
      node_modules/.bin/errno
  21. 1
      node_modules/.bin/eslint
  22. 1
      node_modules/.bin/esparse
  23. 1
      node_modules/.bin/esvalidate
  24. 1
      node_modules/.bin/image-size
  25. 1
      node_modules/.bin/import-local-fixture
  26. 1
      node_modules/.bin/installed-package-contents
  27. 1
      node_modules/.bin/is-docker
  28. 1
      node_modules/.bin/ivy-ngcc
  29. 1
      node_modules/.bin/jasmine
  30. 1
      node_modules/.bin/js-yaml
  31. 1
      node_modules/.bin/jsdoctypeparser
  32. 1
      node_modules/.bin/jsesc
  33. 1
      node_modules/.bin/json5
  34. 1
      node_modules/.bin/karma
  35. 1
      node_modules/.bin/lessc
  36. 1
      node_modules/.bin/mime
  37. 1
      node_modules/.bin/mkdirp
  38. 1
      node_modules/.bin/multicast-dns
  39. 1
      node_modules/.bin/nanoid
  40. 1
      node_modules/.bin/needle
  41. 1
      node_modules/.bin/ng
  42. 1
      node_modules/.bin/ng-xi18n
  43. 1
      node_modules/.bin/ngc
  44. 1
      node_modules/.bin/ngcc
  45. 1
      node_modules/.bin/node-gyp
  46. 1
      node_modules/.bin/nopt
  47. 1
      node_modules/.bin/npm-packlist
  48. 1
      node_modules/.bin/pacote
  49. 1
      node_modules/.bin/parser
  50. 1
      node_modules/.bin/protractor
  51. 1
      node_modules/.bin/regjsparser
  52. 1
      node_modules/.bin/rimraf
  53. 1
      node_modules/.bin/sass
  54. 1
      node_modules/.bin/semver
  55. 1
      node_modules/.bin/sshpk-conv
  56. 1
      node_modules/.bin/sshpk-sign
  57. 1
      node_modules/.bin/sshpk-verify
  58. 1
      node_modules/.bin/stencil
  59. 1
      node_modules/.bin/stylus
  60. 1
      node_modules/.bin/svgo
  61. 1
      node_modules/.bin/terser
  62. 1
      node_modules/.bin/tree-kill
  63. 1
      node_modules/.bin/ts-node
  64. 1
      node_modules/.bin/tsc
  65. 1
      node_modules/.bin/tsserver
  66. 1
      node_modules/.bin/uuid
  67. 1
      node_modules/.bin/webdriver-manager
  68. 1
      node_modules/.bin/webpack
  69. 1
      node_modules/.bin/webpack-dev-server
  70. 1
      node_modules/.bin/which
  71. 0
      node_modules/.cli-ngcc/51fc0a4e2306ed2e5485a138d39069fd789fdb5f0d1af8054368ff274de6d187.lock
  72. 21
      node_modules/@angular-devkit/architect/LICENSE
  73. 3
      node_modules/@angular-devkit/architect/README.md
  74. 11
      node_modules/@angular-devkit/architect/builders/all-of.d.ts
  75. 48
      node_modules/@angular-devkit/architect/builders/all-of.js
  76. 25
      node_modules/@angular-devkit/architect/builders/builders.json
  77. 11
      node_modules/@angular-devkit/architect/builders/concat.d.ts
  78. 45
      node_modules/@angular-devkit/architect/builders/concat.js
  79. 9
      node_modules/@angular-devkit/architect/builders/false.d.ts
  80. 14
      node_modules/@angular-devkit/architect/builders/false.js
  81. 4
      node_modules/@angular-devkit/architect/builders/noop-schema.json
  82. 19
      node_modules/@angular-devkit/architect/builders/operator-schema.d.ts
  83. 4
      node_modules/@angular-devkit/architect/builders/operator-schema.js
  84. 41
      node_modules/@angular-devkit/architect/builders/operator-schema.json
  85. 9
      node_modules/@angular-devkit/architect/builders/true.d.ts
  86. 11
      node_modules/@angular-devkit/architect/builders/true.js
  87. 28
      node_modules/@angular-devkit/architect/node/BUILD.bazel
  88. 8
      node_modules/@angular-devkit/architect/node/index.d.ts
  89. 20
      node_modules/@angular-devkit/architect/node/index.js
  90. 41
      node_modules/@angular-devkit/architect/node/node-modules-architect-host.d.ts
  91. 179
      node_modules/@angular-devkit/architect/node/node-modules-architect-host.js
  92. 65
      node_modules/@angular-devkit/architect/package.json
  93. 267
      node_modules/@angular-devkit/architect/src/api.d.ts
  94. 98
      node_modules/@angular-devkit/architect/src/api.js
  95. 25
      node_modules/@angular-devkit/architect/src/architect.d.ts
  96. 283
      node_modules/@angular-devkit/architect/src/architect.js
  97. 30
      node_modules/@angular-devkit/architect/src/builders-schema.d.ts
  98. 4
      node_modules/@angular-devkit/architect/src/builders-schema.js
  99. 62
      node_modules/@angular-devkit/architect/src/builders-schema.json
  100. 11
      node_modules/@angular-devkit/architect/src/create-builder.d.ts
  101. Some files were not shown because too many files have changed in this diff Show More

184
angular.json

@ -0,0 +1,184 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"defaultProject": "app",
"newProjectRoot": "projects",
"projects": {
"app": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"prefix": "app",
"schematics": {},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "www",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"assets": [
{
"glob": "**/*",
"input": "src/assets",
"output": "assets"
},
{
"glob": "**/*.svg",
"input": "node_modules/ionicons/dist/ionicons/svg",
"output": "./svg"
}
],
"styles": ["src/theme/variables.scss", "src/global.scss"],
"scripts": [],
"aot": false,
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
}
]
},
"ci": {
"progress": false
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "app:build"
},
"configurations": {
"production": {
"browserTarget": "app:build:production"
},
"ci": {
"progress": false
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "app:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"styles": [],
"scripts": [],
"assets": [
{
"glob": "favicon.ico",
"input": "src/",
"output": "/"
},
{
"glob": "**/*",
"input": "src/assets",
"output": "/assets"
}
]
},
"configurations": {
"ci": {
"progress": false,
"watch": false
}
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "app:serve"
},
"configurations": {
"production": {
"devServerTarget": "app:serve:production"
},
"ci": {
"devServerTarget": "app:serve:ci"
}
}
},
"ionic-cordova-build": {
"builder": "@ionic/angular-toolkit:cordova-build",
"options": {
"browserTarget": "app:build"
},
"configurations": {
"production": {
"browserTarget": "app:build:production"
}
}
},
"ionic-cordova-serve": {
"builder": "@ionic/angular-toolkit:cordova-serve",
"options": {
"cordovaBuildTarget": "app:ionic-cordova-build",
"devServerTarget": "app:serve"
},
"configurations": {
"production": {
"cordovaBuildTarget": "app:ionic-cordova-build:production",
"devServerTarget": "app:serve:production"
}
}
}
}
}
},
"cli": {
"defaultCollection": "@ionic/angular-toolkit"
},
"schematics": {
"@ionic/angular-toolkit:component": {
"styleext": "scss"
},
"@ionic/angular-toolkit:page": {
"styleext": "scss"
}
}
}

37
e2e/protractor.conf.js

@ -0,0 +1,37 @@
// @ts-check
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts
const { SpecReporter, StacktraceOption } = require('jasmine-spec-reporter');
/**
* @type { import("protractor").Config }
*/
exports.config = {
allScriptsTimeout: 11000,
specs: [
'./src/**/*.e2e-spec.ts'
],
capabilities: {
browserName: 'chrome'
},
directConnect: true,
SELENIUM_PROMISE_MANAGER: false,
baseUrl: 'http://localhost:4200/',
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000,
print: function() {}
},
onPrepare() {
require('ts-node').register({
project: require('path').join(__dirname, './tsconfig.json')
});
jasmine.getEnv().addReporter(new SpecReporter({
spec: {
displayStacktrace: StacktraceOption.PRETTY
}
}));
}
};

14
e2e/src/app.e2e-spec.ts

@ -0,0 +1,14 @@
import { AppPage } from './app.po';
describe('new App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should be blank', () => {
page.navigateTo();
expect(page.getParagraphText()).toContain('Start with Ionic UI Components');
});
});

11
e2e/src/app.po.ts

@ -0,0 +1,11 @@
import { browser, by, element } from 'protractor';
export class AppPage {
navigateTo() {
return browser.get('/');
}
getParagraphText() {
return element(by.deepCss('app-root ion-content')).getText();
}
}

12
e2e/tsconfig.json

@ -0,0 +1,12 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/e2e",
"module": "commonjs",
"target": "es2018",
"types": [
"jasmine",
"node"
]
}
}

5
ionic.config.json

@ -0,0 +1,5 @@
{
"name": "projecte_janmaroto",
"integrations": {},
"type": "angular"
}

44
karma.conf.js

@ -0,0 +1,44 @@
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage'),
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
jasmine: {
// you can add configuration options for Jasmine here
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
// for example, you can disable the random execution with `random: false`
// or set a specific seed with `seed: 4321`
},
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
jasmineHtmlReporter: {
suppressAll: true // removes the duplicated traces
},
coverageReporter: {
dir: require('path').join(__dirname, './coverage/ngv'),
subdir: '.',
reporters: [
{ type: 'html' },
{ type: 'text-summary' }
]
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
restartOnFileChange: true
});
};

1
node_modules/.bin/acorn generated vendored

@ -0,0 +1 @@
../acorn/bin/acorn

1
node_modules/.bin/ansi-html generated vendored

@ -0,0 +1 @@
../ansi-html/bin/ansi-html

1
node_modules/.bin/atob generated vendored

@ -0,0 +1 @@
../atob/bin/atob.js

1
node_modules/.bin/autoprefixer generated vendored

@ -0,0 +1 @@
../autoprefixer/bin/autoprefixer

1
node_modules/.bin/blocking-proxy generated vendored

@ -0,0 +1 @@
../blocking-proxy/built/lib/bin.js

1
node_modules/.bin/browserslist generated vendored

@ -0,0 +1 @@
../browserslist/cli.js

1
node_modules/.bin/build-optimizer generated vendored

@ -0,0 +1 @@
../@angular-devkit/build-optimizer/src/build-optimizer/cli.js

1
node_modules/.bin/css-blank-pseudo generated vendored

@ -0,0 +1 @@
../css-blank-pseudo/cli.js

1
node_modules/.bin/css-has-pseudo generated vendored

@ -0,0 +1 @@
../css-has-pseudo/cli.js

1
node_modules/.bin/css-prefers-color-scheme generated vendored

@ -0,0 +1 @@
../css-prefers-color-scheme/cli.js

1
node_modules/.bin/cssesc generated vendored

@ -0,0 +1 @@
../cssesc/bin/cssesc

1
node_modules/.bin/errno generated vendored

@ -0,0 +1 @@
../errno/cli.js

1
node_modules/.bin/eslint generated vendored

@ -0,0 +1 @@
../eslint/bin/eslint.js

1
node_modules/.bin/esparse generated vendored

@ -0,0 +1 @@
../esprima/bin/esparse.js

1
node_modules/.bin/esvalidate generated vendored

@ -0,0 +1 @@
../esprima/bin/esvalidate.js

1
node_modules/.bin/image-size generated vendored

@ -0,0 +1 @@
../image-size/bin/image-size.js

1
node_modules/.bin/import-local-fixture generated vendored

@ -0,0 +1 @@
../import-local/fixtures/cli.js

1
node_modules/.bin/installed-package-contents generated vendored

@ -0,0 +1 @@
../@npmcli/installed-package-contents/index.js

1
node_modules/.bin/is-docker generated vendored

@ -0,0 +1 @@
../is-docker/cli.js

1
node_modules/.bin/ivy-ngcc generated vendored

@ -0,0 +1 @@
../@angular/compiler-cli/ngcc/main-ivy-ngcc.js

1
node_modules/.bin/jasmine generated vendored

@ -0,0 +1 @@
../jasmine/bin/jasmine.js

1
node_modules/.bin/js-yaml generated vendored

@ -0,0 +1 @@
../js-yaml/bin/js-yaml.js

1
node_modules/.bin/jsdoctypeparser generated vendored

@ -0,0 +1 @@
../jsdoctypeparser/bin/jsdoctypeparser

1
node_modules/.bin/jsesc generated vendored

@ -0,0 +1 @@
../jsesc/bin/jsesc

1
node_modules/.bin/json5 generated vendored

@ -0,0 +1 @@
../json5/lib/cli.js

1
node_modules/.bin/karma generated vendored

@ -0,0 +1 @@
../karma/bin/karma

1
node_modules/.bin/lessc generated vendored

@ -0,0 +1 @@
../less/bin/lessc

1
node_modules/.bin/mime generated vendored

@ -0,0 +1 @@
../mime/cli.js

1
node_modules/.bin/mkdirp generated vendored

@ -0,0 +1 @@
../mkdirp/bin/cmd.js

1
node_modules/.bin/multicast-dns generated vendored

@ -0,0 +1 @@
../multicast-dns/cli.js

1
node_modules/.bin/nanoid generated vendored

@ -0,0 +1 @@
../nanoid/bin/nanoid.cjs

1
node_modules/.bin/needle generated vendored

@ -0,0 +1 @@
../needle/bin/needle

1
node_modules/.bin/ng generated vendored

@ -0,0 +1 @@
../@angular/cli/bin/ng

1
node_modules/.bin/ng-xi18n generated vendored

@ -0,0 +1 @@
../@angular/compiler-cli/src/extract_i18n.js

1
node_modules/.bin/ngc generated vendored

@ -0,0 +1 @@
../@angular/compiler-cli/src/main.js

1
node_modules/.bin/ngcc generated vendored

@ -0,0 +1 @@
../@angular/compiler-cli/ngcc/main-ngcc.js

1
node_modules/.bin/node-gyp generated vendored

@ -0,0 +1 @@
../node-gyp/bin/node-gyp.js

1
node_modules/.bin/nopt generated vendored

@ -0,0 +1 @@
../nopt/bin/nopt.js

1
node_modules/.bin/npm-packlist generated vendored

@ -0,0 +1 @@
../npm-packlist/bin/index.js

1
node_modules/.bin/pacote generated vendored

@ -0,0 +1 @@
../pacote/lib/bin.js

1
node_modules/.bin/parser generated vendored

@ -0,0 +1 @@
../@babel/parser/bin/babel-parser.js

1
node_modules/.bin/protractor generated vendored

@ -0,0 +1 @@
../protractor/bin/protractor

1
node_modules/.bin/regjsparser generated vendored

@ -0,0 +1 @@
../regjsparser/bin/parser

1
node_modules/.bin/rimraf generated vendored

@ -0,0 +1 @@
../rimraf/bin.js

1
node_modules/.bin/sass generated vendored

@ -0,0 +1 @@
../sass/sass.js

1
node_modules/.bin/semver generated vendored

@ -0,0 +1 @@
../semver/bin/semver.js

1
node_modules/.bin/sshpk-conv generated vendored

@ -0,0 +1 @@
../sshpk/bin/sshpk-conv

1
node_modules/.bin/sshpk-sign generated vendored

@ -0,0 +1 @@
../sshpk/bin/sshpk-sign

1
node_modules/.bin/sshpk-verify generated vendored

@ -0,0 +1 @@
../sshpk/bin/sshpk-verify

1
node_modules/.bin/stencil generated vendored

@ -0,0 +1 @@
../@stencil/core/bin/stencil

1
node_modules/.bin/stylus generated vendored

@ -0,0 +1 @@
../stylus/bin/stylus

1
node_modules/.bin/svgo generated vendored

@ -0,0 +1 @@
../svgo/bin/svgo

1
node_modules/.bin/terser generated vendored

@ -0,0 +1 @@
../terser/bin/terser

1
node_modules/.bin/tree-kill generated vendored

@ -0,0 +1 @@
../tree-kill/cli.js

1
node_modules/.bin/ts-node generated vendored

@ -0,0 +1 @@
../ts-node/dist/bin.js

1
node_modules/.bin/tsc generated vendored

@ -0,0 +1 @@
../typescript/bin/tsc

1
node_modules/.bin/tsserver generated vendored

@ -0,0 +1 @@
../typescript/bin/tsserver

1
node_modules/.bin/uuid generated vendored

@ -0,0 +1 @@
../uuid/bin/uuid

1
node_modules/.bin/webdriver-manager generated vendored

@ -0,0 +1 @@
../protractor/bin/webdriver-manager

1
node_modules/.bin/webpack generated vendored

@ -0,0 +1 @@
../webpack/bin/webpack.js

1
node_modules/.bin/webpack-dev-server generated vendored

@ -0,0 +1 @@
../webpack-dev-server/bin/webpack-dev-server.js

1
node_modules/.bin/which generated vendored

@ -0,0 +1 @@
../which/bin/which

0
node_modules/.cli-ngcc/51fc0a4e2306ed2e5485a138d39069fd789fdb5f0d1af8054368ff274de6d187.lock generated vendored

21
node_modules/@angular-devkit/architect/LICENSE generated vendored

@ -0,0 +1,21 @@
The MIT License
Copyright (c) 2017 Google, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

3
node_modules/@angular-devkit/architect/README.md generated vendored

@ -0,0 +1,3 @@
# Angular Build Facade
WIP

11
node_modules/@angular-devkit/architect/builders/all-of.d.ts generated vendored

@ -0,0 +1,11 @@
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { json } from '@angular-devkit/core';
import { Schema as OperatorSchema } from './operator-schema';
declare const _default: import("../src/internal").Builder<json.JsonObject & OperatorSchema>;
export default _default;

48
node_modules/@angular-devkit/architect/builders/all-of.js generated vendored

@ -0,0 +1,48 @@
"use strict";
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
Object.defineProperty(exports, "__esModule", { value: true });
const rxjs_1 = require("rxjs");
const operators_1 = require("rxjs/operators");
const src_1 = require("../src");
exports.default = src_1.createBuilder((options, context) => {
const allRuns = [];
context.reportProgress(0, (options.targets ? options.targets.length : 0) +
(options.builders ? options.builders.length : 0));
if (options.targets) {
allRuns.push(...options.targets.map(({ target: targetStr, overrides }, i) => {
const [project, target, configuration] = targetStr.split(/:/g, 3);
return context
.scheduleTarget({ project, target, configuration }, overrides || {})
.then((run) => [i, run]);
}));
}
if (options.builders) {
allRuns.push(...options.builders.map(({ builder, options }, i) => {
return context
.scheduleBuilder(builder, options || {})
.then((run) => [i, run]);
}));
}
const allResults = allRuns.map(() => null);
let n = 0;
context.reportProgress(n++, allRuns.length);
return rxjs_1.from(allRuns).pipe(operators_1.mergeMap((runPromise) => rxjs_1.from(runPromise)), operators_1.mergeMap(([i, run]) => run.output.pipe(operators_1.map((output) => [i, output]))), operators_1.mergeMap(([i, output]) => {
allResults[i] = output;
context.reportProgress(n++, allRuns.length);
if (allResults.some((x) => x === null)) {
// Some builders aren't done running yet.
return rxjs_1.EMPTY;
}
else {
return rxjs_1.of({
success: allResults.every((x) => (x ? x.success : false)),
});
}
}));
});

25
node_modules/@angular-devkit/architect/builders/builders.json generated vendored

@ -0,0 +1,25 @@
{
"$schema": "../src/builders-schema.json",
"builders": {
"true": {
"implementation": "./true",
"schema": "./noop-schema.json",
"description": "Always succeed."
},
"false": {
"implementation": "./false",
"schema": "./noop-schema.json",
"description": "Always fails."
},
"allOf": {
"implementation": "./all-of",
"schema": "./operator-schema.json",
"description": "A builder that executes many builders in parallel, and succeed if both succeeds."
},
"concat": {
"implementation": "./concat",
"schema": "./operator-schema.json",
"description": "A builder that executes many builders one after the other, and stops when one fail. It will succeed if all builders succeeds (and return the last output)"
}
}
}

11
node_modules/@angular-devkit/architect/builders/concat.d.ts generated vendored

@ -0,0 +1,11 @@
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { json } from '@angular-devkit/core';
import { Schema as OperatorSchema } from './operator-schema';
declare const _default: import("../src/internal").Builder<json.JsonObject & OperatorSchema>;
export default _default;

45
node_modules/@angular-devkit/architect/builders/concat.js generated vendored

@ -0,0 +1,45 @@
"use strict";
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
Object.defineProperty(exports, "__esModule", { value: true });
const rxjs_1 = require("rxjs");
const operators_1 = require("rxjs/operators");
const src_1 = require("../src");
exports.default = src_1.createBuilder((options, context) => {
const allRuns = [];
context.reportProgress(0, (options.targets ? options.targets.length : 0) +
(options.builders ? options.builders.length : 0));
if (options.targets) {
allRuns.push(...options.targets.map(({ target: targetStr, overrides }) => {
const [project, target, configuration] = targetStr.split(/:/g, 3);
return () => context.scheduleTarget({ project, target, configuration }, overrides || {});
}));
}
if (options.builders) {
allRuns.push(...options.builders.map(({ builder, options }) => {
return () => context.scheduleBuilder(builder, options || {});
}));
}
let stop = null;
let i = 0;
context.reportProgress(i++, allRuns.length);
return rxjs_1.from(allRuns).pipe(operators_1.concatMap((fn) => stop
? rxjs_1.of(null)
: rxjs_1.from(fn()).pipe(operators_1.switchMap((run) => (run === null ? rxjs_1.of(null) : run.output.pipe(operators_1.first()))))), operators_1.map((output) => {
context.reportProgress(i++, allRuns.length);
if (output === null || stop !== null) {
return stop || { success: false };
}
else if (output.success === false) {
return (stop = output);
}
else {
return output;
}
}), operators_1.last());
});

9
node_modules/@angular-devkit/architect/builders/false.d.ts generated vendored

@ -0,0 +1,9 @@
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
declare const _default: import("../src/internal").Builder<import("../../core/src").JsonObject>;
export default _default;

14
node_modules/@angular-devkit/architect/builders/false.js generated vendored

@ -0,0 +1,14 @@
"use strict";
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
Object.defineProperty(exports, "__esModule", { value: true });
const src_1 = require("../src");
exports.default = src_1.createBuilder(() => ({
success: false,
error: 'False builder always errors.',
}));

4
node_modules/@angular-devkit/architect/builders/noop-schema.json generated vendored

@ -0,0 +1,4 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"type": "object"
}

19
node_modules/@angular-devkit/architect/builders/operator-schema.d.ts generated vendored

@ -0,0 +1,19 @@
/**
* All input types of builders that perform operations on one or multiple sub-builders.
*/
export interface Schema {
builders?: Builder[];
targets?: Target[];
}
export interface Builder {
builder: string;
options?: {
[key: string]: any;
};
}
export interface Target {
overrides?: {
[key: string]: any;
};
target: string;
}

4
node_modules/@angular-devkit/architect/builders/operator-schema.js generated vendored

@ -0,0 +1,4 @@
"use strict";
// THIS FILE IS AUTOMATICALLY GENERATED. TO UPDATE THIS FILE YOU NEED TO CHANGE THE
// CORRESPONDING JSON SCHEMA FILE, THEN RUN devkit-admin build (or bazel build ...).
Object.defineProperty(exports, "__esModule", { value: true });

41
node_modules/@angular-devkit/architect/builders/operator-schema.json generated vendored

@ -0,0 +1,41 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"description": "All input types of builders that perform operations on one or multiple sub-builders.",
"type": "object",
"properties": {
"builders": {
"type": "array",
"items": {
"type": "object",
"properties": {
"builder": {
"type": "string",
"pattern": ".*:.*"
},
"options": {
"type": "object"
}
},
"required": ["builder"]
},
"minItems": 1
},
"targets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"target": {
"type": "string",
"pattern": ".*:.*"
},
"overrides": {
"type": "object"
}
},
"required": ["target"]
},
"minItems": 1
}
}
}

9
node_modules/@angular-devkit/architect/builders/true.d.ts generated vendored

@ -0,0 +1,9 @@
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
declare const _default: import("../src/internal").Builder<import("../../core/src").JsonObject>;
export default _default;

11
node_modules/@angular-devkit/architect/builders/true.js generated vendored

@ -0,0 +1,11 @@
"use strict";
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
Object.defineProperty(exports, "__esModule", { value: true });
const src_1 = require("../src");
exports.default = src_1.createBuilder(() => ({ success: true }));

28
node_modules/@angular-devkit/architect/node/BUILD.bazel generated vendored

@ -0,0 +1,28 @@
# Copyright Google Inc. All Rights Reserved.
#
# Use of this source code is governed by an MIT-style license that can be
# found in the LICENSE file at https://angular.io/license
load("//tools:defaults.bzl", "ts_library")
licenses(["notice"]) # MIT
package(default_visibility = ["//visibility:public"])
ts_library(
name = "node",
srcs = glob(
include = ["**/*.ts"],
exclude = ["**/*_spec.ts"],
),
module_name = "@angular-devkit/architect/node",
module_root = "index.d.ts",
# strict_checks = False,
deps = [
"//packages/angular_devkit/architect",
"//packages/angular_devkit/core",
"//packages/angular_devkit/core/node",
"@npm//@types/node",
"@npm//rxjs",
],
)

8
node_modules/@angular-devkit/architect/node/index.d.ts generated vendored

@ -0,0 +1,8 @@
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
export * from './node-modules-architect-host';

20
node_modules/@angular-devkit/architect/node/index.js generated vendored

@ -0,0 +1,20 @@
"use strict";
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./node-modules-architect-host"), exports);

41
node_modules/@angular-devkit/architect/node/node-modules-architect-host.d.ts generated vendored

@ -0,0 +1,41 @@
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { json, workspaces } from '@angular-devkit/core';
import { BuilderInfo } from '../src';
import { Target } from '../src/input-schema';
import { ArchitectHost, Builder } from '../src/internal';
export declare type NodeModulesBuilderInfo = BuilderInfo & {
import: string;
};
export interface WorkspaceHost {
getBuilderName(project: string, target: string): Promise<string>;
getMetadata(project: string): Promise<json.JsonObject>;
getOptions(project: string, target: string, configuration?: string): Promise<json.JsonObject>;
hasTarget(project: string, target: string): Promise<boolean>;
getDefaultConfigurationName(project: string, target: string): Promise<string | undefined>;
}
export declare class WorkspaceNodeModulesArchitectHost implements ArchitectHost<NodeModulesBuilderInfo> {
protected _root: string;
private workspaceHost;
constructor(workspaceHost: WorkspaceHost, _root: string);
constructor(workspace: workspaces.WorkspaceDefinition, _root: string);
getBuilderNameForTarget(target: Target): Promise<string>;
/**
* Resolve a builder. This needs to be a string which will be used in a dynamic `import()`
* clause. This should throw if no builder can be found. The dynamic import will throw if
* it is unsupported.
* @param builderStr The name of the builder to be used.
* @returns All the info needed for the builder itself.
*/
resolveBuilder(builderStr: string): Promise<NodeModulesBuilderInfo>;
getCurrentDirectory(): Promise<string>;
getWorkspaceRoot(): Promise<string>;
getOptionsForTarget(target: Target): Promise<json.JsonObject | null>;
getProjectMetadata(target: Target | string): Promise<json.JsonObject | null>;
loadBuilder(info: NodeModulesBuilderInfo): Promise<Builder>;
}

179
node_modules/@angular-devkit/architect/node/node-modules-architect-host.js generated vendored

@ -0,0 +1,179 @@
"use strict";
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.WorkspaceNodeModulesArchitectHost = void 0;
const path = __importStar(require("path"));
const v8_1 = require("v8");
const internal_1 = require("../src/internal");
function clone(obj) {
try {
return v8_1.deserialize(v8_1.serialize(obj));
}
catch {
return JSON.parse(JSON.stringify(obj));
}
}
function findProjectTarget(workspace, project, target) {
const projectDefinition = workspace.projects.get(project);
if (!projectDefinition) {
throw new Error(`Project "${project}" does not exist.`);
}
const targetDefinition = projectDefinition.targets.get(target);
if (!targetDefinition) {
throw new Error('Project target does not exist.');
}
return targetDefinition;
}
class WorkspaceNodeModulesArchitectHost {
constructor(workspaceOrHost, _root) {
this._root = _root;
if ('getBuilderName' in workspaceOrHost) {
this.workspaceHost = workspaceOrHost;
}
else {
this.workspaceHost = {
async getBuilderName(project, target) {
const targetDefinition = findProjectTarget(workspaceOrHost, project, target);
return targetDefinition.builder;
},
async getOptions(project, target, configuration) {
var _a, _b, _c, _d;
const targetDefinition = findProjectTarget(workspaceOrHost, project, target);
if (configuration === undefined) {
return ((_a = targetDefinition.options) !== null && _a !== void 0 ? _a : {});
}
if (!((_b = targetDefinition.configurations) === null || _b === void 0 ? void 0 : _b[configuration])) {
throw new Error(`Configuration '${configuration}' is not set in the workspace.`);
}
return ((_d = (_c = targetDefinition.configurations) === null || _c === void 0 ? void 0 : _c[configuration]) !== null && _d !== void 0 ? _d : {});
},
async getMetadata(project) {
const projectDefinition = workspaceOrHost.projects.get(project);
if (!projectDefinition) {
throw new Error(`Project "${project}" does not exist.`);
}
return {
root: projectDefinition.root,
sourceRoot: projectDefinition.sourceRoot,
prefix: projectDefinition.prefix,
...clone(projectDefinition.extensions),
};
},
async hasTarget(project, target) {
var _a;
return !!((_a = workspaceOrHost.projects.get(project)) === null || _a === void 0 ? void 0 : _a.targets.has(target));
},
async getDefaultConfigurationName(project, target) {
var _a, _b;
return (_b = (_a = workspaceOrHost.projects.get(project)) === null || _a === void 0 ? void 0 : _a.targets.get(target)) === null || _b === void 0 ? void 0 : _b.defaultConfiguration;
},
};
}
}
async getBuilderNameForTarget(target) {
return this.workspaceHost.getBuilderName(target.project, target.target);
}
/**
* Resolve a builder. This needs to be a string which will be used in a dynamic `import()`
* clause. This should throw if no builder can be found. The dynamic import will throw if
* it is unsupported.
* @param builderStr The name of the builder to be used.
* @returns All the info needed for the builder itself.
*/
resolveBuilder(builderStr) {
const [packageName, builderName] = builderStr.split(':', 2);
if (!builderName) {
throw new Error('No builder name specified.');
}
const packageJsonPath = require.resolve(packageName + '/package.json', {
paths: [this._root],
});
const packageJson = require(packageJsonPath);
if (!packageJson['builders']) {
throw new Error(`Package ${JSON.stringify(packageName)} has no builders defined.`);
}
const builderJsonPath = path.resolve(path.dirname(packageJsonPath), packageJson['builders']);
const builderJson = require(builderJsonPath);
const builder = builderJson.builders && builderJson.builders[builderName];
if (!builder) {
throw new Error(`Cannot find builder ${JSON.stringify(builderStr)}.`);
}
const importPath = builder.implementation;
if (!importPath) {
throw new Error('Could not find the implementation for builder ' + builderStr);
}
return Promise.resolve({
name: builderStr,
builderName,
description: builder['description'],
optionSchema: require(path.resolve(path.dirname(builderJsonPath), builder.schema)),
import: path.resolve(path.dirname(builderJsonPath), importPath),
});
}
async getCurrentDirectory() {
return process.cwd();
}
async getWorkspaceRoot() {
return this._root;
}
async getOptionsForTarget(target) {
if (!(await this.workspaceHost.hasTarget(target.project, target.target))) {
return null;
}
let options = await this.workspaceHost.getOptions(target.project, target.target);
const targetConfiguration = target.configuration ||
(await this.workspaceHost.getDefaultConfigurationName(target.project, target.target));
if (targetConfiguration) {
const configurations = targetConfiguration.split(',').map((c) => c.trim());
for (const configuration of configurations) {
options = {
...options,
...(await this.workspaceHost.getOptions(target.project, target.target, configuration)),
};
}
}
return clone(options);
}
async getProjectMetadata(target) {
const projectName = typeof target === 'string' ? target : target.project;
const metadata = this.workspaceHost.getMetadata(projectName);
return metadata;
}
async loadBuilder(info) {
const builder = (await Promise.resolve().then(() => __importStar(require(info.import)))).default;
if (builder[internal_1.BuilderSymbol]) {
return builder;
}
// Default handling code is for old builders that incorrectly export `default` with non-ESM module
if (builder === null || builder === void 0 ? void 0 : builder.default[internal_1.BuilderSymbol]) {
return builder.default;
}
throw new Error('Builder is not a builder');
}
}
exports.WorkspaceNodeModulesArchitectHost = WorkspaceNodeModulesArchitectHost;

65
node_modules/@angular-devkit/architect/package.json generated vendored

@ -0,0 +1,65 @@
{
"_from": "@angular-devkit/architect@0.1201.4",
"_id": "@angular-devkit/architect@0.1201.4",
"_inBundle": false,
"_integrity": "sha512-hGO5NrZxV8Z7sILwokt7H+1sMf+5tJS9PJszvYlIBSzG0LBkOwwLQDb4MD42ATXFru57SXNqMZDVKoi1kTgxAw==",
"_location": "/@angular-devkit/architect",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "@angular-devkit/architect@0.1201.4",
"name": "@angular-devkit/architect",
"escapedName": "@angular-devkit%2farchitect",
"scope": "@angular-devkit",
"rawSpec": "0.1201.4",
"saveSpec": null,
"fetchSpec": "0.1201.4"
},
"_requiredBy": [
"/@angular-devkit/build-angular",
"/@angular-devkit/build-webpack",
"/@angular/cli"
],
"_resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.1201.4.tgz",
"_shasum": "bdd4ed088845bc5412ac8ab9dd4355953f09ea70",
"_spec": "@angular-devkit/architect@0.1201.4",
"_where": "/home/jack/Documents/JDA/m14/projecte_janmaroto/node_modules/@angular-devkit/build-angular",
"author": {
"name": "Angular Authors"
},
"bugs": {
"url": "https://github.com/angular/angular-cli/issues"
},
"builders": "./builders/builders.json",
"bundleDependencies": false,
"dependencies": {
"@angular-devkit/core": "12.1.4",
"rxjs": "6.6.7"
},
"deprecated": false,
"description": "Angular Build Facade",
"engines": {
"node": "^12.14.1 || >=14.0.0",
"npm": "^6.11.0 || ^7.5.6",
"yarn": ">= 1.13.0"
},
"experimental": true,
"homepage": "https://github.com/angular/angular-cli",
"keywords": [
"angular",
"Angular CLI",
"devkit",
"sdk",
"Angular DevKit"
],
"license": "MIT",
"main": "src/index.js",
"name": "@angular-devkit/architect",
"repository": {
"type": "git",
"url": "git+https://github.com/angular/angular-cli.git"
},
"typings": "src/index.d.ts",
"version": "0.1201.4"
}

267
node_modules/@angular-devkit/architect/src/api.d.ts generated vendored

@ -0,0 +1,267 @@
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { analytics, experimental, json, logging } from '@angular-devkit/core';
import { Observable, SubscribableOrPromise } from 'rxjs';
import { Schema as RealBuilderInput, Target as RealTarget } from './input-schema';
import { Schema as RealBuilderOutput } from './output-schema';
import { State as BuilderProgressState, Schema as RealBuilderProgress } from './progress-schema';
export declare type Target = json.JsonObject & RealTarget;
export { BuilderProgressState };
export declare type BuilderRegistry = experimental.jobs.Registry<json.JsonObject, BuilderInput, BuilderOutput>;
/**
* An API typed BuilderProgress. The interface generated from the schema is too permissive,
* so this API is the one we show in our API. Please note that not all fields are in there; this
* is in addition to fields in the schema.
*/
export declare type TypedBuilderProgress = {
state: BuilderProgressState.Stopped;
} | {
state: BuilderProgressState.Error;
error: json.JsonValue;
} | {
state: BuilderProgressState.Waiting;
status?: string;
} | {
state: BuilderProgressState.Running;
status?: string;
current: number;
total?: number;
};
/**
* Declaration of those types as JsonObject compatible. JsonObject is not compatible with
* optional members, so those wouldn't be directly assignable to our internal Json typings.
* Forcing the type to be both a JsonObject and the type from the Schema tells Typescript they
* are compatible (which they are).
* These types should be used everywhere.
*/
export declare type BuilderInput = json.JsonObject & RealBuilderInput;