|
101 | 101 | "README.md", |
102 | 102 | "LICENSE" |
103 | 103 | ], |
| 104 | + "scripts": { |
| 105 | + "clean": "rm -rf ./dist ./src/versionInfo.ts ./docs/api .tsbuildinfo", |
| 106 | + "build": "npm run clean && npm run sync-component-exports && npm run typecheck && npm run build-version && npm run build-dist && npm run build-js && npm run postbuild-js && npm run build-storybook", |
| 107 | + "build-version": "sh ./timestamp.sh > src/versionInfo.ts && eslint 'src/versionInfo.ts' --fix", |
| 108 | + "prebuild-js": "rm -f .tsbuildinfo", |
| 109 | + "build-js": "tsc", |
| 110 | + "sync-component-exports": "node scripts/sync-component-exports.mjs", |
| 111 | + "postbuild-js": "rm -f dist/versionInfo.d.ts dist/versionInfo.d.ts.map && node scripts/build-component-dts.mjs", |
| 112 | + "build-dist": "webpack --progress", |
| 113 | + "build-form-examples": "npm run build-js && npm run build-version && npm run build-dist && cp ./dist/solid-ui.js ./docs/form-examples/", |
| 114 | + "lint": "eslint", |
| 115 | + "lint-fix": "eslint --fix", |
| 116 | + "typecheck": "tsc --noEmit", |
| 117 | + "typecheck-test": "tsc --noEmit -p tsconfig.test.json", |
| 118 | + "test": "jest --no-coverage", |
| 119 | + "test-coverage": "jest --coverage --collectCoverageFrom=src/**/*.[jt]s", |
| 120 | + "test-debug": "node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand --watch", |
| 121 | + "watch:js": "tsc --watch --preserveWatchOutput", |
| 122 | + "watch:component-dts": "node scripts/watch-component-dts.mjs", |
| 123 | + "watch:component-exports": "node scripts/watch-component-exports.mjs", |
| 124 | + "watch:dist": "webpack --watch --mode development", |
| 125 | + "watch": "npm run sync-component-exports && npm run build-version && npm run build-js && npm run postbuild-js && sh -c 'npm run watch:js & npm run watch:component-dts & npm run watch:component-exports & npm run watch:dist & wait'", |
| 126 | + "dev": "npm run sync-component-exports && npm run build-version && sh -c 'npm run watch:js & npm run watch:component-dts & npm run watch:component-exports & npm run watch:dist & wait'", |
| 127 | + "doc": "typedoc --out ./docs/api/ ./src/ --excludeInternal", |
| 128 | + "prepublishOnly": "npm run build && npm run lint && npm test && npm run doc", |
| 129 | + "preversion": "npm run sync-component-exports && npm run lint && npm run typecheck && npm test", |
| 130 | + "postpublish": "git push origin main --follow-tags", |
| 131 | + "storybook": "storybook dev -p 6006", |
| 132 | + "build-storybook": "storybook build --output-dir ./examples/storybook" |
| 133 | + }, |
104 | 134 | "repository": { |
105 | 135 | "type": "git", |
106 | 136 | "url": "git+https://github.com/SolidOS/solid-ui.git" |
|
0 commit comments