@digipair/skill-web-ionic 0.89.0 → 0.91.0-0

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/.swcrc ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "jsc": {
3
+ "target": "es2017",
4
+ "parser": {
5
+ "syntax": "typescript",
6
+ "decorators": true,
7
+ "dynamicImport": true
8
+ },
9
+ "transform": {
10
+ "decoratorMetadata": true,
11
+ "legacyDecorator": true
12
+ },
13
+ "keepClassNames": true,
14
+ "externalHelpers": true,
15
+ "loose": true
16
+ },
17
+ "module": {
18
+ "type": "es6"
19
+ },
20
+ "sourceMaps": true,
21
+ "exclude": [
22
+ "jest.config.ts",
23
+ ".*\\.spec.tsx?$",
24
+ ".*\\.test.tsx?$",
25
+ "./src/jest-setup.ts$",
26
+ "./**/jest-setup.ts$"
27
+ ]
28
+ }
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # mylib
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Building
6
+
7
+ Run `nx build mylib` to build the library.
@@ -0,0 +1,22 @@
1
+ import baseConfig from '../../eslint.config.mjs';
2
+
3
+ export default [
4
+ ...baseConfig,
5
+ {
6
+ files: ['**/*.json'],
7
+ rules: {
8
+ '@nx/dependency-checks': [
9
+ 'error',
10
+ {
11
+ ignoredFiles: [
12
+ '{projectRoot}/eslint.config.{js,cjs,mjs}',
13
+ '{projectRoot}/rollup.config.{js,ts,mjs,mts,cjs,cts}',
14
+ ],
15
+ },
16
+ ],
17
+ },
18
+ languageOptions: {
19
+ parser: await import('jsonc-eslint-parser'),
20
+ },
21
+ },
22
+ ];
package/package.json CHANGED
@@ -1,12 +1,28 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-ionic",
3
- "version": "0.89.0",
3
+ "version": "0.91.0-0",
4
+ "type": "module",
5
+ "main": "dist/libs/skill-web-ionic/index.cjs.js",
6
+ "module": "dist/libs/skill-web-ionic/index.esm.js",
7
+ "types": "dist/libs/skill-web-ionic/index.esm.d.ts",
8
+ "exports": {
9
+ "./package.json": "./libs/skill-web-ionic/package.json",
10
+ ".": {
11
+ "development": "./dist/libs/skill-web-ionic/src/index.ts",
12
+ "types": "./dist/libs/skill-web-ionic/index.esm.d.ts",
13
+ "import": "./dist/libs/skill-web-ionic/index.esm.js",
14
+ "default": "./dist/libs/skill-web-ionic/index.cjs.js"
15
+ }
16
+ },
4
17
  "keywords": [
5
18
  "digipair",
6
19
  "web",
7
20
  "util"
8
21
  ],
9
- "dependencies": {},
10
- "main": "./index.cjs.js",
11
- "module": "./index.esm.js"
12
- }
22
+ "nx": {
23
+ "name": "skill-web-ionic"
24
+ },
25
+ "dependencies": {
26
+ "@digipair/engine": "0.91.0-0"
27
+ }
28
+ }
@@ -0,0 +1,28 @@
1
+ const { withNx } = require('@nx/rollup/with-nx');
2
+
3
+ module.exports = withNx(
4
+ {
5
+ main: 'libs/skill-web-ionic/src/index.ts',
6
+ outputPath: 'dist/libs/skill-web-ionic',
7
+ tsConfig: 'libs/skill-web-ionic/tsconfig.lib.json',
8
+ compiler: 'swc',
9
+ format: ['esm', "cjs"],
10
+ assets: [
11
+ {
12
+ input: 'libs/skill-web-ionic/',
13
+ glob: 'package.json',
14
+ output: '.'
15
+ },
16
+ {
17
+ input: 'libs/skill-web-ionic/src/',
18
+ glob: '*.json',
19
+ output: '.'
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ // Provide additional rollup configuration here. See: https://rollupjs.org/configuration-options
25
+ // e.g.
26
+ // output: { sourcemap: true },
27
+ }
28
+ );
@@ -0,0 +1,7 @@
1
+ import { skillWebIonic } from './skill-web-ionic';
2
+
3
+ describe('skillWebIonic', () => {
4
+ it('should work', () => {
5
+ expect(skillWebIonic()).toEqual('skill-web-ionic');
6
+ });
7
+ });
@@ -1,16 +1,19 @@
1
- const globalInstance = typeof window === 'undefined' ? global : window;
1
+ const globalInstance: any = typeof window === 'undefined' ? global : window;
2
2
  const config = globalInstance.__DIGIPAIR_CONFIG__;
3
3
  const version = '8';
4
+
4
5
  const coreStyles = document.createElement('link');
5
6
  coreStyles.rel = 'stylesheet';
6
7
  coreStyles.type = 'text/css';
7
8
  coreStyles.href = `${config.BASE_URL}/@ionic/core@${version}/css/core.css`;
8
9
  document.head.appendChild(coreStyles);
10
+
9
11
  const ionicBundleStyles = document.createElement('link');
10
12
  ionicBundleStyles.rel = 'stylesheet';
11
13
  ionicBundleStyles.type = 'text/css';
12
14
  ionicBundleStyles.href = `${config.BASE_URL}/@ionic/core@${version}/css/ionic.bundle.css`;
13
15
  document.head.appendChild(ionicBundleStyles);
16
+
14
17
  const ionicScript = document.createElement('script');
15
18
  ionicScript.type = 'module';
16
19
  ionicScript.src = `${config.BASE_URL}/@ionic/core@${version}/dist/ionic/ionic.esm.js`;
package/tsconfig.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+ "files": [],
4
+ "include": [],
5
+ "references": [
6
+ {
7
+ "path": "../engine"
8
+ },
9
+ {
10
+ "path": "./tsconfig.lib.json"
11
+ }
12
+ ]
13
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "rootDir": "src",
5
+ "outDir": "dist",
6
+ "tsBuildInfoFile": "dist/tsconfig.lib.tsbuildinfo",
7
+ "emitDeclarationOnly": true,
8
+ "module": "esnext",
9
+ "moduleResolution": "node",
10
+ "forceConsistentCasingInFileNames": true,
11
+ "types": ["node"]
12
+ },
13
+ "include": ["src/**/*.ts"],
14
+ "references": [
15
+ {
16
+ "path": "../engine/tsconfig.lib.json"
17
+ }
18
+ ]
19
+ }
package/index.cjs.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./src/index";
package/index.cjs.js DELETED
@@ -1,19 +0,0 @@
1
- 'use strict';
2
-
3
- const globalInstance = typeof window === 'undefined' ? global : window;
4
- const config = globalInstance.__DIGIPAIR_CONFIG__;
5
- const version = '8';
6
- const coreStyles = document.createElement('link');
7
- coreStyles.rel = 'stylesheet';
8
- coreStyles.type = 'text/css';
9
- coreStyles.href = `${config.BASE_URL}/@ionic/core@${version}/css/core.css`;
10
- document.head.appendChild(coreStyles);
11
- const ionicBundleStyles = document.createElement('link');
12
- ionicBundleStyles.rel = 'stylesheet';
13
- ionicBundleStyles.type = 'text/css';
14
- ionicBundleStyles.href = `${config.BASE_URL}/@ionic/core@${version}/css/ionic.bundle.css`;
15
- document.head.appendChild(ionicBundleStyles);
16
- const ionicScript = document.createElement('script');
17
- ionicScript.type = 'module';
18
- ionicScript.src = `${config.BASE_URL}/@ionic/core@${version}/dist/ionic/ionic.esm.js`;
19
- document.head.appendChild(ionicScript);
@@ -1,6 +0,0 @@
1
- declare const globalInstance: any;
2
- declare const config: any;
3
- declare const version = "8";
4
- declare const coreStyles: HTMLLinkElement;
5
- declare const ionicBundleStyles: HTMLLinkElement;
6
- declare const ionicScript: HTMLScriptElement;
File without changes
File without changes
File without changes