diff --git a/examples/layout-manager-playground/README.md b/examples/layout-manager-playground/README.md index 27b5511f5..a4e29d9ba 100644 --- a/examples/layout-manager-playground/README.md +++ b/examples/layout-manager-playground/README.md @@ -7,7 +7,7 @@ To start develop, you need to setup yalc to link geppetto libraries to the curre To do so, run ``` -bash setup.sh +bash setup.bash ``` ## Available Scripts diff --git a/examples/layout-manager-playground/setup.sh b/examples/layout-manager-playground/setup.bash similarity index 100% rename from examples/layout-manager-playground/setup.sh rename to examples/layout-manager-playground/setup.bash diff --git a/examples/multiple-layout-manager-playground/README.md b/examples/multiple-layout-manager-playground/README.md index 15fea65a4..0e84ffcd9 100644 --- a/examples/multiple-layout-manager-playground/README.md +++ b/examples/multiple-layout-manager-playground/README.md @@ -6,9 +6,16 @@ To start develop, you need to setup yalc to link geppetto libraries to the curre To do so, run +``` +bash setup.bash +``` + +or you can also run manually + ``` yarn install && yarn link:yalc ``` + # Project Description The Multiple Layout Manager Playground enables the creation of one or more workspaces, providing a flexible environment for managing various layouts. diff --git a/examples/multiple-layout-manager-playground/setup.sh b/examples/multiple-layout-manager-playground/setup.bash similarity index 100% rename from examples/multiple-layout-manager-playground/setup.sh rename to examples/multiple-layout-manager-playground/setup.bash diff --git a/geppetto.js/README.md b/geppetto.js/README.md index 2a68c8cbf..fa6f981f7 100644 --- a/geppetto.js/README.md +++ b/geppetto.js/README.md @@ -23,10 +23,10 @@ The UI components of Geppetto.js (work in progress) To develop for one of the libraries, they need to be installed and "linked" together. The linking of the libraries between each other is done using `yalc`, be sure you have it installed. -To bootstrapped all the projects, you can run the `dev-install.sh` script. +To bootstrapped all the projects, you can run the `dev-install.bash` script. ```bash -sh dev-install.sh +bash dev-install.bash ``` ### Working on multiple dependent components at the same time diff --git a/geppetto.js/dev-install.sh b/geppetto.js/dev-install.bash similarity index 80% rename from geppetto.js/dev-install.sh rename to geppetto.js/dev-install.bash index 180eaefd4..543d2bac5 100644 --- a/geppetto.js/dev-install.sh +++ b/geppetto.js/dev-install.bash @@ -7,10 +7,10 @@ cd "${PARENT_PATH}" # Install and init the projects first in reverse order (the most dependent first) # each "init" script is linking the projects using yalc echo "[*] Install geppetto-core" -(cd geppetto-core && yarn install && yarn link:yalc && yarn build:dev && yarn publish:yalc) +(cd geppetto-core && yarn install && yarn link:yalc && yarn build:clean && yarn build:dev && yarn publish:yalc) echo "[*] Install geppetto-ui" -(cd geppetto-ui && yarn install && yarn link:yalc && yarn build:dev && yarn publish:yalc) +(cd geppetto-ui && yarn install && yarn link:yalc && yarn build:clean && yarn build:dev && yarn publish:yalc) echo "[*] Install geppetto-client" -(cd geppetto-client && yarn install && yarn link:yalc && yarn build:dev && yarn publish:yalc) +(cd geppetto-client && yarn install && yarn link:yalc && yarn build:clean && yarn build:dev && yarn publish:yalc) diff --git a/geppetto.js/geppetto-client/package.json b/geppetto.js/geppetto-client/package.json index bbaa916fb..bf91b7970 100644 --- a/geppetto.js/geppetto-client/package.json +++ b/geppetto.js/geppetto-client/package.json @@ -18,6 +18,7 @@ "lint-fix": "eslint . --fix", "test": "jest --passWithNoTests", "build": "yarn build:js && yarn build:package && yarn build:style", + "build:clean": "rm -rf build", "build:dev": "yarn build:ts && yarn build:types && yarn build:package && yarn build:style", "build:js": "babel src -d build --copy-files --extensions '.js,.jsx,.ts,.tsx'", "build:js-dev": "babel src -d build --copy-files --extensions '.js,.jsx,.ts,.tsx' --source-maps", diff --git a/geppetto.js/geppetto-core/package.json b/geppetto.js/geppetto-core/package.json index 2e3e948fa..7c526ccb3 100644 --- a/geppetto.js/geppetto-core/package.json +++ b/geppetto.js/geppetto-core/package.json @@ -17,6 +17,7 @@ "lint": "eslint .", "test": "jest", "build": "yarn build:js && yarn build:package", + "build:clean": "rm -rf build", "build:dev": "yarn build:js-dev && yarn build:package", "build:js": "babel src -d build --copy-files --extensions '.js,.jsx,.ts,.tsx'", "build:js-dev": "babel src -d build --copy-files --extensions '.js,.jsx,.ts,.tsx' --source-maps", diff --git a/geppetto.js/geppetto-ui/package.json b/geppetto.js/geppetto-ui/package.json index 4afa1362e..98acf8cdf 100644 --- a/geppetto.js/geppetto-ui/package.json +++ b/geppetto.js/geppetto-ui/package.json @@ -17,11 +17,12 @@ "lint": "eslint .", "test": "jest --passWithNoTests", "build": "yarn build:js && yarn build:types && yarn build:remove-large-files && yarn build:package", + "build:clean": "rm -rf build", "build:dev": "yarn build:js-dev && yarn build:types && yarn build:package", "build:js": "babel src -d build --copy-files --extensions '.js,.jsx,.ts,.tsx'", "build:js-dev": "babel src -d build --copy-files --extensions '.js,.jsx,.ts,.tsx' --source-maps", - "build:types": "tsc --emitDeclarationOnly", "build:ts": "tsc", + "build:types": "tsc --emitDeclarationOnly", "build:remove-large-files": "rm -rf ./build/**/showcase/*.json", "build:src": "rm -rf build && mkdir build && cp -r src/. build && yarn build:package", "build:package": "cp package.json README.md LICENSE build",