0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

chore: add package script (#607)

This commit is contained in:
Gao Sun 2022-04-22 18:02:54 +08:00 committed by GitHub
parent 603b2e1cfe
commit c12c7ee03d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 1103 additions and 791 deletions

View file

@ -8,7 +8,8 @@
"bootstrap": "lerna bootstrap",
"prepare": "if test \"$NODE_ENV\" != \"production\" && test \"$CI\" != \"true\" ; then husky install ; fi",
"prepack": "lerna run --stream prepack",
"dev": "lerna run --stream prepack && lerna --scope=@logto/{core,ui,console} exec -- pnpm dev"
"dev": "lerna run --stream prepack && lerna --scope=@logto/{core,ui,console} exec -- pnpm dev",
"start": "cd packages/core && node ."
},
"devDependencies": {
"@commitlint/cli": "^13.2.1",

18
package.sh Executable file
View file

@ -0,0 +1,18 @@
echo Building packages
pnpm -- lerna run build --stream
echo Prune dependencies
rm -rf node_modules packages/*/node_modules
echo Install production dependencies
NODE_ENV=production pnpm i
echo Prune files
rm -rf \
.git .github .husky .vscode .parcel-cache pnpm-*.yaml *.js \
packages/*/src \
packages/*/*.config.js packages/*/*.config.ts packages/*/tsconfig*.json
echo Tar
cd ..
tar -czf /tmp/logto.tar.gz logto

View file

@ -17,7 +17,7 @@
"lint:report": "pnpm lint -- --format json --output-file report.json",
"stylelint": "stylelint \"src/**/*.scss\""
},
"dependencies": {
"devDependencies": {
"@logto/phrases": "^0.1.0",
"@logto/react": "^0.1.3",
"@logto/schemas": "^0.1.0",
@ -44,9 +44,7 @@
"react-paginate": "^8.1.2",
"react-router-dom": "^6.2.2",
"remark-gfm": "^3.0.1",
"swr": "^1.2.2"
},
"devDependencies": {
"swr": "^1.2.2",
"@parcel/core": "^2.3.2",
"@parcel/transformer-sass": "^2.3.2",
"@silverhand/eslint-config": "^0.10.2",

View file

@ -14,7 +14,7 @@
"write-heading-ids": "docusaurus write-heading-ids",
"typecheck": "tsc"
},
"dependencies": {
"devDependencies": {
"@algolia/client-search": "^4.13.0",
"@docusaurus/core": "2.0.0-beta.18",
"@docusaurus/preset-classic": "2.0.0-beta.18",
@ -23,9 +23,7 @@
"clsx": "^1.1.1",
"prism-react-renderer": "^1.3.1",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"devDependencies": {
"react-dom": "^17.0.2",
"@docusaurus/module-type-aliases": "2.0.0-beta.18",
"@docusaurus/types": "^2.0.0-beta.18",
"@tsconfig/docusaurus": "^1.0.5",

View file

@ -15,7 +15,7 @@
"stylelint": "stylelint \"src/**/*.scss\"",
"test": "jest"
},
"dependencies": {
"devDependencies": {
"@logto/phrases": "^0.1.0",
"@logto/schemas": "^0.1.0",
"@silverhand/essentials": "^1.1.7",
@ -32,9 +32,7 @@
"react-phone-number-input": "^3.1.46",
"react-router-dom": "^6.2.2",
"react-string-replace": "^1.0.0",
"react-timer-hook": "^3.0.5"
},
"devDependencies": {
"react-timer-hook": "^3.0.5",
"@jest/types": "^27.5.1",
"@parcel/core": "^2.3.2",
"@parcel/transformer-sass": "^2.3.2",

File diff suppressed because it is too large Load diff