diff --git a/package.json b/package.json index 1ad26b1..384d378 100644 --- a/package.json +++ b/package.json @@ -14,12 +14,14 @@ "config-sync": "./bin/config-sync" }, "scripts": { + "develop": "nodemon -e js,jsx --ignore playground --exec \"yalc publish && yalc push\"", "eslint": "eslint --max-warnings=0 './**/*.{js,jsx}'", "eslint:fix": "eslint --fix './**/*.{js,jsx}'", "test:unit": "jest --verbose", "test:integration": "cd playground && node_modules/.bin/jest --verbose --forceExit --detectOpenHandles", - "plugin:install": "yarn install && rm -rf node_modules/@strapi/helper-plugin", - "playground:install": "cd playground && yarn install", + "playground:install": "yarn playground:yalc-add-link && cd playground && yarn install", + "playground:yalc-add": "cd playground && yalc add strapi-plugin-config-sync", + "playground:yalc-add-link": "cd playground && yalc add --link strapi-plugin-config-sync", "playground:build": "cd playground && yarn build", "playground:develop": "cd playground && yarn develop" }, @@ -78,10 +80,12 @@ "jest-cli": "^29.3.1", "jest-styled-components": "^7.0.2", "lodash": "^4.17.11", + "nodemon": "^3.1.7", "react": "^17.0.2", "react-redux": "^7.2.2", "redux": "^4.0.5", - "styled-components": "^5.2.3" + "styled-components": "^5.2.3", + "yalc": "^1.0.0-pre.53" }, "bugs": { "url": "https://github.com/pluginpal/strapi-plugin-config-sync/issues" diff --git a/playground/.gitignore b/playground/.gitignore index 39e2e19..1cc8d80 100644 --- a/playground/.gitignore +++ b/playground/.gitignore @@ -114,3 +114,7 @@ exports *.cache build .strapi-updater.json + +# yalc +.yalc +yalc.lock diff --git a/playground/config/admin.js b/playground/config/admin.js index fa18851..4166400 100644 --- a/playground/config/admin.js +++ b/playground/config/admin.js @@ -14,4 +14,7 @@ module.exports = ({ env }) => ({ nps: env.bool('FLAG_NPS', true), promoteEE: env.bool('FLAG_PROMOTE_EE', true), }, + watchIgnoreFiles: [ + '!**/.yalc/**/server/**', + ] }); diff --git a/playground/package.json b/playground/package.json index 240e945..74c156e 100644 --- a/playground/package.json +++ b/playground/package.json @@ -16,14 +16,14 @@ "supertest": "^6.3.3" }, "dependencies": { - "@strapi/strapi": "5.0.4", - "@strapi/plugin-users-permissions": "5.0.4", "@strapi/plugin-cloud": "5.0.4", + "@strapi/plugin-users-permissions": "5.0.4", + "@strapi/strapi": "5.0.4", "better-sqlite3": "9.4.3", "react": "^18.0.0", "react-dom": "^18.0.0", "react-router-dom": "^6.0.0", - "strapi-plugin-config-sync": "./..", + "strapi-plugin-config-sync": "link:.yalc/strapi-plugin-config-sync", "styled-components": "^6.0.0" }, "author": { diff --git a/yarn.lock b/yarn.lock index 0128104..7868e39 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9925,6 +9925,22 @@ nodemon@3.0.2: touch "^3.1.0" undefsafe "^2.0.5" +nodemon@^3.1.7: + version "3.1.7" + resolved "https://registry.yarnpkg.com/nodemon/-/nodemon-3.1.7.tgz#07cb1f455f8bece6a499e0d72b5e029485521a54" + integrity sha512-hLj7fuMow6f0lbB0cD14Lz2xNjwsyruH251Pk4t/yIitCFJbmY1myuLlHm/q06aST4jg6EgAh74PIBBrRqpVAQ== + dependencies: + chokidar "^3.5.2" + debug "^4" + ignore-by-default "^1.0.1" + minimatch "^3.1.2" + pstree.remy "^1.1.8" + semver "^7.5.3" + simple-update-notifier "^2.0.0" + supports-color "^5.5.0" + touch "^3.1.0" + undefsafe "^2.0.5" + noms@0.0.0: version "0.0.0" resolved "https://registry.yarnpkg.com/noms/-/noms-0.0.0.tgz#da8ebd9f3af9d6760919b27d9cdc8092a7332859" @@ -13495,7 +13511,7 @@ y18n@^5.0.5: resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== -yalc@1.0.0-pre.53: +yalc@1.0.0-pre.53, yalc@^1.0.0-pre.53: version "1.0.0-pre.53" resolved "https://registry.yarnpkg.com/yalc/-/yalc-1.0.0-pre.53.tgz#c51db2bb924a6908f4cb7e82af78f7e5606810bc" integrity sha512-tpNqBCpTXplnduzw5XC+FF8zNJ9L/UXmvQyyQj7NKrDNavbJtHvzmZplL5ES/RCnjX7JR7W9wz5GVDXVP3dHUQ==