├── mocha.opts
├── demo
├── index.md
├── gallery.md
├── _config.yml
├── assets
│ ├── css
│ │ └── demo.css
│ ├── html
│ │ └── demo.html
│ └── js
│ │ └── demo.js
├── _includes
│ ├── header.html
│ ├── facebook.html
│ ├── promo.html
│ ├── head.html
│ └── footer.html
├── _data
│ └── egjs.yml
├── demo.md
├── common
│ ├── css
│ │ ├── gallery.css
│ │ ├── monokai.css
│ │ ├── page.css
│ │ └── font-awesome.min.css
│ ├── image
│ │ ├── logo_mono.svg
│ │ ├── type_white.svg
│ │ ├── logo_mono_black.svg
│ │ ├── type_black.svg
│ │ ├── cp-arrow-right.svg
│ │ └── logo.svg
│ └── js
│ │ ├── app.js
│ │ └── bootstrap.min.js
├── _layouts
│ ├── gallery.html
│ └── page.html
└── started.md
├── test
├── types
│ ├── type-utils.ts
│ ├── ComponentEvent.test-d.ts
│ └── Component.test-d.ts
├── .eslintrc.js
└── unit
│ ├── ComponentEvent.spec.ts
│ └── Component.spec.ts
├── .github
├── PULL_REQUEST_TEMPLATE.md
├── ISSUE_TEMPLATE.md
└── stale.yml
├── src
├── utils.ts
├── index.ts
├── index.umd.ts
├── index.cjs.ts
├── ComponentEvent.ts
├── types.ts
├── ActualComponentEvent.ts
└── Component.ts
├── tsconfig.eslint.json
├── .editorconfig
├── tsconfig.declaration.json
├── .npmignore
├── .travis.yml
├── tsconfig.test.json
├── tsconfig.json
├── rollup.config.js
├── config
├── commit.template
└── validate-commit-msg.js
├── jsdoc.json
├── karma.conf.js
├── CONTRIBUTING.md
├── package.json
├── .gitignore
├── README.md
└── .eslintrc.js
/mocha.opts:
--------------------------------------------------------------------------------
1 | ---timeout 10000
--------------------------------------------------------------------------------
/demo/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | layout: page
3 | ---
4 |
--------------------------------------------------------------------------------
/demo/gallery.md:
--------------------------------------------------------------------------------
1 | ---
2 | layout: gallery
3 | ---
4 |
--------------------------------------------------------------------------------
/test/types/type-utils.ts:
--------------------------------------------------------------------------------
1 | export const test = (testName: string, func: (...args: any[]) => any) => {};
2 |
--------------------------------------------------------------------------------
/demo/_config.yml:
--------------------------------------------------------------------------------
1 | # Build settings
2 | source: demo
3 | destination: demo/_site
4 | exclude: [started.md, demo.md]
5 | markdown: kramdown
--------------------------------------------------------------------------------
/demo/assets/css/demo.css:
--------------------------------------------------------------------------------
1 | .demo {
2 | margin-bottom: "20px";
3 | border-radius: "4px";
4 | }
5 |
6 | .desc {
7 | margin: 10px;
8 | }
9 |
--------------------------------------------------------------------------------
/.github/PULL_REQUEST_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | ## Issue
2 |
3 |
4 | ## Details
5 |
6 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | ## Description
2 |
3 |
4 | ## Steps to check or reproduce
5 |
6 |
--------------------------------------------------------------------------------
/src/utils.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015 NAVER Corp.
3 | * egjs projects are licensed under the MIT license
4 | */
5 | export const isUndefined = (value: any): value is undefined => typeof value === "undefined";
6 |
--------------------------------------------------------------------------------
/tsconfig.eslint.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.json",
3 | "include": [
4 | "./src/**/*.ts",
5 | "./test/**/*.ts",
6 | "./demo/**/*.ts",
7 | "./**/*.js",
8 | "./**/.*.js"
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | # http://editorconfig.org
2 | root = true
3 |
4 | [*]
5 | charset = utf-8
6 | end_of_line = lf
7 | indent_style = space
8 | indent_size = 2
9 | insert_final_newline = true
10 | max_line_length = 80
11 | trim_trailing_whitespace = true
12 |
--------------------------------------------------------------------------------
/tsconfig.declaration.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig",
3 | "compilerOptions": {
4 | "removeComments": true,
5 | "declaration": true,
6 | "emitDeclarationOnly": true,
7 | "declarationDir": "declaration",
8 | "strictNullChecks": false,
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2015 NAVER Corp.
3 | * egjs projects are licensed under the MIT license
4 | */
5 | import Component from "./Component";
6 | import ComponentEvent from "./ComponentEvent";
7 |
8 | export { ComponentEvent };
9 | export default Component;
10 |
--------------------------------------------------------------------------------
/demo/_includes/header.html:
--------------------------------------------------------------------------------
1 |
2 |
{{ site.data.egjs.desc }}
9 | {{ site.data.egjs.hashtag }}
10 |