Skip to content

Commit

Permalink
fix(build): correct build step
Browse files Browse the repository at this point in the history
  • Loading branch information
bigopon committed Jan 17, 2018
1 parent fb660ed commit ca4a901
Show file tree
Hide file tree
Showing 20 changed files with 679 additions and 85 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
- run:
name: test
command: npm test
- run:
name: build
command: npm run build
- run:
name: release
command: npm run semantic-release || true
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ bower_components
.DS_STORE
.vscode
build
dist
test/coverage-jest
6 changes: 5 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ jspm_packages
bower_components
.idea
.vscode
.circleci
src
test
gulpfile.js
karma.conf.js
config.js
gulpfile.js
tsconig.json
tslint.json
CONTRIBUTING.md
ISSUE_TEMPLATE.md
config.js
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2017 Vildan Softic
Copyright (c) 2017 Binh Vo

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
52 changes: 52 additions & 0 deletions dist/amd/blur.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
export interface BlurConfig {
touch?: boolean;
mouse?: boolean;
pointer?: boolean;
focus?: boolean;
windowBlur?: boolean;
}
export declare class Blur {
private element;
static inject: {
new (): Element;
prototype: Element;
}[];
static use(cfg: BlurConfig): void;
static listen: {
touch(on: boolean): any;
mouse(on: boolean): any;
pointer(on: boolean): any;
focus(on: boolean): any;
windowBlur(on: boolean): any;
};
value: boolean;
onBlur: Function;
/**
* Used to determine which elemens this attribute will be linked with
* Interacting with a linked element will not trigger blur for this attribute
*/
linkedWith: string | Element | (string | Element)[];
/**
* Only used when linkedWith is a string.
* Used to determine whether to use querySelector / querySelectorAll to find all interactable elements without triggering blur
* Performace wise Consider using this only when necessary
*/
linkedMultiple: boolean;
/**
* Only used when linkedWith is a string, or an array containing some strings
* During query for finding element to link with:
* - true: search all children, using `querySelectorAll`
* - false: search immediate children using for loop
*/
searchSubTree: boolean;
/**
* Only used when linkedWith is a string. or an array containing a string
* Determine from which node/ nodes, search for elements
*/
linkingContext: string | Element | null;
constructor(element: Element);
attached(): void;
detached(): void;
contains(target: Element): boolean;
triggerBlur(): void;
}
3 changes: 3 additions & 0 deletions dist/amd/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { Blur, BlurConfig } from './blur';
export declare function configure(frameworkConfig: any, blurConfig: BlurConfig): void;
export { Blur, BlurConfig };
52 changes: 52 additions & 0 deletions dist/commonjs/blur.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
export interface BlurConfig {
touch?: boolean;
mouse?: boolean;
pointer?: boolean;
focus?: boolean;
windowBlur?: boolean;
}
export declare class Blur {
private element;
static inject: {
new (): Element;
prototype: Element;
}[];
static use(cfg: BlurConfig): void;
static listen: {
touch(on: boolean): any;
mouse(on: boolean): any;
pointer(on: boolean): any;
focus(on: boolean): any;
windowBlur(on: boolean): any;
};
value: boolean;
onBlur: Function;
/**
* Used to determine which elemens this attribute will be linked with
* Interacting with a linked element will not trigger blur for this attribute
*/
linkedWith: string | Element | (string | Element)[];
/**
* Only used when linkedWith is a string.
* Used to determine whether to use querySelector / querySelectorAll to find all interactable elements without triggering blur
* Performace wise Consider using this only when necessary
*/
linkedMultiple: boolean;
/**
* Only used when linkedWith is a string, or an array containing some strings
* During query for finding element to link with:
* - true: search all children, using `querySelectorAll`
* - false: search immediate children using for loop
*/
searchSubTree: boolean;
/**
* Only used when linkedWith is a string. or an array containing a string
* Determine from which node/ nodes, search for elements
*/
linkingContext: string | Element | null;
constructor(element: Element);
attached(): void;
detached(): void;
contains(target: Element): boolean;
triggerBlur(): void;
}
3 changes: 3 additions & 0 deletions dist/commonjs/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { Blur, BlurConfig } from './blur';
export declare function configure(frameworkConfig: any, blurConfig: BlurConfig): void;
export { Blur, BlurConfig };
52 changes: 52 additions & 0 deletions dist/es2015/blur.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
export interface BlurConfig {
touch?: boolean;
mouse?: boolean;
pointer?: boolean;
focus?: boolean;
windowBlur?: boolean;
}
export declare class Blur {
private element;
static inject: {
new (): Element;
prototype: Element;
}[];
static use(cfg: BlurConfig): void;
static listen: {
touch(on: boolean): any;
mouse(on: boolean): any;
pointer(on: boolean): any;
focus(on: boolean): any;
windowBlur(on: boolean): any;
};
value: boolean;
onBlur: Function;
/**
* Used to determine which elemens this attribute will be linked with
* Interacting with a linked element will not trigger blur for this attribute
*/
linkedWith: string | Element | (string | Element)[];
/**
* Only used when linkedWith is a string.
* Used to determine whether to use querySelector / querySelectorAll to find all interactable elements without triggering blur
* Performace wise Consider using this only when necessary
*/
linkedMultiple: boolean;
/**
* Only used when linkedWith is a string, or an array containing some strings
* During query for finding element to link with:
* - true: search all children, using `querySelectorAll`
* - false: search immediate children using for loop
*/
searchSubTree: boolean;
/**
* Only used when linkedWith is a string. or an array containing a string
* Determine from which node/ nodes, search for elements
*/
linkingContext: string | Element | null;
constructor(element: Element);
attached(): void;
detached(): void;
contains(target: Element): boolean;
triggerBlur(): void;
}
3 changes: 3 additions & 0 deletions dist/es2015/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { Blur, BlurConfig } from './blur';
export declare function configure(frameworkConfig: any, blurConfig: BlurConfig): void;
export { Blur, BlurConfig };
52 changes: 52 additions & 0 deletions dist/native-modules/blur.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
export interface BlurConfig {
touch?: boolean;
mouse?: boolean;
pointer?: boolean;
focus?: boolean;
windowBlur?: boolean;
}
export declare class Blur {
private element;
static inject: {
new (): Element;
prototype: Element;
}[];
static use(cfg: BlurConfig): void;
static listen: {
touch(on: boolean): any;
mouse(on: boolean): any;
pointer(on: boolean): any;
focus(on: boolean): any;
windowBlur(on: boolean): any;
};
value: boolean;
onBlur: Function;
/**
* Used to determine which elemens this attribute will be linked with
* Interacting with a linked element will not trigger blur for this attribute
*/
linkedWith: string | Element | (string | Element)[];
/**
* Only used when linkedWith is a string.
* Used to determine whether to use querySelector / querySelectorAll to find all interactable elements without triggering blur
* Performace wise Consider using this only when necessary
*/
linkedMultiple: boolean;
/**
* Only used when linkedWith is a string, or an array containing some strings
* During query for finding element to link with:
* - true: search all children, using `querySelectorAll`
* - false: search immediate children using for loop
*/
searchSubTree: boolean;
/**
* Only used when linkedWith is a string. or an array containing a string
* Determine from which node/ nodes, search for elements
*/
linkingContext: string | Element | null;
constructor(element: Element);
attached(): void;
detached(): void;
contains(target: Element): boolean;
triggerBlur(): void;
}
Loading

0 comments on commit ca4a901

Please sign in to comment.