Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .textlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"filters": {
"comments": true
},
"rules": {
"no-dead-link": true,
"terminology": true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@
related to bricks from the palette, stack of bricks, and other related components of the
project, aimed at improving their functionality and effectiveness.

[Screencast from 13-05-24 12:15:30 PM IST.webm](https://github-production-user-asset-6210df.s3.amazonaws.com/143683619/329949219-ae9df412-8b3a-4930-8635-ad89da828ba9.webm?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20250612%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250612T001431Z&X-Amz-Expires=300&X-Amz-Signature=0acf3b637286f6a81da475839896e128e174d88cbb82d3218d6f4a0e74df00e0&X-Amz-SignedHeaders=host)
<!-- textlint-disable -->
[Screencast from 13-05-24 12:15:30 PM IST.webm](https://github.com/Karan-Palan/musicblocks-v4/assets/143683619/ae9df412-8b3a-4930-8635-ad89da828ba9)
<!-- textlint-enable -->

10. **References**

Expand Down
4 changes: 2 additions & 2 deletions modules/masonry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"private": "true",
"main": "src/index.ts",
"scripts": {
"test": "vitest",
"coverage": "vitest run --coverage",
"test": "vitest --passWithNoTests",
"coverage": "vitest run --coverage --passWithNoTests",
"lint": "eslint src",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
Expand Down
4 changes: 2 additions & 2 deletions modules/masonry/playground/pages/workspace/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import {
ModelBrickData,
ModelBrickExpression,
ModelBrickStatement,
} from '@/brick';
import type { TBrickType, TBrickCoords, TBrickArgDataType } from '@/@types/brick';
} from 'src.old/brick';
import type { TBrickType, TBrickCoords, TBrickArgDataType } from 'src.old/@types/brick';

export type InstanceMap = {
data: ModelBrickData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { TBrickRenderPropsBlock, TColor, TCoords, TExtent } from '@/@types/brick';
import type { TBrickRenderPropsBlock, TColor, TCoords, TExtent } from 'src.old/@types/brick';
import { BrickModelBlock } from '../model';
import { generatePath } from '../utils/path';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { TBrickRenderPropsData, TColor, TCoords, TExtent } from '@/@types/brick';
import type { TBrickRenderPropsData, TColor, TCoords, TExtent } from 'src.old/@types/brick';
import { BrickModelData } from '../model';
import { generatePath } from '../utils/path';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { TBrickRenderPropsExpression, TColor, TCoords, TExtent } from '@/@types/brick';
import type { TBrickRenderPropsExpression, TColor, TCoords, TExtent } from 'src.old/@types/brick';
import { BrickModelExpression } from '../model';
import { generatePath } from '../utils/path';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { TBrickRenderPropsStatement, TColor, TCoords, TExtent } from '@/@types/brick';
import type { TBrickRenderPropsStatement, TColor, TCoords, TExtent } from 'src.old/@types/brick';
import { BrickModelStatement } from '../model';
import { generatePath } from '../utils/path';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
getBrickFromWarehouse,
deleteBrickFromWarehouse,
} from './brickFactory';
import type { TColor } from '@/@types/brick';
import type { TColor } from 'src.old/@types/brick';

// Mock color data for testing
const mockColor: TColor = '#FFFFFF';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { v4 as uuidv4 } from 'uuid';
import type { TColor } from '@/@types/brick';
import type { TColor } from 'src.old/@types/brick';
import BrickStatement from './BrickStatement';
import BrickExpression from './BrickExpression';
import BrickData from './BrickData';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import type { TBrickRenderPropsBlock } from '@/@types/brick';
import type { TBrickRenderPropsBlock } from 'src.old/@types/brick';

const BrickBlock: React.FC<TBrickRenderPropsBlock> = ({
path,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import type { TBrickRenderPropsData, TCoords } from '@/@types/brick';
import type { TBrickRenderPropsData, TCoords } from 'src.old/@types/brick';

interface BrickDataProps {
instance: TBrickRenderPropsData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import type { TBrickRenderPropsExpression, TCoords } from '@/@types/brick';
import type { TBrickRenderPropsExpression, TCoords } from 'src.old/@types/brick';

interface BrickExpressionProps {
instance: TBrickRenderPropsExpression;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import type { TBrickRenderPropsStatement, TCoords } from '@/@types/brick';
import type { TBrickRenderPropsStatement, TCoords } from 'src.old/@types/brick';

interface BrickStatementProps {
instance: TBrickRenderPropsStatement;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import type {
TBrickRenderPropsExpression,
TBrickRenderPropsStatement,
TCoords,
} from '@/@types/brick';
} from 'src.old/@types/brick';

type TBrickWrapperProps =
| { type: 'block'; params: TBrickRenderPropsBlock; coords?: TCoords }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import type {
TColor,
TCoords,
TExtent,
} from '@/@types/brick';
} from 'src.old/@types/brick';

/**
* @abstract
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { JSX } from 'react';
import type { IBrickBlock, TBrickRenderPropsBlock, TColor } from '@/@types/brick';
import type { IBrickBlock, TBrickRenderPropsBlock, TColor } from 'src.old/@types/brick';

import BrickWrapper from './BrickWrapper';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import BrickWrapper from './BrickWrapper';
import type { JSX } from 'react';
import type { IBrickData, TBrickArgDataType, TBrickColor } from '@/@types/brick';
import type { IBrickData, TBrickArgDataType, TBrickColor } from 'src.old/@types/brick';

// -------------------------------------------------------------------------------------------------

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import BrickWrapper from './BrickWrapper';
import type { JSX } from 'react';
import type { IBrickExpression, TBrickArgDataType, TBrickColor } from '@/@types/brick';
import type { IBrickExpression, TBrickArgDataType, TBrickColor } from 'src.old/@types/brick';

// -------------------------------------------------------------------------------------------------

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import BrickWrapper from './BrickWrapper';
import type { JSX } from 'react';
import type { IBrickStatement, TBrickArgDataType, TBrickColor } from '@/@types/brick';
import type { IBrickStatement, TBrickArgDataType, TBrickColor } from 'src.old/@types/brick';

// -------------------------------------------------------------------------------------------------

Expand Down
File renamed without changes.
Empty file.
2 changes: 1 addition & 1 deletion modules/masonry/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"baseUrl": ".",
"paths": {
"@/*": [
"./src/*"
"./src/*",
],
"#/@types/*": [
"../../@types/*"
Expand Down
13 changes: 13 additions & 0 deletions modules/program/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "@sugarlabs/mb4-module-program",
"version": "4.2.0",
"description": "Handles internal representation of Music Blocks programs/ASTs",
"private": "true",
"main": "src/index.ts",
"scripts": {
"test": "vitest --passWithNoTests",
"coverage": "vitest run --coverage --passWithNoTests",
"check": "tsc",
"lint": "eslint src"
}
}
Empty file added modules/program/src/index.ts
Empty file.
17 changes: 17 additions & 0 deletions modules/program/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"extends": "../../tsconfig.json",
"include": [
"./**/*.ts"
],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": [
"./src/*",
],
"#/@types/*": [
"../../@types/*"
]
}
}
}
13 changes: 13 additions & 0 deletions modules/runtime/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "@sugarlabs/mb4-module-runtime",
"version": "4.2.0",
"description": "Execution Runtime for Music Blocks programs",
"private": "true",
"main": "src/index.ts",
"scripts": {
"test": "vitest --passWithNoTests",
"coverage": "vitest run --coverage --passWithNoTests",
"check": "tsc",
"lint": "eslint src"
}
}
Empty file added modules/runtime/src/index.ts
Empty file.
17 changes: 17 additions & 0 deletions modules/runtime/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"extends": "../../tsconfig.json",
"include": [
"./**/*.ts"
],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": [
"./src/*",
],
"#/@types/*": [
"../../@types/*"
]
}
}
}
29 changes: 29 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"visualize": "lerna --scope @sugarlabs/mb4-app run visualize",
"deploy": "lerna --scope @sugarlabs/mb4-app run deploy",
"check": "lerna run check",
"lint": "lerna run lint && markdownlint -i '**/node_modules/**' . && textlint --rule terminology --rule no-dead-link '**/*.md'",
"lint": "lerna run lint && markdownlint -i '**/node_modules/**' . && textlint '**/*.md'",
"test": "lerna run test",
"coverage": "./coverage.sh"
},
Expand Down Expand Up @@ -62,6 +62,7 @@
"sass": "^1.89.2",
"storybook": "^8.6.14",
"textlint": "^14.8.0",
"textlint-filter-rule-comments": "^1.2.2",
"textlint-rule-no-dead-link": "^5.2.0",
"textlint-rule-no-empty-section": "^1.1.0",
"textlint-rule-terminology": "^5.2.12",
Expand All @@ -88,6 +89,8 @@
"modules/painter",
"modules/singer",
"modules/masonry",
"modules/program",
"modules/runtime",
"app"
],
"dependencies": {
Expand Down