mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-23 05:10:37 +03:00
improve structure & switch to yarn
This commit is contained in:
@@ -0,0 +1 @@
|
||||
module.exports = require('../../babel.config.base');
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"name": "OverlayScrollbars",
|
||||
"exports": "auto",
|
||||
"globals": {
|
||||
"jquery": "jQuery"
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -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');
|
||||
@@ -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
-1
@@ -1,4 +1,4 @@
|
||||
import url from './__build__/build.html';
|
||||
import url from './.build/build.html';
|
||||
|
||||
describe('Environment', () => {
|
||||
beforeAll(async () => {
|
||||
Reference in New Issue
Block a user