Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
Prepare monorepo for npm publish
Andras Bacsaic082208b6322
diff --git a/apps/designer/remix.config.js b/apps/designer/remix.config.jsindex 7f626ae9c0..a4431ce1e2 100644--- a/apps/designer/remix.config.js+++ b/apps/designer/remix.config.js@@ -17,4 +17,7 @@ module.exports = {// assetsBuildDirectory: "public/build",serverBuildPath: "api/index.js",// publicPath: "/build/",+ watchPaths: () => {+ return ["../../packages/webstudio-react-sdk/lib/**/*"];+ },};diff --git a/package.json b/package.jsonindex 504f3f4a01..643cfdd494 100644--- a/package.json+++ b/package.json@@ -14,7 +14,8 @@"dev": "turbo run dev --parallel","format": "prettier --write \"**/*.{ts,tsx,md}\"","prepare": "husky install",- "storybook": "turbo run storybook:run"+ "storybook": "turbo run storybook:run",+ "publish:react-sdk": "turbo run prepublishOnly --filter react-sdk"},"devDependencies": {"eslint-config-custom": "*",diff --git a/packages/webstudio-react-sdk/.github/workflows/react-sdk-publish.yml b/packages/webstudio-react-sdk/.github/workflows/react-sdk-publish.ymlnew file mode 100644index 0000000000..813d4e13ad--- /dev/null+++ b/packages/webstudio-react-sdk/.github/workflows/react-sdk-publish.yml@@ -0,0 +1,17 @@+on: push++jobs:+ publish:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v3+ - uses: actions/setup-node@v3+ with:+ node-version: 16+ - run: yar publish:react-sdk+ - uses: JS-DevTools/npm-publish@v1+ with:+ token: ${{ secrets.NPM_TOKEN }}+ dry-run: true+ check-version: true+ greater-version-only: true\ No newline at end of filediff --git a/packages/webstudio-react-sdk/package.json b/packages/webstudio-react-sdk/package.jsonindex 82f8ef3b18..8cfe4c60a6 100644--- a/packages/webstudio-react-sdk/package.json+++ b/packages/webstudio-react-sdk/package.json@@ -5,6 +5,7 @@"author": "Webstudio <[email protected]>","homepage": "https://webstudio.is","scripts": {+ "dev": "tsc -w","build": "yarn build:mdn-data && yarn build:args","build:mdn-data": "./bin/mdn-data.ts ./src/css","build:args": "./bin/generate-arg-types.ts './src/components/*.tsx !./src/**/*.stories.tsx'",@@ -14,7 +15,7 @@"postinstall": "prisma generate","test": "jest","checks": "yarn typecheck && yarn test",- "prepublishOnly": "yarn checks && yarn build:lib",+ "prepublishOnly": "yarn install && yarn checks && yarn build:lib","storybook:run": "start-storybook -p 6006","storybook:build": "build-storybook"},@@ -64,7 +65,7 @@"react-nano-state": "^0.4.0","zod": "^3.17.3"},- "main": "src/index.ts",+ "main": "lib/index.js","types": "src/index.ts","files": ["README.md",diff --git a/turbo.json b/turbo.jsonindex 7c9bd87ce1..885887f547 100644--- a/turbo.json+++ b/turbo.json@@ -12,6 +12,9 @@},"storybook:run": {"cache": false+ },+ "prepublishOnly": {+ "cache": false}}}