Build in Blocks [Framework]
SOFTWARE ENGINEERING CONTRIBUTING DOC FOR BUILD IN BLOCKS FRAMEWORK
General Information about project
Build in Blocks [Framework]COLLABOCATE'S BUILD IN BLOCKS FRAMEWORK PROJECTLocal development instructions
We've made recent changes to the repository location and local development instructions of this project. Therefore, this section may be outdated. For now and pending the time that this section will be updated, you can get guidance on where to find and how to run this project in our collabo community Discord channel.
Head over to the GitHub repository: https://github.com/collabo-community/building-blocks
Fork and clone the repository as shown in the SWE contribution workflow.
Find the local development instructions for the different Building Blocks projects in the tabs below, depending on the one you want to develop locally.
Installing project dependencies
Install dependencies (if you have not done so before):
npm installRun and watch changes for Block CSS files
Run the script command below to compile/build the scss files into css files:
npm run blocks:cssInstalling project dependencies
Install dependencies (if you have not done so before):
npm installGenerating Blocks TS build files:
Run the script command below to compile/build the typescript files into .js and .d.ts files:
npm run blocks:ts:buildTesting out Blocks TS in other Collabo Community projects
Follow these steps when developing and testing out the changes made to the Blocks TS library, in some other Collabo Community project:
First steps:
Ensure you have both the building building blocks repo and the repo for the project you want to test locally on your computer.
Ensure that you have also followed the local development instructions to install dependencies, set them up and you are able to run them without problems.
Change directory into the project you want to use to test the BlocksTS library in. Then do the following:
Link your local building blocks repo, using the relative path to your local building blocks repo. For example, if the repo folder for project you are testing with and the building blocks repo folder are on the same level and share the same parent folder, you would link it like so:
npm link ../building-blocksThen add the building blocks package to the project's dependencies as shown below. Check the package.json of the building blocks repo to know the version of the package to use. For example, if building blocks' package.json has
"version": "0.0.0", you would add it to the package.json dependencies for the project you are testing with like so:
"@collabo-community/building-blocks": "^0.0.0"Import what you need from building blocks, and start using/testing in the project.
No instructions for now. Please ask about this project on our discord channel if you are interested in contributing.
Last updated
Was this helpful?