Skip to content

Commit

Permalink
feat: add @skyux/manifest (#2920)
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackbaud-SteveBrush authored Dec 3, 2024
1 parent e06ed5e commit 054ffcd
Show file tree
Hide file tree
Showing 100 changed files with 5,046 additions and 560 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
/node_modules
/temp
/tmp
__snapshots__
package-lock.json

# Don't format the following since the order of its import statements is deliberate.
Expand Down
1 change: 1 addition & 0 deletions .skyuxdev.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"config",
"e2e-schematics",
"eslint-config",
"manifest",
"packages",
"prettier-schematics",
"router",
Expand Down
2 changes: 1 addition & 1 deletion libs/components/config/src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export interface SkyuxConfigHostFrameOptionsNone {
blackbaud?: false;
none: true;
self?: false;
urls?: [];
urls?: string[];
}

export interface SkyuxConfigHostFrameOptionsOthers {
Expand Down
1 change: 1 addition & 0 deletions libs/components/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export { SkyLogService } from './lib/modules/log/log.service';
export { SkyLogLevel } from './lib/modules/log/types/log-level';
export { SKY_LOG_LEVEL } from './lib/modules/log/types/log-level-token';

export { SKY_BREAKPOINTS } from './lib/modules/breakpoint-observer/breakpoint';
export { SkyBreakpoint } from './lib/modules/breakpoint-observer/breakpoint';
export { SkyBreakpointObserver } from './lib/modules/breakpoint-observer/breakpoint-observer';
export { SKY_BREAKPOINT_OBSERVER } from './lib/modules/breakpoint-observer/breakpoint-observer.token';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* A list of all breakpoints.
* @internal
*/
export const SKY_BREAKPOINTS = ['xs', 'sm', 'md', 'lg'] as const;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class SkyLibResourcesService {
* @return an `Observable` of a resource string dictionary in the same shape as the passed dictionary.
*
* @example
* ```
* ```typescript
* service.getStrings({
* simpleKey: 'hello',
* arraySyntax: ['hi'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class SkyAppResourcesService {
* @return an `Observable` of a resource string dictionary in the same shape as the passed dictionary.
*
* @example
* ```
* ```typescript
* service.getStrings({
* simpleKey: 'hello',
* arraySyntax: ['hi'],
Expand Down
1 change: 1 addition & 0 deletions libs/components/manifest/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# @skyux/manifest (Internal SKY UX use only)
5 changes: 5 additions & 0 deletions libs/components/manifest/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const prettier = require('eslint-config-prettier');
const baseConfig = require('../../../eslint-base.config');
const overrides = require('../../../eslint-overrides.config');

module.exports = [...baseConfig, ...overrides, prettier];
26 changes: 26 additions & 0 deletions libs/components/manifest/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
export default {
displayName: 'manifest',
globals: {},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': [
'ts-jest',
{
tsconfig: '<rootDir>/tsconfig.spec.json',
},
],
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../../coverage/libs/components/manifest',
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
},
coveragePathIgnorePatterns: ['<rootDir>/src/schematics/testing'],
preset: '../../../jest.preset.js',
maxWorkers: 2,
};
36 changes: 36 additions & 0 deletions libs/components/manifest/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "@skyux/manifest",
"version": "0.0.0-PLACEHOLDER",
"author": "Blackbaud, Inc.",
"keywords": [
"blackbaud",
"skyux"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/blackbaud/skyux.git"
},
"bugs": {
"url": "https://github.com/blackbaud/skyux/issues"
},
"homepage": "https://github.com/blackbaud/skyux#readme",
"exports": {
".": {
"types": "./src/index.d.ts",
"default": "./src/index.js"
},
"./package.json": {
"default": "./package.json"
},
"./public-api.json": {
"default": "./public-api.json"
}
},
"dependencies": {
"tslib": "^2.6.3"
},
"optionalDependencies": {
"typedoc": "~0.26.11"
}
}
42 changes: 42 additions & 0 deletions libs/components/manifest/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "manifest",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/components/manifest/src",
"projectType": "library",
"tags": ["npm"],
"targets": {
"build": {
"executor": "@nx/js:tsc",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/libs/components/manifest",
"tsConfig": "libs/components/manifest/tsconfig.lib.json",
"packageJson": "libs/components/manifest/package.json",
"main": "libs/components/manifest/src/index.ts",
"assets": [
"libs/components/manifest/*.md",
"libs/components/manifest/public-api.json"
]
}
},
"postbuild": {
"executor": "nx:run-commands",
"options": {
"command": "ts-node --project ./scripts/tsconfig.json ./scripts/postbuild-manifest.ts"
}
},
"lint": {
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["{projectRoot}/**/*.ts"]
}
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/libs/components/manifest"],
"options": {
"jestConfig": "libs/components/manifest/jest.config.ts"
}
}
}
}
3 changes: 3 additions & 0 deletions libs/components/manifest/public-api.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"packages": {}
}
Loading

0 comments on commit 054ffcd

Please sign in to comment.