Skip to content

Commit

Permalink
feat: next
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Feb 27, 2020
1 parent 2815154 commit 58a6d24
Show file tree
Hide file tree
Showing 99 changed files with 11,752 additions and 13,835 deletions.
10 changes: 0 additions & 10 deletions .babelrc

This file was deleted.

3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
PUPPETEER_BROWSER=chromium
HEADLESS=true
DEV_PORT=5000
5 changes: 4 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ demo/
test/
build/
rollup.config.js
rollup.pre-build.js
rollup.css.js
babel.config.js
jest.config.js
jest-puppeteer.config.js
16 changes: 8 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.DS_Store
/.cache
/coverage
/.devserver
node_modules
/dist
/themes
/animations
/index.d.ts
.parcel-cache/
coverage/
.devserver/
node_modules/
dist/
themes/
animations/
index.d.ts
13 changes: 13 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
presets: [
['@babel/env', {loose: true, useBuiltIns: 'entry', corejs: 3}],
'@babel/typescript',
],
plugins: ['dev-expression'],
env: {
test: {
presets: [['@babel/env', {targets: {node: 'current'}}]],
plugins: ['dev-expression'],
},
},
};
2 changes: 2 additions & 0 deletions build/base-iife.js → build/base-umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ import followCursor from '../src/plugins/followCursor';
import inlinePositioning from '../src/plugins/inlinePositioning';
import sticky from '../src/plugins/sticky';
import {ROUND_ARROW} from '../src/constants';
import {render} from '../src/template';

tippy.setDefaultProps({
plugins: [animateFill, followCursor, inlinePositioning, sticky],
render,
});

tippy.createSingleton = createSingleton;
Expand Down
7 changes: 6 additions & 1 deletion build/base.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
export {default, hideAll, createTippyWithPlugins} from '../src';
import tippy from '../src';
import {render} from '../src/template';

tippy.setDefaultProps({render});

export {default, hideAll} from '../src';
export {default as createSingleton} from '../src/addons/createSingleton';
export {default as delegate} from '../src/addons/delegate';
export {default as animateFill} from '../src/plugins/animateFill';
Expand Down
2 changes: 2 additions & 0 deletions build/bundle-iife.js → build/bundle-umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ import followCursor from '../src/plugins/followCursor';
import inlinePositioning from '../src/plugins/inlinePositioning';
import sticky from '../src/plugins/sticky';
import {ROUND_ARROW} from '../src/constants';
import {render} from '../src/template';

if (isBrowser) {
injectCSS(css);
}

tippy.setDefaultProps({
plugins: [animateFill, followCursor, inlinePositioning, sticky],
render,
});

tippy.createSingleton = createSingleton;
Expand Down
10 changes: 0 additions & 10 deletions build/bundle.js

This file was deleted.

8 changes: 8 additions & 0 deletions build/headless.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export {default, hideAll} from '../src';
export {default as createSingleton} from '../src/addons/createSingleton';
export {default as delegate} from '../src/addons/delegate';
export {default as animateFill} from '../src/plugins/animateFill';
export {default as followCursor} from '../src/plugins/followCursor';
export {default as inlinePositioning} from '../src/plugins/inlinePositioning';
export {default as sticky} from '../src/plugins/sticky';
export {ROUND_ARROW as roundArrow} from '../src/constants';
34 changes: 0 additions & 34 deletions demo/addons/index.html

This file was deleted.

9 changes: 0 additions & 9 deletions demo/addons/index.js

This file was deleted.

20 changes: 0 additions & 20 deletions demo/animations/index.html

This file was deleted.

53 changes: 0 additions & 53 deletions demo/animations/index.js

This file was deleted.

21 changes: 0 additions & 21 deletions demo/flip/index.html

This file was deleted.

Loading

0 comments on commit 58a6d24

Please sign in to comment.