Skip to content

Commit

Permalink
test: coffee conversion to js
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Nov 7, 2024
1 parent 5935cc0 commit 50b5d71
Show file tree
Hide file tree
Showing 45 changed files with 1,667 additions and 1,394 deletions.
17 changes: 1 addition & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,6 @@
"description": "Chained and parallel async iterator in one elegant function.",
"version": "2.7.0",
"author": "David Worms <david@adaltas.com> (https://www.adaltas.com)",
"coffeelintConfig": {
"indentation": {
"level": "error",
"value": 2
},
"line_endings": {
"level": "error",
"value": "unix"
},
"max_line_length": {
"level": "ignore"
}
},
"contributors": [
{
"name": "David Worms",
Expand All @@ -27,7 +14,6 @@
"@commitlint/config-conventional": "^19.5.0",
"@eslint/core": "^0.8.0",
"@eslint/js": "^9.14.0",
"coffeescript": "2.7.0",
"eslint": "^9.14.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-mocha": "^10.5.0",
Expand Down Expand Up @@ -80,7 +66,6 @@
"module": "dist/each.esm.js",
"mocha": {
"inline-diffs": true,
"loader": "./test/loaders/coffee.js",
"recursive": true,
"reporter": "spec",
"require": [
Expand All @@ -107,7 +92,7 @@
"release:patch": "standard-version --release-as patch",
"release:major": "standard-version --release-as major",
"postrelease": "git push --follow-tags origin master",
"test": "mocha --node-flags '--unhandled-rejections=strict' test/**/*.coffee"
"test": "mocha --node-flags '--unhandled-rejections=strict' test/*.js"
},
"type": "module"
}
28 changes: 16 additions & 12 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@

import eslint from '@rollup/plugin-eslint';
import pkg from './package.json' assert { type: 'json' }
import eslint from "@rollup/plugin-eslint";
import { readFile } from "node:fs/promises";
const pkg = JSON.parse(
await readFile(new URL("./package.json", import.meta.url), "utf8"),
);

export default {
input: 'lib/index.js',
input: "lib/index.js",
output: [
{
file: `dist/${pkg.name}.umd.js`,
name: 'mixme',
format: 'umd'
name: "mixme",
format: "umd",
},
{
file: `dist/${pkg.name}.cjs.cjs`,
format: 'cjs'
format: "cjs",
},
{
file: `dist/${pkg.name}.esm.js`,
format: 'esm'
}
format: "esm",
},
],
plugins: [
eslint({
fix: true,
}),
],
plugins: [eslint({
fix: true,
})]
};
134 changes: 0 additions & 134 deletions test/api.call.coffee

This file was deleted.

Loading

0 comments on commit 50b5d71

Please sign in to comment.