From b1905594c5dfff93f61e6d847a0a12b03e90280e Mon Sep 17 00:00:00 2001 From: Joshua Li <49960519+joshuali7536@users.noreply.github.com> Date: Tue, 16 Nov 2021 21:59:59 -0500 Subject: [PATCH 1/4] Migration from Parcel-Bundler 1.12.5 to Parcel 2 --- .gitignore | 2 +- package.json | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 9a547e61..4bd5020c 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,7 @@ node_modules .idea # Parcel build dirs -.cache +.parcel-cache tests/dist # nyc code coverage diff --git a/package.json b/package.json index d50e4f40..6c75e015 100644 --- a/package.json +++ b/package.json @@ -65,14 +65,13 @@ "meow": "^10.0.1", "mocha": "^9.1.3", "nyc": "^15.1.0", - "parcel-bundler": "^1.12.5", + "parcel": "^2.0.0", "pretty-bytes": "^5.6.0", "release-it": "^14.11.6", "run.env": "^1.1.0", "unused-filename": "^3.0.1", "walk": "^2.3.15" }, - "main": "./src/index.js", "browser": "./dist/filer.min.js", "files": [ "src", From 870dcf90c224846cbac93e6edc8098dbcb55bb86 Mon Sep 17 00:00:00 2001 From: Joshua Li <49960519+joshuali7536@users.noreply.github.com> Date: Tue, 16 Nov 2021 23:01:51 -0500 Subject: [PATCH 2/4] Added more packages to dependencies in package.json and added module type to scripts in index.html --- package.json | 19 ++++++++++++++----- tests/index.html | 6 +++--- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 6c75e015..4733fe9d 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,8 @@ "homepage": "http://filerjs.github.io/filer", "bugs": "https://github.com/filerjs/filer/issues", "license": "BSD-2-Clause", + "testpath1": "filer.js", + "testpath2": "filer.min.js", "scripts": { "eslint": "npm run lint", "eslint:fix": "npm run lint:fix", @@ -23,14 +25,14 @@ "test:node": "mocha --timeout 5000 tests", "pretest:node-debug": "echo \"Open Chrome to chrome://inspect to debug tests...\"", "test:node-debug": "mocha --timeout 5000 --inspect-brk tests", - "test:manual": "parcel tests/index.html --out-dir tests/dist", + "test:manual": "parcel tests/index.html --dist-dir tests/dist", "test:migrations": "mocha tests/filesystems/migrations", "pretest": "npm run lint", "test": "npm run karma-mocha", "posttest": "npm run test:migrations", - "prebuild": "parcel build --global Filer src/index.js --no-minify --out-file filer.js", - "build": "parcel build --global Filer src/index.js --out-file filer.min.js --detailed-report", - "build-tests": "parcel build tests/index.js --no-source-maps --out-dir tests/dist", + "prebuild": "parcel build --global Filer src/index.js --no-minify testpath1", + "build": "parcel build --global Filer src/index.js testpath2 --detailed-report", + "build-tests": "parcel build tests/index.js --no-source-maps --dist-dir tests/dist", "prekarma-mocha-firefox": "npm run build-tests", "karma-mocha-firefox": "karma start karma.conf.js --browsers FirefoxHeadless", "prekarma-mocha-chrome": "npm run build-tests", @@ -45,9 +47,16 @@ "url": "https://github.com/filerjs/filer.git" }, "dependencies": { + "buffer": "^6.0.3", + "chai": "^4.3.4", + "chai-datetime": "^1.8.0", "es6-promisify": "^7.0.0", + "fake-indexeddb": "^3.1.7", "minimatch": "^3.0.4", - "schema-utils": "^3.1.1" + "path": "^0.12.7", + "process": "^0.11.10", + "schema-utils": "^3.1.1", + "url": "https://github.com/filerjs/filer.git" }, "devDependencies": { "regenerator-runtime": "^0.13.9", diff --git a/tests/index.html b/tests/index.html index 1561f12c..37e59d1b 100644 --- a/tests/index.html +++ b/tests/index.html @@ -8,8 +8,8 @@
- - + + - +