Skip to content

Commit

Permalink
Update dev dependencies & build
Browse files Browse the repository at this point in the history
- update dev dependencies
- use `headless: ‘new’` option for puppeteer
- fix yarn example command
- improve handling of config ts files by rollup
  • Loading branch information
puckey committed Aug 15, 2023
1 parent f1b2d13 commit d7cca5c
Show file tree
Hide file tree
Showing 6 changed files with 2,343 additions and 2,338 deletions.
37 changes: 19 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,48 +32,49 @@
"javascript"
],
"scripts": {
"start": "rollup -c rollup/config.lib.js -w",
"start": "rollup -c rollup/config.lib.ts -w --configPlugin rollup-plugin-typescript2",
"lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\" \"test/**/*.test.ts\" \"rollup/**/*.ts\" \"scripts/**/*.ts\" \"scripts/**/*.js\" --fix --cache --cache-location ~/.eslintcache/eslintcache",
"test": "jest --verbose=false",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"test:debug": "node --inspect-brk ./node_modules/jest/bin/jest --runInBand --no-cache --watch",
"prebuild": "rimraf dist",
"build": "rollup -c rollup/config.lib.js",
"example": "rollup -w -c rollup/config.dev.ts",
"build": "rollup -c rollup/config.lib.ts --configPlugin rollup-plugin-typescript2",
"example": "rollup -w -c rollup/config.dev.ts --configPlugin rollup-plugin-typescript2",
"parse-analytics": "node ./scripts/analytics_parser.js",
"update-benchmarks": "rimraf benchmarks && mkdir -p benchmarks && mkdir -p benchmarks-min && ts-node -O '{\"module\":\"commonjs\"}' ./scripts/update_benchmarks.ts && tar -czvf benchmarks.tar.gz benchmarks-min/*.json && rm -rf benchmarks-min"
},
"dependencies": {
"webgl-constants": "^1.1.1"
},
"devDependencies": {
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"@types/jest": "^27.0.3",
"@typescript-eslint/eslint-plugin": "^5.7.0",
"@typescript-eslint/parser": "^5.7.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.1.0",
"@types/jest": "^29.5.3",
"@typescript-eslint/eslint-plugin": "^6.4.0",
"@typescript-eslint/parser": "^6.4.0",
"csvtojson": "^2.0.10",
"eslint": "^8.4.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.0.4",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"jest": "^29.6.2",
"jest-environment-jsdom": "^29.6.2",
"moment": "^2.29.1",
"prettier": "^2.3.1",
"prettier": "^3.0.1",
"puppeteer": "^21.0.3",
"rimraf": "^3.0.2",
"rollup": "^2.51.0",
"rimraf": "^5.0.1",
"rollup": "^3.28.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-filesize": "^9.1.1",
"rollup-plugin-filesize": "^10.0.0",
"rollup-plugin-livereload": "^2.0.0",
"rollup-plugin-serve": "^1.1.0",
"rollup-plugin-serve": "^2.0.2",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.31.1",
"ts-jest": "^27.0.2",
"ts-jest": "^29.1.1",
"ts-node": "^10.0.0",
"typescript": "^4.3.2"
"typescript": "^5.1.6"
},
"jest": {
"testURL": "http://localhost",
Expand Down
6 changes: 3 additions & 3 deletions rollup/config.dev.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Vendor
import json from '@rollup/plugin-json';
import resolve from '@rollup/plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import copy from 'rollup-plugin-copy';
import json from '@rollup/plugin-json';
import livereload from 'rollup-plugin-livereload';
import resolve from '@rollup/plugin-node-resolve';
import serve from 'rollup-plugin-serve';
import sourcemaps from 'rollup-plugin-sourcemaps';
import typescript from 'rollup-plugin-typescript2';
Expand All @@ -12,7 +12,7 @@ export default {
input: 'example/index.ts',
output: [
{
dir: `./example/build`,
dir: `./dist`,
format: 'esm',
sourcemap: true,
},
Expand Down
8 changes: 0 additions & 8 deletions rollup/config.lib.js

This file was deleted.

6 changes: 3 additions & 3 deletions rollup/config.lib.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Vendor
import json from '@rollup/plugin-json';
import resolve from '@rollup/plugin-node-resolve';
import { ModuleFormat, RollupOptions } from 'rollup';
import copy from 'rollup-plugin-copy';
import commonjs from 'rollup-plugin-commonjs';
import json from '@rollup/plugin-json';
import copy from 'rollup-plugin-copy';
import filesize from 'rollup-plugin-filesize';
import resolve from '@rollup/plugin-node-resolve';
import sourcemaps from 'rollup-plugin-sourcemaps';
import { terser } from 'rollup-plugin-terser';
import typescript from 'rollup-plugin-typescript2';
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"outDir": "dist/lib",
"typeRoots": ["node_modules/@types"]
},
"include": ["src/**/*.ts"],
"include": ["src/**/*.ts", "rollup/*.ts", "example/**/*.ts"],
"exclude": ["node_modules"]
}
Loading

0 comments on commit d7cca5c

Please sign in to comment.