improve structure & switch to yarn

This commit is contained in:
Rene Haas
2020-09-10 12:16:21 +02:00
parent 43efd22c47
commit 30a5a11862
46 changed files with 9070 additions and 14897 deletions
@@ -0,0 +1 @@
module.exports = require('../../babel.config.base');
@@ -1,7 +0,0 @@
{
"name": "OverlayScrollbars",
"exports": "auto",
"globals": {
"jquery": "jQuery"
}
}
+1 -1
View File
@@ -3,7 +3,7 @@
? (module.exports = factory())
: typeof define === 'function' && define.amd
? define(factory)
: ((global = global || self), (global.OverlayScrollbars = factory()));
: ((global = typeof globalThis !== 'undefined' ? globalThis : global || self), (global.OverlayScrollbars = factory()));
})(this, function () {
'use strict';
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
module.exports = require('../../jest-puppeteer.config.base');
@@ -0,0 +1 @@
module.exports = require('../../jest.config.base');
+8 -1
View File
@@ -1,5 +1,12 @@
{
"name": "overlayscrollbars",
"private": true,
"description": "OverlayScrollbars version 2",
"version": "0.0.1"
"version": "0.0.1",
"scripts": {
"test": "jest --coverage --runInBand --detectOpenHandles",
"test:jsdom": "jest --coverage --runInBand --detectOpenHandles --selectProjects jsdom",
"test:pptr": "jest --coverage --runInBand --detectOpenHandles --selectProjects puppeteer",
"build": "cross-env NODE_ENV=build rollup -c"
}
}
@@ -0,0 +1,11 @@
const base = require('../../rollup.config.base');
const config = {
name: 'OverlayScrollbars',
exports: 'auto',
globals: {
jquery: 'jQuery',
},
};
module.exports = (_, ...args) => base(config, ...args);
@@ -1,4 +1,4 @@
import url from './__build__/build.html';
import url from './.build/build.html';
describe('Environment', () => {
beforeAll(async () => {