Skip to content

Commit

Permalink
feat: 🎸 add a meta package kittik that reexports everything
Browse files Browse the repository at this point in the history
When building a presentation with kittik, you need to have different
builders from different packages. This meta package "kittik" combines
everything in one, so you can import everything you need from one
package.
  • Loading branch information
ghaiklor committed Jun 6, 2020
1 parent cb41939 commit 54fdf7e
Show file tree
Hide file tree
Showing 9 changed files with 144 additions and 0 deletions.
34 changes: 34 additions & 0 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions rush.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@
"packageName": "kittik-jest-config",
"projectFolder": "common/config/jest",
"shouldPublish": true
},
{
"packageName": "kittik",
"projectFolder": "src/main/kittik",
"shouldPublish": true
}
]
}
4 changes: 4 additions & 0 deletions src/main/kittik/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.rush
coverage
dist
node_modules
6 changes: 6 additions & 0 deletions src/main/kittik/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
extends: './node_modules/kittik-eslint-config/.eslintrc.json',
parserOptions: {
tsconfigRootDir: __dirname
}
};
1 change: 1 addition & 0 deletions src/main/kittik/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('kittik-jest-config');
61 changes: 61 additions & 0 deletions src/main/kittik/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"name": "kittik",
"version": "5.1.0-beta.3",
"description": "Kittik CLI and main package to import everything for building slides",
"homepage": "https://github.com/ghaiklor/kittik/#readme",
"license": "MIT",
"main": "dist/index.js",
"author": {
"email": "ghaiklor@gmail.com",
"name": "Eugene Obrezkov",
"url": "https://ghaiklor.com"
},
"repository": {
"type": "git",
"url": "https://github.com/ghaiklor/kittik.git"
},
"bugs": {
"url": "https://github.com/ghaiklor/kittik/issues",
"email": "ghaiklor@gmail.com"
},
"keywords": [
"kittik",
"ascii",
"art",
"slides",
"deck",
"presentation"
],
"files": [
"dist"
],
"engines": {
"node": ">=14.0.0"
},
"scripts": {
"build": "tsc",
"clean": "rimraf coverage dist tsconfig.tsbuildinfo *.log",
"lint": "eslint --fix --ext .js,.ts .",
"test": "exit 0"
},
"devDependencies": {
"@types/node": "14.0.11",
"@typescript-eslint/eslint-plugin": "3.1.0",
"eslint-plugin-import": "2.20.2",
"eslint-plugin-jest": "23.13.2",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "4.2.1",
"eslint-plugin-standard": "4.0.1",
"eslint": "7.2.0",
"jest": "26.0.1",
"kittik-eslint-config": "1.0.0",
"kittik-jest-config": "1.0.0",
"kittik-tsc-config": "1.0.0",
"rimraf": "3.0.2",
"typescript": "3.9.5"
},
"dependencies": {
"kittik-deck": "5.1.0-beta.3",
"kittik-slide": "5.1.0-beta.3"
}
}
17 changes: 17 additions & 0 deletions src/main/kittik/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
export {
Deck,
DeckBuilder
} from 'kittik-deck';

export {
AnimationBuilder,
AnimationObject,
AnimationOptions,
AnimationType,
ShapeBuilder,
ShapeObject,
ShapeOptions,
ShapeType,
Slide,
SlideBuilder
} from 'kittik-slide';
6 changes: 6 additions & 0 deletions src/main/kittik/tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./node_modules/kittik-tsc-config/tsconfig.eslint.json",
"include": [
"**/*.*"
]
}
10 changes: 10 additions & 0 deletions src/main/kittik/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "./node_modules/kittik-tsc-config/tsconfig.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "src"
},
"include": [
"src/**/*.*"
]
}

0 comments on commit 54fdf7e

Please sign in to comment.