@egjs/flicking-plugins 4.7.2-beta.1 → 4.7.2-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/README.md +42 -51
  2. package/css/all.css +2 -0
  3. package/css/arrow.css +2 -2
  4. package/css/pagination.css +5 -3
  5. package/declaration/Arrow.d.ts +63 -2
  6. package/declaration/AutoPlay.d.ts +68 -4
  7. package/declaration/Fade.d.ts +25 -0
  8. package/declaration/Parallax.d.ts +25 -0
  9. package/declaration/Perspective.d.ts +45 -2
  10. package/declaration/Sync.d.ts +57 -2
  11. package/declaration/index.d.ts +7 -4
  12. package/declaration/pagination/Pagination.d.ts +81 -1
  13. package/declaration/pagination/renderer/Renderer.d.ts +1 -1
  14. package/declaration/tsdoc-metadata.json +11 -0
  15. package/dist/arrow.css +2 -2
  16. package/dist/flicking-plugins.css +23 -8
  17. package/dist/flicking-plugins.min.css +1 -1
  18. package/dist/pagination.css +21 -6
  19. package/dist/pagination.min.css +1 -1
  20. package/dist/plugins.esm.js +1020 -1535
  21. package/dist/plugins.esm.js.map +1 -1
  22. package/dist/plugins.js +1044 -1571
  23. package/dist/plugins.js.map +1 -1
  24. package/dist/plugins.min.js +1 -9
  25. package/dist/plugins.min.js.map +1 -1
  26. package/package.json +49 -105
  27. package/src/Arrow.ts +124 -49
  28. package/src/AutoPlay.ts +110 -31
  29. package/src/Fade.ts +31 -11
  30. package/src/Parallax.ts +31 -11
  31. package/src/Perspective.ts +69 -22
  32. package/src/Sync.ts +61 -19
  33. package/src/index.ts +9 -22
  34. package/src/pagination/Pagination.ts +163 -40
  35. package/src/pagination/index.ts +2 -6
  36. package/src/pagination/renderer/BulletRenderer.ts +1 -4
  37. package/src/pagination/renderer/FractionRenderer.ts +1 -3
  38. package/src/pagination/renderer/Renderer.ts +14 -13
  39. package/src/pagination/renderer/ScrollBulletRenderer.ts +5 -12
  40. package/CONTRIBUTING +0 -58
  41. package/rollup.config.dev.js +0 -17
  42. package/rollup.config.js +0 -33
  43. package/tsconfig.declaration.json +0 -10
  44. package/tsconfig.eslint.json +0 -8
  45. package/tsconfig.json +0 -17
  46. package/tsconfig.test.json +0 -21
@@ -2,28 +2,70 @@ import Flicking, { EVENTS, Plugin } from "@egjs/flicking";
2
2
 
3
3
  import { PAGINATION } from "../const";
4
4
  import ScrollContext from "../type";
5
-
6
- import Renderer from "./renderer/Renderer";
7
5
  import BulletRenderer from "./renderer/BulletRenderer";
8
6
  import FractionRenderer from "./renderer/FractionRenderer";
7
+ import Renderer from "./renderer/Renderer";
9
8
  import ScrollBulletRenderer from "./renderer/ScrollBulletRenderer";
10
9
 
10
+ /**
11
+ * Options for the {@link Pagination} plugin
12
+ */
11
13
  export interface PaginationOptions {
14
+ /**
15
+ * The parent element to search for the pagination wrapper. If `null`, the Flicking element is used
16
+ * @defaultValue null
17
+ */
12
18
  parentEl: HTMLElement | null;
19
+ /**
20
+ * CSS selector for the pagination wrapper element
21
+ * @defaultValue ".flicking-pagination"
22
+ */
13
23
  selector: string;
24
+ /**
25
+ * Pagination display type
26
+ * @defaultValue "bullet"
27
+ */
14
28
  type: "bullet" | "fraction" | "scroll";
29
+ /**
30
+ * CSS class prefix for pagination elements
31
+ * @defaultValue "flicking-pagination"
32
+ */
15
33
  classPrefix: string;
34
+ /**
35
+ * Maximum number of bullet indicators displayed at once (only for `"scroll"` type)
36
+ * @defaultValue 5
37
+ */
16
38
  bulletCount: number;
39
+ /**
40
+ * Custom render function for each bullet element
41
+ */
17
42
  renderBullet: (className: string, index: number) => string;
43
+ /**
44
+ * Custom render function for the fraction display
45
+ */
18
46
  renderFraction: (currentClass: string, totalClass: string) => string;
47
+ /**
48
+ * Custom render function for the active bullet element. If `null`, the default bullet is used
49
+ * @defaultValue null
50
+ */
19
51
  renderActiveBullet: ((className: string, index: number) => string) | null;
52
+ /**
53
+ * Format function for the current index in fraction type
54
+ */
20
55
  fractionCurrentFormat: (index: number) => string;
56
+ /**
57
+ * Format function for the total count in fraction type
58
+ */
21
59
  fractionTotalFormat: (total: number) => string;
60
+ /**
61
+ * Callback invoked when the scroll pagination index changes
62
+ */
22
63
  scrollOnChange: (index: number, ctx: ScrollContext) => any;
23
64
  }
24
65
 
25
66
  /**
26
- * @memberof Flicking.Plugins
67
+ * A plugin to add pagination indicators (bullets, fractions, or scrollable bullets) to Flicking
68
+ * @see {@link https://naver.github.io/egjs-flicking/docs/demos/plugins/pagination | Demo: Pagination}
27
69
  */
28
70
  class Pagination implements Plugin {
29
71
  /* Internal Values */
@@ -44,43 +86,119 @@ class Pagination implements Plugin {
44
86
  private _fractionTotalFormat: PaginationOptions["fractionTotalFormat"];
45
87
  private _scrollOnChange: PaginationOptions["scrollOnChange"];
46
88
 
47
- public get parentEl() { return this._parentEl; }
48
- public get selector() { return this._selector; }
49
- public get type() { return this._type; }
50
- public get classPrefix() { return this._classPrefix; }
51
- public get bulletCount() { return this._bulletCount; }
52
- public get renderBullet() { return this._renderBullet; }
53
- public get renderActiveBullet() { return this._renderActiveBullet; }
54
- public get renderFraction() { return this._renderFraction; }
55
- public get fractionCurrentFormat() { return this._fractionCurrentFormat; }
56
- public get fractionTotalFormat() { return this._fractionTotalFormat; }
57
- public get scrollOnChange() { return this._scrollOnChange; }
58
-
59
- public set parentEl(val: PaginationOptions["parentEl"]) { this._parentEl = val; }
60
- public set selector(val: PaginationOptions["selector"]) { this._selector = val; }
61
- public set type(val: PaginationOptions["type"]) { this._type = val; }
62
- public set bulletWrapperclassPrefixClass(val: PaginationOptions["classPrefix"]) { this._classPrefix = val; }
63
- public set bulletCount(val: PaginationOptions["bulletCount"]) { this._bulletCount = val; }
64
- public set renderBullet(val: PaginationOptions["renderBullet"]) { this._renderBullet = val; }
65
- public set renderActiveBullet(val: PaginationOptions["renderActiveBullet"]) { this._renderActiveBullet = val; }
66
- public set renderFraction(val: PaginationOptions["renderFraction"]) { this._renderFraction = val; }
67
- public set fractionCurrentFormat(val: PaginationOptions["fractionCurrentFormat"]) { this._fractionCurrentFormat = val; }
68
- public set fractionTotalFormat(val: PaginationOptions["fractionTotalFormat"]) { this._fractionTotalFormat = val; }
69
- public set scrollOnChange(val: PaginationOptions["scrollOnChange"]) { this._scrollOnChange = val; }
70
-
71
- public constructor({
72
- parentEl = null,
73
- selector = PAGINATION.SELECTOR,
74
- type = PAGINATION.TYPE.BULLET,
75
- classPrefix = PAGINATION.PREFIX,
76
- bulletCount = 5,
77
- renderBullet = (className: string) => `<span class="${className}"></span>`,
78
- renderActiveBullet = null,
79
- renderFraction = (currentClass: string, totalClass: string) => `<span class="${currentClass}"></span>/<span class="${totalClass}"></span>`,
80
- fractionCurrentFormat = (index: number) => index.toString(),
81
- fractionTotalFormat = (index: number) => index.toString(),
82
- scrollOnChange = (index: number, ctx: ScrollContext) => ctx.moveTo(index)
83
- }: Partial<PaginationOptions> = {}) {
89
+ /** Current value of the {@link PaginationOptions.parentEl | parentEl} option. */
90
+ public get parentEl() {
91
+ return this._parentEl;
92
+ }
93
+ /** Current value of the {@link PaginationOptions.selector | selector} option. */
94
+ public get selector() {
95
+ return this._selector;
96
+ }
97
+ /** Current value of the {@link PaginationOptions.type | type} option. */
98
+ public get type() {
99
+ return this._type;
100
+ }
101
+ /** Current value of the {@link PaginationOptions.classPrefix | classPrefix} option. */
102
+ public get classPrefix() {
103
+ return this._classPrefix;
104
+ }
105
+ /** Current value of the {@link PaginationOptions.bulletCount | bulletCount} option. */
106
+ public get bulletCount() {
107
+ return this._bulletCount;
108
+ }
109
+ /** Current value of the {@link PaginationOptions.renderBullet | renderBullet} option. */
110
+ public get renderBullet() {
111
+ return this._renderBullet;
112
+ }
113
+ /** Current value of the {@link PaginationOptions.renderActiveBullet | renderActiveBullet} option. */
114
+ public get renderActiveBullet() {
115
+ return this._renderActiveBullet;
116
+ }
117
+ /** Current value of the {@link PaginationOptions.renderFraction | renderFraction} option. */
118
+ public get renderFraction() {
119
+ return this._renderFraction;
120
+ }
121
+ /** Current value of the {@link PaginationOptions.fractionCurrentFormat | fractionCurrentFormat} option. */
122
+ public get fractionCurrentFormat() {
123
+ return this._fractionCurrentFormat;
124
+ }
125
+ /** Current value of the {@link PaginationOptions.fractionTotalFormat | fractionTotalFormat} option. */
126
+ public get fractionTotalFormat() {
127
+ return this._fractionTotalFormat;
128
+ }
129
+ /** Current value of the {@link PaginationOptions.scrollOnChange | scrollOnChange} option. */
130
+ public get scrollOnChange() {
131
+ return this._scrollOnChange;
132
+ }
133
+
134
+ /** Sets {@link PaginationOptions.parentEl | parentEl}. */
135
+ public set parentEl(val: PaginationOptions["parentEl"]) {
136
+ this._parentEl = val;
137
+ }
138
+ /** Sets {@link PaginationOptions.selector | selector}. */
139
+ public set selector(val: PaginationOptions["selector"]) {
140
+ this._selector = val;
141
+ }
142
+ /** Sets {@link PaginationOptions.type | type}. */
143
+ public set type(val: PaginationOptions["type"]) {
144
+ this._type = val;
145
+ }
146
+ /** Sets {@link PaginationOptions.classPrefix | classPrefix}. */
147
+ public set bulletWrapperclassPrefixClass(val: PaginationOptions["classPrefix"]) {
148
+ this._classPrefix = val;
149
+ }
150
+ /** Sets {@link PaginationOptions.bulletCount | bulletCount}. */
151
+ public set bulletCount(val: PaginationOptions["bulletCount"]) {
152
+ this._bulletCount = val;
153
+ }
154
+ /** Sets {@link PaginationOptions.renderBullet | renderBullet}. */
155
+ public set renderBullet(val: PaginationOptions["renderBullet"]) {
156
+ this._renderBullet = val;
157
+ }
158
+ /** Sets {@link PaginationOptions.renderActiveBullet | renderActiveBullet}. */
159
+ public set renderActiveBullet(val: PaginationOptions["renderActiveBullet"]) {
160
+ this._renderActiveBullet = val;
161
+ }
162
+ /** Sets {@link PaginationOptions.renderFraction | renderFraction}. */
163
+ public set renderFraction(val: PaginationOptions["renderFraction"]) {
164
+ this._renderFraction = val;
165
+ }
166
+ /** Sets {@link PaginationOptions.fractionCurrentFormat | fractionCurrentFormat}. */
167
+ public set fractionCurrentFormat(val: PaginationOptions["fractionCurrentFormat"]) {
168
+ this._fractionCurrentFormat = val;
169
+ }
170
+ /** Sets {@link PaginationOptions.fractionTotalFormat | fractionTotalFormat}. */
171
+ public set fractionTotalFormat(val: PaginationOptions["fractionTotalFormat"]) {
172
+ this._fractionTotalFormat = val;
173
+ }
174
+ /** Sets {@link PaginationOptions.scrollOnChange | scrollOnChange}. */
175
+ public set scrollOnChange(val: PaginationOptions["scrollOnChange"]) {
176
+ this._scrollOnChange = val;
177
+ }
178
+
179
+ /**
180
+ * @param options - Options for the Pagination instance
181
+ * @example
182
+ * ```ts
183
+ * flicking.addPlugins(new Pagination({ type: "bullet", selector: ".flicking-pagination" }));
184
+ * ```
185
+ */
186
+ public constructor(options: Partial<PaginationOptions> = {}) {
187
+ const {
188
+ parentEl = null,
189
+ selector = PAGINATION.SELECTOR,
190
+ type = PAGINATION.TYPE.BULLET,
191
+ classPrefix = PAGINATION.PREFIX,
192
+ bulletCount = 5,
193
+ renderBullet = (className: string) => `<span class="${className}"></span>`,
194
+ renderActiveBullet = null,
195
+ renderFraction = (currentClass: string, totalClass: string) =>
196
+ `<span class="${currentClass}"></span>/<span class="${totalClass}"></span>`,
197
+ fractionCurrentFormat = (index: number) => index.toString(),
198
+ fractionTotalFormat = (index: number) => index.toString(),
199
+ scrollOnChange = (index: number, ctx: ScrollContext) => ctx.moveTo(index)
200
+ } = options;
201
+
84
202
  this._parentEl = parentEl;
85
203
  this._selector = selector;
86
204
  this._type = type;
@@ -94,6 +212,9 @@ class Pagination implements Plugin {
94
212
  this._scrollOnChange = scrollOnChange;
95
213
  }
96
214
 
215
+ /** Initialize the plugin, create the pagination renderer, and attach event listeners to the Flicking instance.
216
+ * @param flicking - The Flicking instance to attach this plugin to
217
+ */
97
218
  public init(flicking: Flicking): void {
98
219
  if (this._flicking) {
99
220
  this.destroy();
@@ -120,6 +241,7 @@ class Pagination implements Plugin {
120
241
  this.update();
121
242
  }
122
243
 
244
+ /** Destroy the plugin, remove all event listeners, and clean up pagination DOM elements. */
123
245
  public destroy(): void {
124
246
  const flicking = this._flicking;
125
247
 
@@ -136,6 +258,7 @@ class Pagination implements Plugin {
136
258
  this._flicking = null;
137
259
  }
138
260
 
261
+ /** Re-render the pagination indicators to reflect the current panel state. */
139
262
  public update = (): void => {
140
263
  this._removeAllChilds();
141
264
  this._renderer.render();
@@ -1,9 +1,5 @@
1
1
  import Pagination, { PaginationOptions } from "./Pagination";
2
2
 
3
- export {
4
- Pagination
5
- };
3
+ export { Pagination };
6
4
 
7
- export type {
8
- PaginationOptions
9
- };
5
+ export type { PaginationOptions };
@@ -83,10 +83,7 @@ class BulletRenderer extends Renderer {
83
83
  if (renderActiveBullet) {
84
84
  const prevBullet = bullets[prevIndex];
85
85
  if (prevBullet) {
86
- const newBullet = this._createBulletFromString(
87
- renderBullet(bulletClass, prevIndex),
88
- prevIndex
89
- );
86
+ const newBullet = this._createBulletFromString(renderBullet(bulletClass, prevIndex), prevIndex);
90
87
  prevBullet.parentElement!.replaceChild(newBullet, prevBullet);
91
88
  bullets[prevIndex] = newBullet;
92
89
  }
@@ -33,9 +33,7 @@ class FractionRenderer extends Renderer {
33
33
  const pagination = this._pagination;
34
34
 
35
35
  const anchorPoints = flicking.camera.anchorPoints;
36
- const currentIndex = anchorPoints.length > 0
37
- ? index - anchorPoints[0].panel.index + 1
38
- : 0;
36
+ const currentIndex = anchorPoints.length > 0 ? index - anchorPoints[0].panel.index + 1 : 0;
39
37
  const anchorCount = anchorPoints.length;
40
38
 
41
39
  if (currentIndex === this._prevIndex && anchorCount === this._prevTotal) return;
@@ -14,11 +14,9 @@ abstract class Renderer {
14
14
  protected _pagination: Pagination;
15
15
  protected _wrapper: HTMLElement;
16
16
 
17
- public constructor({
18
- flicking,
19
- pagination,
20
- wrapper
21
- }: RendererOptions) {
17
+ public constructor(options: RendererOptions) {
18
+ const { flicking, pagination, wrapper } = options;
19
+
22
20
  this._flicking = flicking;
23
21
  this._pagination = pagination;
24
22
  this._wrapper = wrapper;
@@ -46,16 +44,19 @@ abstract class Renderer {
46
44
  e.stopPropagation();
47
45
  });
48
46
 
49
- bullet.addEventListener(BROWSER.TOUCH_START, e => {
50
- e.stopPropagation();
51
- }, { passive: true });
47
+ bullet.addEventListener(
48
+ BROWSER.TOUCH_START,
49
+ e => {
50
+ e.stopPropagation();
51
+ },
52
+ { passive: true }
53
+ );
52
54
 
53
55
  bullet.addEventListener(BROWSER.CLICK, () => {
54
- this._flicking.moveTo(panelIndex)
55
- .catch(err => {
56
- if (err instanceof FlickingError) return;
57
- throw err;
58
- });
56
+ this._flicking.moveTo(panelIndex).catch(err => {
57
+ if (err instanceof FlickingError) return;
58
+ throw err;
59
+ });
59
60
  });
60
61
  }
61
62
  }
@@ -37,9 +37,7 @@ class ScrollBulletRenderer extends Renderer {
37
37
  addClass(wrapper, dynamicWrapperClass);
38
38
  wrapper.appendChild(sliderEl);
39
39
 
40
- sliderEl.innerHTML = anchorPoints
41
- .map((_, index) => renderBullet(bulletClass, index))
42
- .join("\n");
40
+ sliderEl.innerHTML = anchorPoints.map((_, index) => renderBullet(bulletClass, index)).join("\n");
43
41
 
44
42
  const bullets = [].slice.call(sliderEl.children) as HTMLElement[];
45
43
 
@@ -50,7 +48,8 @@ class ScrollBulletRenderer extends Renderer {
50
48
  if (bullets.length <= 0) return;
51
49
 
52
50
  const bulletStyle = getComputedStyle(bullets[0]);
53
- const bulletSize = bullets[0].clientWidth + parseFloat(bulletStyle.marginLeft) + parseFloat(bulletStyle.marginRight);
51
+ const bulletSize =
52
+ bullets[0].clientWidth + parseFloat(bulletStyle.marginLeft) + parseFloat(bulletStyle.marginRight);
54
53
 
55
54
  wrapper.style.width = `${bulletSize * pagination.bulletCount}px`;
56
55
 
@@ -93,20 +92,14 @@ class ScrollBulletRenderer extends Renderer {
93
92
  if (renderActiveBullet) {
94
93
  const prevBullet = bullets[prevIndex];
95
94
  if (prevBullet) {
96
- const newBullet = this._createBulletFromString(
97
- renderBullet(bulletClass, prevIndex),
98
- prevIndex
99
- );
95
+ const newBullet = this._createBulletFromString(renderBullet(bulletClass, prevIndex), prevIndex);
100
96
  prevBullet.parentElement!.replaceChild(newBullet, prevBullet);
101
97
  bullets[prevIndex] = newBullet;
102
98
  }
103
99
 
104
100
  const activeBullet = bullets[activeIndex];
105
101
  if (activeBullet) {
106
- const newActiveBullet = this._createBulletFromString(
107
- renderActiveBullet(bulletClass, activeIndex),
108
- activeIndex
109
- );
102
+ const newActiveBullet = this._createBulletFromString(renderActiveBullet(bulletClass, activeIndex), activeIndex);
110
103
 
111
104
  activeBullet.parentElement!.replaceChild(newActiveBullet, activeBullet);
112
105
  bullets[activeIndex] = newActiveBullet;
package/CONTRIBUTING DELETED
@@ -1,58 +0,0 @@
1
- # How to contribute to egjs-flicking
2
- egjs-flicking is opened to everyone and we're welcoming for any kind of contribution.
3
- We believe that our project can grow with your interests helping others' necessities.
4
-
5
- ## Style Guide
6
-
7
- egjs-flicking has several style guidelines to follow.
8
- Before your start, please read attentively below instructions.
9
-
10
- ### Linting and Code Conventions
11
- We adopted [ESLint](http://eslint.org/) to maintain our code quality. The [rules](https://github.com/naver/eslint-config-naver/tree/master/rules) are modified version based on [Airbnb JavaScript Style Guide](https://github.com/airbnb/javascript).
12
- All rules are described at [.eslintrc](.eslintrc) file.
13
-
14
- ### Commit Log Guidelines
15
- egjs-flicking use commit logs in many different purposes (like creating CHANGELOG, ease history searching, etc.).
16
- To not break, you'll be forced to follow our commit log guidelines.
17
- Before your commit/push, make sure following our commit log guidelines.
18
-
19
- The outline is as below:
20
- ```
21
- <type>(<module>): <subject>
22
- <BLANK LINE>
23
- <body>
24
- <BLANK LINE>
25
- <footer>
26
- ```
27
-
28
- - **Types**
29
- - **feat**: A new feature
30
- - **fix**: A bug fix
31
- - **docs**: Documentation only changes
32
- - **style**: Changes that do not affect the meaning of the code. Such as white-space, formatting, missing semi-colons, etc... It also possible to change JSHint, JSCS rules of the code.
33
- - **refactor**: A code change that neither fixes a bug nor adds a feature
34
- - **test**: Adding missing tests. Changing tests.
35
- - **demo**: Adding missing demos. Changing demos.
36
- - **chore**: Changes to the build process or tools and libraries such as documentation generation
37
-
38
- [See More Commit Log Guidelines](https://github.com/naver/egjs/wiki/Commit-Log-Guidelines)
39
-
40
- ## How to submit Pull Requests
41
- Steps to submit your pull request:
42
-
43
- 1. Fork `egjs-flicking` on your repository
44
- 2. Create new branch from your egjs master branch (and be sure always to be up-to-date)
45
- 3. Do your work
46
- 4. Create test code for your work (when is possible)
47
- 5. Run `npm run lint` for linting and Code Conventions (update until without any error or warnings)
48
- 6. Run test code by `npm run test OR npm run test:chrome`.
49
- Make sure tests are all passed at least in Chrome(latest desktop version)
50
- 8. Write commit log following convention and push to your repository branch.
51
- 9. Create a new PR from your branch to egjs-flicking.
52
- 10. Wait for reviews.
53
- When your contribution is well enough to be accepted, then will be merged to our branch.
54
- 11. All done!
55
-
56
-
57
- ## License
58
- By contributing to egjs-flicking, you're agreeing that your contributions will be licensed under its [MIT](https://opensource.org/licenses/MIT) license.
@@ -1,17 +0,0 @@
1
- const buildHelper = require("@egjs/build-helper");
2
- const external = {
3
- "@egjs/flicking": "Flicking"
4
- }
5
- const name = "Flicking.Plugins";
6
-
7
- export default buildHelper([
8
- {
9
- name,
10
- input: "./src/index.ts",
11
- output: "./dist/plugins.js",
12
- format: "umd",
13
- external,
14
- exports: "named"
15
- }
16
- ]);
17
-
package/rollup.config.js DELETED
@@ -1,33 +0,0 @@
1
- const buildHelper = require("@egjs/build-helper");
2
- const external = {
3
- "@egjs/flicking": "Flicking"
4
- }
5
- const name = "Flicking.Plugins";
6
-
7
- export default buildHelper([
8
- {
9
- name,
10
- input: "./src/index.ts",
11
- output: "./dist/plugins.js",
12
- format: "umd",
13
- external,
14
- exports: "named"
15
- },
16
- {
17
- name,
18
- input: "./src/index.ts",
19
- output: "./dist/plugins.min.js",
20
- format: "umd",
21
- uglify: true,
22
- external,
23
- exports: "named"
24
- },
25
- {
26
- input: "./src/index.ts",
27
- output: "./dist/plugins.esm.js",
28
- format: "esm",
29
- external,
30
- exports: "named"
31
- }
32
- ]);
33
-
@@ -1,10 +0,0 @@
1
- {
2
- "extends": "./tsconfig",
3
- "compilerOptions": {
4
- "removeComments": true,
5
- "declaration": true,
6
- "emitDeclarationOnly": true,
7
- "declarationDir": "declaration",
8
- "strictNullChecks": false,
9
- }
10
- }
@@ -1,8 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "include": [
4
- "./**/*.ts",
5
- "./**/*.js",
6
- "./**/.*.js"
7
- ]
8
- }
package/tsconfig.json DELETED
@@ -1,17 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "outDir": "./outjs/",
4
- "sourceMap": true,
5
- "module": "es2015",
6
- "target": "es5",
7
- "strictNullChecks": true,
8
- "moduleResolution": "node",
9
- "lib": [
10
- "es2015",
11
- "dom"
12
- ],
13
- },
14
- "include": [
15
- "./src/**/*.ts"
16
- ]
17
- }
@@ -1,21 +0,0 @@
1
- {
2
- "extends": "./tsconfig",
3
- "compilerOptions": {
4
- "module": "commonjs",
5
- "noImplicitAny": false,
6
- "strictNullChecks": false,
7
- "noUnusedLocals": false,
8
- "experimentalDecorators": true,
9
- "types": [
10
- "karma-chai",
11
- "mocha",
12
- ]
13
- },
14
- "include": [
15
- "./src/**/*.ts",
16
- "./test/**/*.ts"
17
- ],
18
- "exclude": [
19
- "./node_modules/**/*.ts"
20
- ]
21
- }