Skip to content

Commit

Permalink
Merge pull request #99 from sgenoud/feature/replicad-studio
Browse files Browse the repository at this point in the history
Open source the studio
  • Loading branch information
sgenoud authored Aug 15, 2023
2 parents 6113981 + 71bec50 commit a1f85c0
Show file tree
Hide file tree
Showing 108 changed files with 24,189 additions and 17,916 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/cla.yml

This file was deleted.

72 changes: 72 additions & 0 deletions .github/workflows/publish-studio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: "Publish pages"

on:
push:
branches: [main]
pull_request:
types: [opened, synchronize]

jobs:
publish-studio:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --no-frozen-lockfile

- name: Build packages
run: pnpm prepare-packages

- name: Build the studio
run: cd packages/studio && pnpm build

- name: Build the example app
run: cd packages/replicad-app-example && pnpm build

- name: Publish the studio
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_PAGES_ACCESS }}
accountId: d0e0387dd16b671a301d1ce6e7b73609
projectName: replicad-studio
directory: packages/studio/dist
wranglerVersion: '3'

- name: Publish the example app
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_PAGES_ACCESS }}
accountId: d0e0387dd16b671a301d1ce6e7b73609
projectName: replicad-example-app
directory: packages/replicad-app-example/build
wranglerVersion: '3'
128 changes: 0 additions & 128 deletions CLA/CLA.html

This file was deleted.

13 changes: 0 additions & 13 deletions CLA/README.md

This file was deleted.

7 changes: 7 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright 2023 QuaroTech Sàrl

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8 changes: 3 additions & 5 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"npmClient": "yarn",
"useWorkspaces": true,
"npmClient": "pnpm",
"version": "0.15.1",
"packages": [
"packages/*"
]
"packages": ["packages/*"],
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
}
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
{
"name": "root",
"private": true,
"type": "module",
"workspaces": [
"packages/*"
],
"license": "MIT",
"scripts": {
"prepare-packages": "lerna exec yarn build --no-private --no-bail",
"publish-packages": "lerna publish"
"prepare-packages": "lerna exec pnpm build --no-private --no-bail",
"publish-packages": "lerna publish"
},
"devDependencies": {
"eslint": "^8.1.0",
"lerna": "^4.0.0",
"lerna": "7.1.5",
"prettier": "^2.4.1"
}
}
7 changes: 7 additions & 0 deletions packages/replicad-app-example/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright 2023 QuaroTech Sàrl

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading

0 comments on commit a1f85c0

Please sign in to comment.