Skip to content

Commit

Permalink
feat: test build system
Browse files Browse the repository at this point in the history
  • Loading branch information
toxic-johann committed Oct 17, 2018
1 parent 156b0a9 commit 6e89776
Show file tree
Hide file tree
Showing 16 changed files with 1,322 additions and 3,911 deletions.
6 changes: 0 additions & 6 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
"@babel/plugin-syntax-import-meta",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-json-strings",
[
"@babel/plugin-proposal-decorators",
{
"legacy": true
}
],
"@babel/plugin-proposal-function-sent",
"@babel/plugin-proposal-export-namespace-from",
"@babel/plugin-proposal-numeric-separator",
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,4 @@ typings/

lib/index.dev.js
package-lock.json
ts-out/
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ bundle-size/
.eslintignore
.eslintrc
karma.config.js
src
src
ts-out/
2 changes: 1 addition & 1 deletion build/rollup.config.min.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import base, { banner } from './rollup.config.base';
import uglify from 'rollup-plugin-uglify';
import { uglify } from 'rollup-plugin-uglify';
import replace from 'rollup-plugin-replace';
const config = base('min');
config.plugins.unshift(replace({
Expand Down
2 changes: 1 addition & 1 deletion demo/base/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'babel-polyfill';
import esFullscreen from '../../src/index.js';
import esFullscreen from '../../ts-out/index.js';
setTimeout(() => {
[ 1, 2 ].forEach(key => {
document.getElementById('node' + key)
Expand Down
15 changes: 15 additions & 0 deletions lib/const.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export declare const VENDOR_PREFIXES: string[];
export declare const SYNONYMS: string[][];
export declare const DESKTOP_FULLSCREEN_STYLE: {
bottom: number;
height: string;
left: number;
overflow: string;
position: string;
right: number;
top: number;
width: string;
zIndex: string;
};
export declare const FULLSCREEN_CHANGE: string[];
export declare const FULLSCREEN_ERROR: string[];
Loading

0 comments on commit 6e89776

Please sign in to comment.