mirror of
https://github.com/idrawjs/idraw
synced 2026-05-24 10:08:34 +00:00
71 lines
2.5 KiB
JSON
71 lines
2.5 KiB
JSON
{
|
|
"name": "root",
|
|
"private": false,
|
|
"scripts": {
|
|
"dev": "node ./scripts/dev.js",
|
|
"dev:board": "node ./scripts/dev.js board",
|
|
"dev:core": "node ./scripts/dev.js core",
|
|
"build": "npm run build:src && npm run build:min",
|
|
"build:src": "NODE_ENV=production BUILD_MODE=reset node ./scripts/build.js",
|
|
"build:min": "node ./scripts/minify.js",
|
|
"snapshot": "node ./scripts/build.js && node ./scripts/snapshot.js",
|
|
"e2e": "mocha --exit ./__tests__/e2e.test.js",
|
|
"init": "lerna bootstrap",
|
|
"init:cnpm": "lerna bootstrap --npm-client=cnpm",
|
|
"clear": "rm -rf ./packages/*/dist/ & rm -rf ./packages/*/node_modules/",
|
|
"jest": "jest --config jest.config.js",
|
|
"jest:update": "jest --update-snapshot --config jest.config.js",
|
|
"cover": "jest --config jest.cover.js",
|
|
"beforetest": "lerna bootstrap --no-ci && npm run build",
|
|
"test": "npm run e2e && npm run jest",
|
|
"serve": "http-server ./",
|
|
"lint": "eslint --fix --ext .ts packages/*/src/**",
|
|
"precommit": "npm run lint",
|
|
"prepush": "npm run lint",
|
|
"clear:jest": "rm -rf ./packages/*/__tests__/__snapshots__",
|
|
"pu": "npm run build && lerna publish --force-publish",
|
|
"pu2": "lerna version && npm run build && lerna publish from-git --force-publish",
|
|
"hello": "node ./scripts/hello.js"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.13.14",
|
|
"@babel/preset-env": "^7.13.12",
|
|
"@babel/preset-typescript": "^7.13.0",
|
|
"@microsoft/api-extractor": "^7.13.2",
|
|
"@rollup/plugin-json": "^4.1.0",
|
|
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
"@rollup/pluginutils": "^4.1.1",
|
|
"@types/jest": "^26.0.23",
|
|
"@typescript-eslint/eslint-plugin": "^4.25.0",
|
|
"@typescript-eslint/parser": "^4.25.0",
|
|
"babel-jest": "^26.6.3",
|
|
"canvas": "^2.8.0",
|
|
"chalk": "^4.1.0",
|
|
"eslint": "^7.27.0",
|
|
"execa": "^5.0.0",
|
|
"fs-extra": "^9.1.0",
|
|
"http-server": "^0.12.3",
|
|
"husky": "^6.0.0",
|
|
"jest": "^26.6.3",
|
|
"jest-canvas-mock": "^2.3.1",
|
|
"jimp": "^0.16.1",
|
|
"koa-compose": "^4.1.0",
|
|
"lerna": "^3.22.1",
|
|
"less": "^4.1.1",
|
|
"mocha": "^8.3.2",
|
|
"pixelmatch": "^5.2.1",
|
|
"pngjs": "^6.0.0",
|
|
"postcss": "^8.2.9",
|
|
"puppeteer": "^8.0.0",
|
|
"rollup": "^2.40.0",
|
|
"rollup-plugin-cleanup": "^3.2.1",
|
|
"rollup-plugin-postcss": "^4.0.0",
|
|
"rollup-plugin-terser": "^7.0.2",
|
|
"rollup-plugin-typescript2": "^0.30.0",
|
|
"serve-handler": "^6.1.3",
|
|
"terser": "^5.9.0",
|
|
"ts-node": "^9.1.1",
|
|
"tslib": "^2.2.0",
|
|
"typescript": "^4.3.2"
|
|
}
|
|
}
|