Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Commit

Permalink
feat(postprocessing): add postprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
nartc committed Dec 2, 2021
1 parent 2446d59 commit ebc5742
Show file tree
Hide file tree
Showing 18 changed files with 219 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"cannon-es": "0.18.0",
"cannon-es-debugger": "0.1.4",
"nice-color-palettes": "3.0.0",
"postprocessing": "6.23.2",
"rxjs": "~7.4.0",
"three": "0.134.0",
"three-stdlib": "~2.6.0",
Expand Down
16 changes: 16 additions & 0 deletions packages/postprocessing/.browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# For the full list of supported browsers by the Angular framework, please see:
# https://angular.io/guide/browser-support

# You can see what browsers were selected by your queries by running:
# npx browserslist

last 1 Chrome version
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
36 changes: 36 additions & 0 deletions packages/postprocessing/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts"],
"extends": [
"plugin:@nrwl/nx/angular",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "ngt",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "ngt",
"style": "kebab-case"
}
]
}
},
{
"files": ["*.html"],
"extends": ["plugin:@nrwl/nx/angular-template"],
"rules": {}
}
]
}
7 changes: 7 additions & 0 deletions packages/postprocessing/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# postprocessing

This library was generated with [Nx](https://nx.dev).

## Running unit tests

Run `nx test postprocessing` to execute the unit tests.
21 changes: 21 additions & 0 deletions packages/postprocessing/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
displayName: 'postprocessing',
preset: '../../jest.preset.js',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json',
stringifyContentPathRegex: '\\.(html|svg)$',
},
},
coverageDirectory: '../../coverage/packages/postprocessing',
transform: {
'^.+\\.(ts|mjs|js|html)$': 'jest-preset-angular',
},
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
snapshotSerializers: [
'jest-preset-angular/build/serializers/no-ng-attributes',
'jest-preset-angular/build/serializers/ng-snapshot',
'jest-preset-angular/build/serializers/html-comment',
],
};
7 changes: 7 additions & 0 deletions packages/postprocessing/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/packages/postprocessing",
"lib": {
"entryFile": "src/index.ts"
}
}
15 changes: 15 additions & 0 deletions packages/postprocessing/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "@angular-three/postprocessing",
"version": "2.0.0-beta.9",
"publishConfig": {
"access": "public"
},
"peerDependencies": {
"@angular/common": "^13.0.0",
"@angular/core": "^13.0.0"
},
"dependencies": {
"postprocessing": "~6.23.2",
"tslib": "^2.3.0"
}
}
42 changes: 42 additions & 0 deletions packages/postprocessing/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"projectType": "library",
"root": "packages/postprocessing",
"sourceRoot": "packages/postprocessing/src",
"prefix": "ngt",
"targets": {
"build": {
"executor": "@nrwl/angular:package",
"outputs": ["dist/packages/postprocessing"],
"options": {
"project": "packages/postprocessing/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "packages/postprocessing/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "packages/postprocessing/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
},
"test": {
"executor": "@nrwl/jest:jest",
"outputs": ["coverage/packages/postprocessing"],
"options": {
"jestConfig": "packages/postprocessing/jest.config.js",
"passWithNoTests": true
}
},
"lint": {
"executor": "@nrwl/linter:eslint",
"options": {
"lintFilePatterns": [
"packages/postprocessing/src/**/*.ts",
"packages/postprocessing/src/**/*.html"
]
}
}
},
"tags": ["scope:postprocessing", "type:lib"]
}
1 change: 1 addition & 0 deletions packages/postprocessing/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './lib/postprocessing.module';
7 changes: 7 additions & 0 deletions packages/postprocessing/src/lib/postprocessing.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';

@NgModule({
imports: [CommonModule],
})
export class PostprocessingModule {}
1 change: 1 addition & 0 deletions packages/postprocessing/src/test-setup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import 'jest-preset-angular/setup-jest';
27 changes: 27 additions & 0 deletions packages/postprocessing/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"extends": "../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
},
{
"path": "./tsconfig.lib.prod.json"
},
{
"path": "./tsconfig.spec.json"
}
],
"compilerOptions": {
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
},
"angularCompilerOptions": {
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
}
}
12 changes: 12 additions & 0 deletions packages/postprocessing/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"declaration": true,
"declarationMap": true,
"inlineSources": true,
"types": []
},
"exclude": ["src/test-setup.ts", "**/*.spec.ts", "**/*.test.ts"],
"include": ["**/*.ts"]
}
9 changes: 9 additions & 0 deletions packages/postprocessing/tsconfig.lib.prod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.lib.json",
"compilerOptions": {
"declarationMap": false
},
"angularCompilerOptions": {
"compilationMode": "partial"
}
}
10 changes: 10 additions & 0 deletions packages/postprocessing/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"]
},
"files": ["src/test-setup.ts"],
"include": ["**/*.test.ts", "**/*.spec.ts", "**/*.d.ts"]
}
1 change: 1 addition & 0 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"@angular-three/core/sprites": ["packages/core/sprites/src/index.ts"],
"@angular-three/core/stats": ["packages/core/stats/src/index.ts"],
"@angular-three/core/textures": ["packages/core/textures/src/index.ts"],
"@angular-three/postprocessing": ["packages/postprocessing/src/index.ts"],
"@angular-three/soba": ["packages/soba/src/index.ts"],
"@angular-three/soba/controls": ["packages/soba/controls/src/index.ts"],
"@angular-three/soba/loaders": ["packages/soba/loaders/src/index.ts"],
Expand Down
1 change: 1 addition & 0 deletions workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"cannon": "packages/cannon",
"core": "packages/core",
"demo": "packages/demo",
"postprocessing": "packages/postprocessing",
"soba": "packages/soba"
}
}
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8065,6 +8065,11 @@ postcss@^8.2.15, postcss@^8.2.4, postcss@^8.3, postcss@^8.3.7, postcss@^8.4.4:
picocolors "^1.0.0"
source-map-js "^1.0.1"

postprocessing@6.23.2:
version "6.23.2"
resolved "https://registry.yarnpkg.com/postprocessing/-/postprocessing-6.23.2.tgz#51b0e0265fa2b70ff5ed043d3c53970e177d1ee1"
integrity sha512-DnkWnZzVPXMl3/fhqWDDRZ2BnD08OCxqNpOx2xaj04sg5ShjMj4Gq1pNfUJZqzoUzr3IVJJD7UZP9DWGFp6jyw==

potpack@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/potpack/-/potpack-1.0.2.tgz#23b99e64eb74f5741ffe7656b5b5c4ddce8dfc14"
Expand Down

0 comments on commit ebc5742

Please sign in to comment.