Enhance scripts in package.json files

This commit is contained in:
bjoluc 2021-08-17 20:26:38 +02:00
parent b288a8e21f
commit c340c5ea55
52 changed files with 253 additions and 200 deletions

1
.gitignore vendored
View File

@ -9,3 +9,4 @@ dist/
coverage/
.vscode/
dist.zip
packages/jspsych/README.md

View File

@ -6,6 +6,7 @@
],
"scripts": {
"test": "jest",
"test:watch": "npm test -- --watch",
"build": "npm run build -ws",
"build:archive": "gulp createDistArchive",
"prepare": "husky install && npm run build",

View File

@ -16,10 +16,12 @@
"test": "tests"
},
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch",
"prepack": "cp ../../README.md ."
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs --passWithNoTests",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest --passWithNoTests",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs --passWithNoTests",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest --passWithNoTests",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs --passWithNoTests",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest --passWithNoTests",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs --passWithNoTests",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest --passWithNoTests",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs --passWithNoTests",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest --passWithNoTests",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs --passWithNoTests",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest --passWithNoTests",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs --passWithNoTests",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest --passWithNoTests",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs --passWithNoTests",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest --passWithNoTests",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs --passWithNoTests",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest --passWithNoTests",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs --passWithNoTests",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest --passWithNoTests",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs --passWithNoTests",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest --passWithNoTests",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs --passWithNoTests",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest --passWithNoTests",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs --passWithNoTests",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest --passWithNoTests",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs --passWithNoTests",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest --passWithNoTests",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs --passWithNoTests",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest --passWithNoTests",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs --passWithNoTests",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest --passWithNoTests",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs --passWithNoTests",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest --passWithNoTests",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs --passWithNoTests",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest --passWithNoTests",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs --passWithNoTests",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest --passWithNoTests",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",

View File

@ -12,10 +12,11 @@
],
"source": "src/index.ts",
"scripts": {
"test": "jest --config jest.config.cjs --passWithNoTests",
"build": "rollup --config rollup.config.mjs",
"watch": "npm run build -- --watch",
"tsc": "tsc"
"test": "jest --passWithNoTests",
"test:watch": "npm test -- --watch",
"tsc": "tsc",
"build": "rollup --config",
"build:watch": "npm run build -- --watch"
},
"repository": {
"type": "git",