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:
parent
603b2e1cfe
commit
c12c7ee03d
6 changed files with 1103 additions and 791 deletions
|
@ -8,7 +8,8 @@
|
||||||
"bootstrap": "lerna bootstrap",
|
"bootstrap": "lerna bootstrap",
|
||||||
"prepare": "if test \"$NODE_ENV\" != \"production\" && test \"$CI\" != \"true\" ; then husky install ; fi",
|
"prepare": "if test \"$NODE_ENV\" != \"production\" && test \"$CI\" != \"true\" ; then husky install ; fi",
|
||||||
"prepack": "lerna run --stream prepack",
|
"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": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "^13.2.1",
|
"@commitlint/cli": "^13.2.1",
|
||||||
|
|
18
package.sh
Executable file
18
package.sh
Executable 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
|
|
@ -17,7 +17,7 @@
|
||||||
"lint:report": "pnpm lint -- --format json --output-file report.json",
|
"lint:report": "pnpm lint -- --format json --output-file report.json",
|
||||||
"stylelint": "stylelint \"src/**/*.scss\""
|
"stylelint": "stylelint \"src/**/*.scss\""
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"devDependencies": {
|
||||||
"@logto/phrases": "^0.1.0",
|
"@logto/phrases": "^0.1.0",
|
||||||
"@logto/react": "^0.1.3",
|
"@logto/react": "^0.1.3",
|
||||||
"@logto/schemas": "^0.1.0",
|
"@logto/schemas": "^0.1.0",
|
||||||
|
@ -44,9 +44,7 @@
|
||||||
"react-paginate": "^8.1.2",
|
"react-paginate": "^8.1.2",
|
||||||
"react-router-dom": "^6.2.2",
|
"react-router-dom": "^6.2.2",
|
||||||
"remark-gfm": "^3.0.1",
|
"remark-gfm": "^3.0.1",
|
||||||
"swr": "^1.2.2"
|
"swr": "^1.2.2",
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@parcel/core": "^2.3.2",
|
"@parcel/core": "^2.3.2",
|
||||||
"@parcel/transformer-sass": "^2.3.2",
|
"@parcel/transformer-sass": "^2.3.2",
|
||||||
"@silverhand/eslint-config": "^0.10.2",
|
"@silverhand/eslint-config": "^0.10.2",
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
"write-heading-ids": "docusaurus write-heading-ids",
|
"write-heading-ids": "docusaurus write-heading-ids",
|
||||||
"typecheck": "tsc"
|
"typecheck": "tsc"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"devDependencies": {
|
||||||
"@algolia/client-search": "^4.13.0",
|
"@algolia/client-search": "^4.13.0",
|
||||||
"@docusaurus/core": "2.0.0-beta.18",
|
"@docusaurus/core": "2.0.0-beta.18",
|
||||||
"@docusaurus/preset-classic": "2.0.0-beta.18",
|
"@docusaurus/preset-classic": "2.0.0-beta.18",
|
||||||
|
@ -23,9 +23,7 @@
|
||||||
"clsx": "^1.1.1",
|
"clsx": "^1.1.1",
|
||||||
"prism-react-renderer": "^1.3.1",
|
"prism-react-renderer": "^1.3.1",
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
"react-dom": "^17.0.2"
|
"react-dom": "^17.0.2",
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@docusaurus/module-type-aliases": "2.0.0-beta.18",
|
"@docusaurus/module-type-aliases": "2.0.0-beta.18",
|
||||||
"@docusaurus/types": "^2.0.0-beta.18",
|
"@docusaurus/types": "^2.0.0-beta.18",
|
||||||
"@tsconfig/docusaurus": "^1.0.5",
|
"@tsconfig/docusaurus": "^1.0.5",
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
"stylelint": "stylelint \"src/**/*.scss\"",
|
"stylelint": "stylelint \"src/**/*.scss\"",
|
||||||
"test": "jest"
|
"test": "jest"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"devDependencies": {
|
||||||
"@logto/phrases": "^0.1.0",
|
"@logto/phrases": "^0.1.0",
|
||||||
"@logto/schemas": "^0.1.0",
|
"@logto/schemas": "^0.1.0",
|
||||||
"@silverhand/essentials": "^1.1.7",
|
"@silverhand/essentials": "^1.1.7",
|
||||||
|
@ -32,9 +32,7 @@
|
||||||
"react-phone-number-input": "^3.1.46",
|
"react-phone-number-input": "^3.1.46",
|
||||||
"react-router-dom": "^6.2.2",
|
"react-router-dom": "^6.2.2",
|
||||||
"react-string-replace": "^1.0.0",
|
"react-string-replace": "^1.0.0",
|
||||||
"react-timer-hook": "^3.0.5"
|
"react-timer-hook": "^3.0.5",
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@jest/types": "^27.5.1",
|
"@jest/types": "^27.5.1",
|
||||||
"@parcel/core": "^2.3.2",
|
"@parcel/core": "^2.3.2",
|
||||||
"@parcel/transformer-sass": "^2.3.2",
|
"@parcel/transformer-sass": "^2.3.2",
|
||||||
|
|
1855
pnpm-lock.yaml
1855
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue