Skip to content

Commit e1aefbf

Browse files
committed
chore: use yalc for playground development
1 parent 750c1a2 commit e1aefbf

5 files changed

Lines changed: 34 additions & 7 deletions

File tree

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@
1414
"config-sync": "./bin/config-sync"
1515
},
1616
"scripts": {
17+
"develop": "nodemon -e js,jsx --ignore playground --exec \"yalc publish && yalc push\"",
1718
"eslint": "eslint --max-warnings=0 './**/*.{js,jsx}'",
1819
"eslint:fix": "eslint --fix './**/*.{js,jsx}'",
1920
"test:unit": "jest --verbose",
2021
"test:integration": "cd playground && node_modules/.bin/jest --verbose --forceExit --detectOpenHandles",
21-
"plugin:install": "yarn install && rm -rf node_modules/@strapi/helper-plugin",
22-
"playground:install": "cd playground && yarn install",
22+
"playground:install": "yarn playground:yalc-add-link && cd playground && yarn install",
23+
"playground:yalc-add": "cd playground && yalc add strapi-plugin-config-sync",
24+
"playground:yalc-add-link": "cd playground && yalc add --link strapi-plugin-config-sync",
2325
"playground:build": "cd playground && yarn build",
2426
"playground:develop": "cd playground && yarn develop"
2527
},
@@ -78,10 +80,12 @@
7880
"jest-cli": "^29.3.1",
7981
"jest-styled-components": "^7.0.2",
8082
"lodash": "^4.17.11",
83+
"nodemon": "^3.1.7",
8184
"react": "^17.0.2",
8285
"react-redux": "^7.2.2",
8386
"redux": "^4.0.5",
84-
"styled-components": "^5.2.3"
87+
"styled-components": "^5.2.3",
88+
"yalc": "^1.0.0-pre.53"
8589
},
8690
"bugs": {
8791
"url": "https://github.com/pluginpal/strapi-plugin-config-sync/issues"

playground/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,7 @@ exports
114114
*.cache
115115
build
116116
.strapi-updater.json
117+
118+
# yalc
119+
.yalc
120+
yalc.lock

playground/config/admin.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ module.exports = ({ env }) => ({
1414
nps: env.bool('FLAG_NPS', true),
1515
promoteEE: env.bool('FLAG_PROMOTE_EE', true),
1616
},
17+
watchIgnoreFiles: [
18+
'!**/.yalc/**/server/**',
19+
]
1720
});

playground/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
"supertest": "^6.3.3"
1717
},
1818
"dependencies": {
19-
"@strapi/strapi": "5.0.4",
20-
"@strapi/plugin-users-permissions": "5.0.4",
2119
"@strapi/plugin-cloud": "5.0.4",
20+
"@strapi/plugin-users-permissions": "5.0.4",
21+
"@strapi/strapi": "5.0.4",
2222
"better-sqlite3": "9.4.3",
2323
"react": "^18.0.0",
2424
"react-dom": "^18.0.0",
2525
"react-router-dom": "^6.0.0",
26-
"strapi-plugin-config-sync": "./..",
26+
"strapi-plugin-config-sync": "link:.yalc/strapi-plugin-config-sync",
2727
"styled-components": "^6.0.0"
2828
},
2929
"author": {

yarn.lock

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9925,6 +9925,22 @@ nodemon@3.0.2:
99259925
touch "^3.1.0"
99269926
undefsafe "^2.0.5"
99279927

9928+
nodemon@^3.1.7:
9929+
version "3.1.7"
9930+
resolved "https://registry.yarnpkg.com/nodemon/-/nodemon-3.1.7.tgz#07cb1f455f8bece6a499e0d72b5e029485521a54"
9931+
integrity sha512-hLj7fuMow6f0lbB0cD14Lz2xNjwsyruH251Pk4t/yIitCFJbmY1myuLlHm/q06aST4jg6EgAh74PIBBrRqpVAQ==
9932+
dependencies:
9933+
chokidar "^3.5.2"
9934+
debug "^4"
9935+
ignore-by-default "^1.0.1"
9936+
minimatch "^3.1.2"
9937+
pstree.remy "^1.1.8"
9938+
semver "^7.5.3"
9939+
simple-update-notifier "^2.0.0"
9940+
supports-color "^5.5.0"
9941+
touch "^3.1.0"
9942+
undefsafe "^2.0.5"
9943+
99289944
noms@0.0.0:
99299945
version "0.0.0"
99309946
resolved "https://registry.yarnpkg.com/noms/-/noms-0.0.0.tgz#da8ebd9f3af9d6760919b27d9cdc8092a7332859"
@@ -13495,7 +13511,7 @@ y18n@^5.0.5:
1349513511
resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55"
1349613512
integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==
1349713513

13498-
yalc@1.0.0-pre.53:
13514+
yalc@1.0.0-pre.53, yalc@^1.0.0-pre.53:
1349913515
version "1.0.0-pre.53"
1350013516
resolved "https://registry.yarnpkg.com/yalc/-/yalc-1.0.0-pre.53.tgz#c51db2bb924a6908f4cb7e82af78f7e5606810bc"
1350113517
integrity sha512-tpNqBCpTXplnduzw5XC+FF8zNJ9L/UXmvQyyQj7NKrDNavbJtHvzmZplL5ES/RCnjX7JR7W9wz5GVDXVP3dHUQ==

0 commit comments

Comments
 (0)