Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ node_modules
.idea

# Parcel build dirs
.cache
.parcel-cache
tests/dist

# nyc code coverage
Expand Down
21 changes: 15 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
"homepage": "http://filerjs.github.io/filer",
"bugs": "https://github.com/filerjs/filer/issues",
"license": "BSD-2-Clause",
"filerjs": "filer.js",
"filerminjs": "filer.min.js",
"scripts": {
"eslint": "npm run lint",
"eslint:fix": "npm run lint:fix",
Expand All @@ -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 filerjs",
"build": "parcel build --global Filer src/index.js filerminjs --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",
Expand All @@ -45,7 +47,10 @@
"url": "https://github.com/filerjs/filer.git"
},
"dependencies": {
"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"
},
Expand All @@ -65,14 +70,18 @@
"meow": "^10.0.1",
"mocha": "^9.1.3",
"nyc": "^15.1.0",
"parcel-bundler": "^1.12.5",
"parcel": "^2.0.1",
"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",
"targets": {
"default": {
"includeNodeModules": true
}
},
"browser": "./dist/filer.min.js",
"files": [
"src",
Expand Down
6 changes: 3 additions & 3 deletions tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
</head>
<body>
<div id="mocha"></div>
<script src="../node_modules/chai/chai.js"></script>
<script src="../node_modules/mocha/mocha.js"></script>
<script type="module" src="../node_modules/chai/chai.js"></script>
<script type="module" src="../node_modules/mocha/mocha.js"></script>

<script>
mocha.setup('bdd').timeout(10000).slow(250);
Expand All @@ -21,6 +21,6 @@
</script>

<!-- Add any new tests to `tests/index.js` -->
<script src="./index.js"></script>
<script type="module" src="./index.js"></script>
</body>
</html>