@gettrx/core-components-angular 0.0.2 → 0.0.4
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/esm2020/gettrx-core-components-angular.mjs +5 -0
- package/esm2020/gettrx-module.mjs +21 -0
- package/esm2020/index.mjs +6 -0
- package/esm2020/lib/stencil-generated/angular-component-lib/utils.mjs +51 -0
- package/esm2020/lib/stencil-generated/components.mjs +799 -0
- package/fesm2015/gettrx-core-components-angular.mjs +857 -0
- package/fesm2015/gettrx-core-components-angular.mjs.map +1 -0
- package/fesm2020/gettrx-core-components-angular.mjs +857 -0
- package/fesm2020/gettrx-core-components-angular.mjs.map +1 -0
- package/gettrx-module.d.ts +7 -0
- package/{src/index.ts → index.d.ts} +0 -5
- package/lib/stencil-generated/angular-component-lib/utils.d.ts +9 -0
- package/lib/stencil-generated/components.d.ts +351 -0
- package/package.json +27 -20
- package/.browserslistrc +0 -16
- package/.eslintrc.js +0 -14
- package/ng-package.json +0 -8
- package/scripts/link-copy.js +0 -52
- package/src/gettrx-module.ts +0 -15
- package/tsconfig.json +0 -48
- package/tsconfig.lib.prod.json +0 -9
package/scripts/link-copy.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Script adopted from https://github.com/ionic-team/ionic-framework/
|
|
3
|
-
* MIT License (c) Copyright 2015-present Drifty Co.
|
|
4
|
-
*/
|
|
5
|
-
const fs = require("fs-extra");
|
|
6
|
-
const path = require("path");
|
|
7
|
-
|
|
8
|
-
let prjDir = process.argv[2];
|
|
9
|
-
if (!prjDir) {
|
|
10
|
-
throw new Error('local path required as last argument to "npm run build.link" command');
|
|
11
|
-
}
|
|
12
|
-
prjDir = path.join(__dirname, "../../../", prjDir);
|
|
13
|
-
|
|
14
|
-
copyPackage(prjDir, "core-components-angular");
|
|
15
|
-
copyPackage(prjDir, "core-components");
|
|
16
|
-
|
|
17
|
-
function copyPackage(prjDir, pkgName) {
|
|
18
|
-
const prjDest = path.join(prjDir, "node_modules", "@gettrx", pkgName);
|
|
19
|
-
|
|
20
|
-
const pkgSrcDir = path.join(__dirname, "..", "..", pkgName);
|
|
21
|
-
const pkgSrcDist = path.join(pkgSrcDir, "dist");
|
|
22
|
-
const pkgJsonPath = path.join(pkgSrcDir, "package.json");
|
|
23
|
-
const pkgJson = require(pkgJsonPath);
|
|
24
|
-
|
|
25
|
-
// make sure this local project exists
|
|
26
|
-
fs.emptyDirSync(prjDest);
|
|
27
|
-
|
|
28
|
-
let srcDir;
|
|
29
|
-
if (!pkgJson.files) {
|
|
30
|
-
srcDir = pkgSrcDist;
|
|
31
|
-
pkgJson.files = fs.readdirSync(pkgSrcDist);
|
|
32
|
-
} else {
|
|
33
|
-
srcDir = pkgSrcDir;
|
|
34
|
-
pkgJson.files.push("package.json");
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
pkgJson.files.forEach((f) => {
|
|
38
|
-
const src = path.join(srcDir, f);
|
|
39
|
-
const dest = path.join(prjDest, f);
|
|
40
|
-
|
|
41
|
-
console.log("copying:", src, "to", dest);
|
|
42
|
-
fs.copySync(src, dest);
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
const prjReadme = path.join(prjDest, "README.md");
|
|
46
|
-
console.log("readme:", prjReadme);
|
|
47
|
-
|
|
48
|
-
fs.writeFileSync(
|
|
49
|
-
prjReadme,
|
|
50
|
-
"@gettrx/" + pkgName + " copied from " + pkgSrcDir + ", " + new Date(),
|
|
51
|
-
);
|
|
52
|
-
}
|
package/src/gettrx-module.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { NgModule } from "@angular/core";
|
|
2
|
-
import { CommonModule } from "@angular/common";
|
|
3
|
-
import { applyPolyfills, defineCustomElements } from "@gettrx/core-components/loader";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
applyPolyfills().then(() => {
|
|
7
|
-
defineCustomElements();
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
@NgModule({
|
|
11
|
-
imports: [
|
|
12
|
-
CommonModule
|
|
13
|
-
]
|
|
14
|
-
})
|
|
15
|
-
export class GettrxModule {}
|
package/tsconfig.json
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
2
|
-
{
|
|
3
|
-
"angularCompilerOptions": {
|
|
4
|
-
"annotateForClosureCompiler": true,
|
|
5
|
-
"strictMetadataEmit": true,
|
|
6
|
-
"skipTemplateCodegen": true,
|
|
7
|
-
"fullTemplateTypeCheck": false,
|
|
8
|
-
"enableResourceInlining": true,
|
|
9
|
-
"enableIvy": true,
|
|
10
|
-
"compilationMode": "partial"
|
|
11
|
-
},
|
|
12
|
-
"compileOnSave": false,
|
|
13
|
-
"compilerOptions": {
|
|
14
|
-
"baseUrl": "./",
|
|
15
|
-
"outDir": "build/es2015",
|
|
16
|
-
"forceConsistentCasingInFileNames": true,
|
|
17
|
-
"strict": true,
|
|
18
|
-
"noPropertyAccessFromIndexSignature": true,
|
|
19
|
-
"noImplicitReturns": true,
|
|
20
|
-
"noFallthroughCasesInSwitch": true,
|
|
21
|
-
"sourceMap": true,
|
|
22
|
-
"declaration": false,
|
|
23
|
-
"declarationMap": false,
|
|
24
|
-
"downlevelIteration": true,
|
|
25
|
-
"experimentalDecorators": true,
|
|
26
|
-
"moduleResolution": "node",
|
|
27
|
-
"importHelpers": true,
|
|
28
|
-
"target": "ES2022",
|
|
29
|
-
"module": "ES2022",
|
|
30
|
-
"lib": [
|
|
31
|
-
"es2022",
|
|
32
|
-
"dom"
|
|
33
|
-
],
|
|
34
|
-
"paths": {
|
|
35
|
-
"core-components-angular": [
|
|
36
|
-
"dist/core-components-angular/core-components-angular",
|
|
37
|
-
"dist/core-components-angular"
|
|
38
|
-
]
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"exclude": [
|
|
42
|
-
"src/test.ts",
|
|
43
|
-
"**/*.spec.ts"
|
|
44
|
-
],
|
|
45
|
-
"files": [
|
|
46
|
-
"src/index.ts"
|
|
47
|
-
]
|
|
48
|
-
}
|