Skip to content

Commit

Permalink
feat(reoff): add basic office parsing infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
tefkah committed Feb 8, 2022
1 parent cc7fb0d commit 3adfb9d
Show file tree
Hide file tree
Showing 50 changed files with 548 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/ooxast/ooxast-util-to-jast/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": [["@nrwl/web/babel", { "useBuiltIns": "usage" }]]
}
18 changes: 18 additions & 0 deletions libs/ooxast/ooxast-util-to-jast/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": ["../../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}
7 changes: 7 additions & 0 deletions libs/ooxast/ooxast-util-to-jast/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# ooxast-ooxast-util-to-jast

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

## Running unit tests

Run `nx test ooxast-ooxast-util-to-jast` to execute the unit tests via [Jest](https://jestjs.io).
15 changes: 15 additions & 0 deletions libs/ooxast/ooxast-util-to-jast/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
displayName: 'ooxast-ooxast-util-to-jast',
preset: '../../../jest.preset.js',
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json',
},
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../../coverage/libs/ooxast/ooxast-util-to-jast',
}
4 changes: 4 additions & 0 deletions libs/ooxast/ooxast-util-to-jast/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "ooxast-util-to-jast",
"version": "0.0.1"
}
34 changes: 34 additions & 0 deletions libs/ooxast/ooxast-util-to-jast/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"root": "libs/ooxast/ooxast-util-to-jast",
"sourceRoot": "libs/ooxast/ooxast-util-to-jast/src",
"projectType": "library",
"targets": {
"lint": {
"executor": "@nrwl/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["libs/ooxast/ooxast-util-to-jast/**/*.ts"]
}
},
"test": {
"executor": "@nrwl/jest:jest",
"outputs": ["coverage/libs/ooxast/ooxast-util-to-jast"],
"options": {
"jestConfig": "libs/ooxast/ooxast-util-to-jast/jest.config.js",
"passWithNoTests": true
}
},
"build": {
"executor": "@nrwl/node:package",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/libs/ooxast/ooxast-util-to-jast",
"tsConfig": "libs/ooxast/ooxast-util-to-jast/tsconfig.lib.json",
"packageJson": "libs/ooxast/ooxast-util-to-jast/package.json",
"main": "libs/ooxast/ooxast-util-to-jast/src/index.ts",
"assets": ["libs/ooxast/ooxast-util-to-jast/*.md"]
}
}
},
"tags": []
}
1 change: 1 addition & 0 deletions libs/ooxast/ooxast-util-to-jast/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './lib/ooxast-ooxast-util-to-jast'
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { ooxastOoxastUtilToJast } from './ooxast-ooxast-util-to-jast'

describe('ooxastOoxastUtilToJast', () => {
it('should work', () => {
expect(ooxastOoxastUtilToJast()).toEqual('ooxast-ooxast-util-to-jast')
})
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function ooxastOoxastUtilToJast(): string {
return 'ooxast-ooxast-util-to-jast'
}
13 changes: 13 additions & 0 deletions libs/ooxast/ooxast-util-to-jast/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": "../../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}
11 changes: 11 additions & 0 deletions libs/ooxast/ooxast-util-to-jast/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "commonjs",
"outDir": "../../../dist/out-tsc",
"declaration": true,
"types": ["node"]
},
"exclude": ["**/*.spec.ts", "**/*.test.ts"],
"include": ["**/*.ts"]
}
19 changes: 19 additions & 0 deletions libs/ooxast/ooxast-util-to-jast/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"]
},
"include": [
"**/*.test.ts",
"**/*.spec.ts",
"**/*.test.tsx",
"**/*.spec.tsx",
"**/*.test.js",
"**/*.spec.js",
"**/*.test.jsx",
"**/*.spec.jsx",
"**/*.d.ts"
]
}
3 changes: 3 additions & 0 deletions libs/ooxast/ooxast/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": [["@nrwl/web/babel", { "useBuiltIns": "usage" }]]
}
18 changes: 18 additions & 0 deletions libs/ooxast/ooxast/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": ["../../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}
7 changes: 7 additions & 0 deletions libs/ooxast/ooxast/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# ooxast-ooxast

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

## Running unit tests

Run `nx test ooxast-ooxast` to execute the unit tests via [Jest](https://jestjs.io).
15 changes: 15 additions & 0 deletions libs/ooxast/ooxast/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
displayName: 'ooxast-ooxast',
preset: '../../../jest.preset.js',
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json',
},
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../../coverage/libs/ooxast/ooxast',
}
4 changes: 4 additions & 0 deletions libs/ooxast/ooxast/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "ooxast",
"version": "0.0.1"
}
34 changes: 34 additions & 0 deletions libs/ooxast/ooxast/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"root": "libs/ooxast/ooxast",
"sourceRoot": "libs/ooxast/ooxast/src",
"projectType": "library",
"targets": {
"lint": {
"executor": "@nrwl/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["libs/ooxast/ooxast/**/*.ts"]
}
},
"test": {
"executor": "@nrwl/jest:jest",
"outputs": ["coverage/libs/ooxast/ooxast"],
"options": {
"jestConfig": "libs/ooxast/ooxast/jest.config.js",
"passWithNoTests": true
}
},
"build": {
"executor": "@nrwl/node:package",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/libs/ooxast/ooxast",
"tsConfig": "libs/ooxast/ooxast/tsconfig.lib.json",
"packageJson": "libs/ooxast/ooxast/package.json",
"main": "libs/ooxast/ooxast/src/index.ts",
"assets": ["libs/ooxast/ooxast/*.md"]
}
}
},
"tags": []
}
1 change: 1 addition & 0 deletions libs/ooxast/ooxast/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './lib/ooxast-ooxast'
7 changes: 7 additions & 0 deletions libs/ooxast/ooxast/src/lib/ooxast-ooxast.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { ooxastOoxast } from './ooxast-ooxast'

describe('ooxastOoxast', () => {
it('should work', () => {
expect(ooxastOoxast()).toEqual('ooxast-ooxast')
})
})
3 changes: 3 additions & 0 deletions libs/ooxast/ooxast/src/lib/ooxast-ooxast.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function ooxastOoxast(): string {
return 'ooxast-ooxast'
}
13 changes: 13 additions & 0 deletions libs/ooxast/ooxast/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": "../../../tsconfig.base.json",
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}
11 changes: 11 additions & 0 deletions libs/ooxast/ooxast/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "commonjs",
"outDir": "../../../dist/out-tsc",
"declaration": true,
"types": ["node"]
},
"exclude": ["**/*.spec.ts", "**/*.test.ts"],
"include": ["**/*.ts"]
}
19 changes: 19 additions & 0 deletions libs/ooxast/ooxast/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"]
},
"include": [
"**/*.test.ts",
"**/*.spec.ts",
"**/*.test.tsx",
"**/*.spec.tsx",
"**/*.test.js",
"**/*.spec.js",
"**/*.test.jsx",
"**/*.spec.jsx",
"**/*.d.ts"
]
}
3 changes: 3 additions & 0 deletions libs/reoff/reoff-parse/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": [["@nrwl/web/babel", { "useBuiltIns": "usage" }]]
}
18 changes: 18 additions & 0 deletions libs/reoff/reoff-parse/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extends": ["../../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}
7 changes: 7 additions & 0 deletions libs/reoff/reoff-parse/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# reoff-reoff-parse

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

## Running unit tests

Run `nx test reoff-reoff-parse` to execute the unit tests via [Jest](https://jestjs.io).
15 changes: 15 additions & 0 deletions libs/reoff/reoff-parse/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
displayName: 'reoff-reoff-parse',
preset: '../../../jest.preset.js',
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json',
},
},
testEnvironment: 'node',
transform: {
'^.+\\.[tj]sx?$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../../coverage/libs/reoff/reoff-parse',
}
4 changes: 4 additions & 0 deletions libs/reoff/reoff-parse/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "reoff-parse",
"version": "0.0.1"
}
34 changes: 34 additions & 0 deletions libs/reoff/reoff-parse/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"root": "libs/reoff/reoff-parse",
"sourceRoot": "libs/reoff/reoff-parse/src",
"projectType": "library",
"targets": {
"lint": {
"executor": "@nrwl/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["libs/reoff/reoff-parse/**/*.ts"]
}
},
"test": {
"executor": "@nrwl/jest:jest",
"outputs": ["coverage/libs/reoff/reoff-parse"],
"options": {
"jestConfig": "libs/reoff/reoff-parse/jest.config.js",
"passWithNoTests": true
}
},
"build": {
"executor": "@nrwl/node:package",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/libs/reoff/reoff-parse",
"tsConfig": "libs/reoff/reoff-parse/tsconfig.lib.json",
"packageJson": "libs/reoff/reoff-parse/package.json",
"main": "libs/reoff/reoff-parse/src/index.ts",
"assets": ["libs/reoff/reoff-parse/*.md"]
}
}
},
"tags": []
}
1 change: 1 addition & 0 deletions libs/reoff/reoff-parse/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './lib/reoff-reoff-parse'
7 changes: 7 additions & 0 deletions libs/reoff/reoff-parse/src/lib/reoff-reoff-parse.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { reoffReoffParse } from './reoff-reoff-parse'

describe('reoffReoffParse', () => {
it('should work', () => {
expect(reoffReoffParse()).toEqual('reoff-reoff-parse')
})
})
3 changes: 3 additions & 0 deletions libs/reoff/reoff-parse/src/lib/reoff-reoff-parse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function reoffReoffParse(): string {
return 'reoff-reoff-parse'
}
Loading

0 comments on commit 3adfb9d

Please sign in to comment.