mirror of
https://github.com/vega-org/vega-providers.git
synced 2026-04-17 15:41:45 +00:00
chore: update package.json scripts and add new dependencies
- Replaced the test script to run test-providers.js. - Updated the build script to run build-simple.js. - Added new scripts for development: dev, dev:build, watch, watch:dev, dev:auto, and auto. - Updated start script to build and then run the dev server. - Added new devDependencies: concurrently, cors, express, and nodemon.
This commit is contained in:
16
nodemon.json
Normal file
16
nodemon.json
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"watch": ["providers"],
|
||||||
|
"ext": "ts",
|
||||||
|
"ignore": ["node_modules", "dist", "*.test.ts"],
|
||||||
|
"exec": "node build-simple.js",
|
||||||
|
"env": {
|
||||||
|
"NODE_ENV": "development"
|
||||||
|
},
|
||||||
|
"delay": "1000",
|
||||||
|
"verbose": true,
|
||||||
|
"colours": true,
|
||||||
|
"events": {
|
||||||
|
"restart": "echo '\n🔄 File changes detected, rebuilding providers...\n'",
|
||||||
|
"crash": "echo '\n❌ Build crashed, waiting for file changes...\n'"
|
||||||
|
}
|
||||||
|
}
|
||||||
1508
package-lock.json
generated
1508
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
15
package.json
15
package.json
@@ -7,12 +7,23 @@
|
|||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "node test-providers.js",
|
||||||
"build": "rimraf dist && tsc"
|
"build": "node build-simple.js",
|
||||||
|
"dev": "node dev-server.js",
|
||||||
|
"dev:build": "npm run build && npm run dev",
|
||||||
|
"watch": "nodemon",
|
||||||
|
"watch:dev": "nodemon --watch providers --ext ts --exec \"npm run build\" & npm run dev",
|
||||||
|
"dev:auto": "concurrently \"npm run watch\" \"npm run dev\"",
|
||||||
|
"auto": "node auto-dev.js",
|
||||||
|
"start": "npm run build && npm run dev"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/cheerio": "^0.22.35",
|
"@types/cheerio": "^0.22.35",
|
||||||
"@types/node": "^24.0.1",
|
"@types/node": "^24.0.1",
|
||||||
|
"concurrently": "^8.2.2",
|
||||||
|
"cors": "^2.8.5",
|
||||||
|
"express": "^4.21.2",
|
||||||
|
"nodemon": "^3.1.10",
|
||||||
"typescript": "^5.8.3"
|
"typescript": "^5.8.3"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user