Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jhildenbiddle committed Feb 29, 2024
1 parent fb219a4 commit cc4d7f0
Show file tree
Hide file tree
Showing 7 changed files with 3,220 additions and 9,346 deletions.
11 changes: 0 additions & 11 deletions .babelrc

This file was deleted.

2 changes: 1 addition & 1 deletion .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
'dist'
],
'parserOptions': {
'ecmaVersion': 6,
'ecmaVersion': 2022,
'sourceType' : 'module'
},
'plugins': [
Expand Down
12,457 changes: 3,164 additions & 9,293 deletions package-lock.json

Large diffs are not rendered by default.

29 changes: 15 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@
"tabs"
],
"browserslist": [
"ie >= 10"
"ie >= 11"
],
"files": [
"dist"
],
"main": "dist/docsify-tabs.js",
"unpkg": "dist/docsify-tabs.min.js",
"type": "module",
"scripts": {
"build": "rollup -c",
"clean": "rimraf dist/*",
Expand All @@ -49,27 +50,27 @@
"devDependencies": {
"@babel/core": "^7.13.16",
"@babel/preset-env": "^7.13.15",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^22.0.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^14.0.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-eslint": "^9.0.5",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"autoprefixer": "^10.2.5",
"browser-sync": "^2.26.14",
"browser-sync": "^3.0.2",
"compression": "^1.7.4",
"es-check": "^7.0.0",
"eslint": "^8.12.0",
"markdownlint-cli": "^0.32.1",
"mergician": "^1.0.2",
"markdownlint-cli": "^0.39.0",
"mergician": "^2.0.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.3.6",
"postcss-custom-properties": "^12.1.6",
"postcss-custom-properties": "^13.3.5",
"postcss-flexbugs-fixes": "^5.0.2",
"postcss-import": "^15.0.0",
"rimraf": "^3.0.2",
"rollup": "^2.45.2",
"rollup-plugin-eslint": "^7.0.0",
"postcss-import": "^16.0.1",
"rimraf": "^5.0.5",
"rollup": "^4.12.0",
"rollup-plugin-postcss": "^4.0.1",
"rollup-plugin-terser": "^7.0.2",
"sass": "^1.49.11"
}
}
9 changes: 9 additions & 0 deletions postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
map : false,
plugins: [
require('postcss-import')(),
require('autoprefixer')(),
require('postcss-custom-properties')(),
require('postcss-flexbugs-fixes')()
]
};
48 changes: 26 additions & 22 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
// Dependencies
// =============================================================================
const path = require('path');
import { babel } from '@rollup/plugin-babel';
import commonjs from '@rollup/plugin-commonjs';
import eslint from '@rollup/plugin-eslint';
import fs from 'node:fs';
import json from '@rollup/plugin-json';
import { mergician } from 'mergician';
import path from 'node:path';
import postcss from 'rollup-plugin-postcss';
import nodeResolve from '@rollup/plugin-node-resolve';
import terser from '@rollup/plugin-terser';

import { babel } from '@rollup/plugin-babel';
import commonjs from '@rollup/plugin-commonjs';
import { eslint } from 'rollup-plugin-eslint';
import json from '@rollup/plugin-json';
import mergician from 'mergician';
import pkg from './package.json';
import postcss from 'rollup-plugin-postcss';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import { terser } from 'rollup-plugin-terser';
const pkg = JSON.parse(
fs.readFileSync(new URL('./package.json', import.meta.url), 'utf8') // prettier-ignore
);


// Settings
Expand All @@ -20,8 +21,8 @@ const currentYear = (new Date()).getFullYear();
const releaseYear = 2018;

// Output
const entryFile = path.resolve(__dirname, 'src', 'js', 'index.js');
const outputFile = path.resolve(__dirname, 'dist', `${pkg.name}.js`);
const entryFile = path.resolve('.', 'src', 'js', 'index.js');
const outputFile = path.resolve('.', 'dist', `${pkg.name}.js`);

// Banner
const bannerData = [
Expand All @@ -40,20 +41,23 @@ const pluginSettings = {
throwOnError : true
},
babel: {
// See .babelrc
babelHelpers: 'bundled'
babelrc: false,
exclude: ['node_modules/**'],
babelHelpers: 'bundled',
presets: [
['@babel/preset-env', {
modules: false,
targets: {
browsers: ['ie >= 11']
}
}]
],
},
postcss: {
inject: {
insertAt: 'top'
},
minimize: true,
plugins : [
require('postcss-import')(),
require('autoprefixer')(),
require('postcss-custom-properties')(),
require('postcss-flexbugs-fixes')()
]
},
terser: {
beautify: {
Expand Down
10 changes: 5 additions & 5 deletions server.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Dependencies
// =============================================================================
const browserSync = require('browser-sync').create();
const compression = require('compression');
import { create } from 'browser-sync';
import compression from 'compression';

browserSync.init({
const bsServer = create();

bsServer.init({
files: [
'./dist/**/*.*',
'./docs/**/*.*'
Expand Down

0 comments on commit cc4d7f0

Please sign in to comment.