Skip to content

Commit

Permalink
chore: add "npm-link" task
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Aug 18, 2023
1 parent 8e89888 commit a39fe5e
Show file tree
Hide file tree
Showing 21 changed files with 48 additions and 25 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
"packages/*"
],
"scripts": {
"format": "prettier -w .",
"build": "turbo run build",
"format": "prettier -w .",
"lint": "turbo run lint",
"test": "turbo run test",
"serve": "turbo run watch --parallel",
"npm-link": "turbo run npm-link --output-logs=new-only",
"doc:build": "yarn doc:vuepress && yarn doc:typedoc",
"doc:typedoc": "node ./build/generate-typedoc-readme.mjs && typedoc --plugin typedoc-plugin-extras --out public/api",
"doc:vuepress": "vuepress build docs",
Expand Down
3 changes: 2 additions & 1 deletion packages/autorotate-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"build": "tsup",
"watch": "tsup --watch",
"lint": "eslint . --fix",
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public"
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public",
"npm-link": "cd dist && npm link"
},
"psv": {
"globalName": "PhotoSphereViewer.AutorotatePlugin"
Expand Down
3 changes: 2 additions & 1 deletion packages/compass-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"build": "tsup",
"watch": "tsup --watch",
"lint": "eslint . --fix && stylelint \"src/**/*.scss\" --fix",
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public"
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public",
"npm-link": "cd dist && npm link"
},
"psv": {
"globalName": "PhotoSphereViewer.CompassPlugin",
Expand Down
3 changes: 2 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"watch": "tsup --watch",
"lint": "eslint . --fix && stylelint \"src/**/*.scss\" --fix",
"test": "mocha -r ts-node/register \"src/**/*.spec.ts\"",
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public"
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public",
"npm-link": "cd dist && npm link"
},
"psv": {
"globalName": "PhotoSphereViewer",
Expand Down
3 changes: 2 additions & 1 deletion packages/cubemap-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"build": "tsup",
"watch": "tsup --watch",
"lint": "eslint . --fix",
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public"
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public",
"npm-link": "cd dist && npm link"
},
"psv": {
"globalName": "PhotoSphereViewer.CubemapAdapter"
Expand Down
3 changes: 2 additions & 1 deletion packages/cubemap-tiles-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"build": "tsup",
"watch": "tsup --watch",
"lint": "eslint . --fix",
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public"
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public",
"npm-link": "cd dist && npm link"
},
"psv": {
"globalName": "PhotoSphereViewer.CubemapTilesAdapter"
Expand Down
3 changes: 2 additions & 1 deletion packages/cubemap-video-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"build": "tsup",
"watch": "tsup --watch",
"lint": "eslint . --fix",
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public"
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public",
"npm-link": "cd dist && npm link"
},
"psv": {
"globalName": "PhotoSphereViewer.CubemapVideoAdapter"
Expand Down
3 changes: 2 additions & 1 deletion packages/equirectangular-tiles-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"build": "tsup",
"watch": "tsup --watch",
"lint": "eslint . --fix",
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public"
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public",
"npm-link": "cd dist && npm link"
},
"psv": {
"globalName": "PhotoSphereViewer.EquirectangularTilesAdapter"
Expand Down
3 changes: 2 additions & 1 deletion packages/equirectangular-video-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"build": "tsup",
"watch": "tsup --watch",
"lint": "eslint . --fix",
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public"
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public",
"npm-link": "cd dist && npm link"
},
"psv": {
"globalName": "PhotoSphereViewer.EquirectangularVideoAdapter"
Expand Down
3 changes: 2 additions & 1 deletion packages/gallery-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"build": "tsup",
"watch": "tsup --watch",
"lint": "eslint . --fix && stylelint \"src/**/*.scss\" --fix",
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public"
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public",
"npm-link": "cd dist && npm link"
},
"psv": {
"globalName": "PhotoSphereViewer.GalleryPlugin",
Expand Down
3 changes: 2 additions & 1 deletion packages/gyroscope-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"build": "tsup",
"watch": "tsup --watch",
"lint": "eslint . --fix",
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public"
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public",
"npm-link": "cd dist && npm link"
},
"psv": {
"globalName": "PhotoSphereViewer.GyroscopePlugin"
Expand Down
3 changes: 2 additions & 1 deletion packages/little-planet-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"build": "tsup",
"watch": "tsup --watch",
"lint": "eslint . --fix",
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public"
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public",
"npm-link": "cd dist && npm link"
},
"psv": {
"globalName": "PhotoSphereViewer.LittlePlanetAdapter"
Expand Down
3 changes: 2 additions & 1 deletion packages/map-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"build": "tsup",
"watch": "tsup --watch",
"lint": "eslint . --fix && stylelint \"src/**/*.scss\" --fix",
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public"
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public",
"npm-link": "cd dist && npm link"
},
"psv": {
"globalName": "PhotoSphereViewer.MapPlugin",
Expand Down
3 changes: 2 additions & 1 deletion packages/markers-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"build": "tsup",
"watch": "tsup --watch",
"lint": "eslint . --fix && stylelint \"src/**/*.scss\" --fix",
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public"
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public",
"npm-link": "cd dist && npm link"
},
"psv": {
"globalName": "PhotoSphereViewer.MarkersPlugin",
Expand Down
3 changes: 2 additions & 1 deletion packages/resolution-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"build": "tsup",
"watch": "tsup --watch",
"lint": "eslint . --fix",
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public"
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public",
"npm-link": "cd dist && npm link"
},
"psv": {
"globalName": "PhotoSphereViewer.ResolutionPlugin"
Expand Down
3 changes: 2 additions & 1 deletion packages/settings-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"build": "tsup",
"watch": "tsup --watch",
"lint": "eslint . --fix && stylelint \"src/**/*.scss\" --fix",
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public"
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public",
"npm-link": "cd dist && npm link"
},
"psv": {
"globalName": "PhotoSphereViewer.SettingsPlugin",
Expand Down
3 changes: 2 additions & 1 deletion packages/stereo-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"build": "tsup",
"watch": "tsup --watch",
"lint": "eslint . --fix",
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public"
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public",
"npm-link": "cd dist && npm link"
},
"psv": {
"globalName": "PhotoSphereViewer.StereoPlugin"
Expand Down
3 changes: 2 additions & 1 deletion packages/video-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"build": "tsup",
"watch": "tsup --watch",
"lint": "eslint . --fix && stylelint \"src/**/*.scss\" --fix",
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public"
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public",
"npm-link": "cd dist && npm link"
},
"psv": {
"globalName": "PhotoSphereViewer.VideoPlugin",
Expand Down
3 changes: 2 additions & 1 deletion packages/virtual-tour-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"build": "tsup",
"watch": "tsup --watch",
"lint": "eslint . --fix && stylelint \"src/**/*.scss\" --fix",
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public"
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public",
"npm-link": "cd dist && npm link"
},
"psv": {
"globalName": "PhotoSphereViewer.VirtualTourPlugin",
Expand Down
3 changes: 2 additions & 1 deletion packages/visible-range-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"build": "tsup",
"watch": "tsup --watch",
"lint": "eslint . --fix",
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public"
"publish-dist": "cd dist && npm publish --tag=$NPM_TAG --access=public",
"npm-link": "cd dist && npm link"
},
"psv": {
"globalName": "PhotoSphereViewer.VisibleRangePlugin"
Expand Down
13 changes: 8 additions & 5 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,22 @@
"outputs": ["dist/**"]
},
"lint": {
"inputs": ["src/**"],
"outputs": []
"inputs": ["src/**"]
},
"test": {
"inputs": ["src/**"],
"outputs": []
"inputs": ["src/**"]
},
"watch": {
"cache": false
"cache": false,
"persistent": true
},
"//#watch": {
"cache": false
},
"npm-link": {
"dependsOn": ["build"],
"cache": false
},
"publish-dist": {
"dependsOn": ["^publish-dist"],
"cache": false
Expand Down

0 comments on commit a39fe5e

Please sign in to comment.