chore: rename package to render-math-problems
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# render-mathproblems
|
# render-math-problems
|
||||||
|
|
||||||
BlockSystem es una aplicación educativa interactiva construida con Vue 3, centrada en el componente **`Blocks.vue`**. Este componente permite a los usuarios colocar, arrastrar, agrupar y dividir bloques unitarios en una cuadrícula, fomentando la intuición matemática sobre agrupamiento y valor posicional (unidades y decenas).
|
BlockSystem es una aplicación educativa interactiva construida con Vue 3, centrada en el componente **`Blocks.vue`**. Este componente permite a los usuarios colocar, arrastrar, agrupar y dividir bloques unitarios en una cuadrícula, fomentando la intuición matemática sobre agrupamiento y valor posicional (unidades y decenas).
|
||||||
|
|
||||||
@@ -11,15 +11,15 @@ Para detalles de la API y configuración de `Blocks.vue`, consulta `src/README.m
|
|||||||
## Uso Como Paquete
|
## Uso Como Paquete
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm install render-mathproblems
|
npm install render-math-problems
|
||||||
```
|
```
|
||||||
|
|
||||||
Importa el componente y sus estilos:
|
Importa el componente y sus estilos:
|
||||||
|
|
||||||
```vue
|
```vue
|
||||||
<script setup>
|
<script setup>
|
||||||
import { MathProblem } from "render-mathproblems";
|
import { MathProblem } from "render-math-problems";
|
||||||
import "render-mathproblems/style.css";
|
import "render-math-problems/style.css";
|
||||||
|
|
||||||
const exercise = {
|
const exercise = {
|
||||||
exerciseType: "move-blocks",
|
exerciseType: "move-blocks",
|
||||||
@@ -47,7 +47,7 @@ const exercise = {
|
|||||||
También puedes importar el nombre interno del componente:
|
También puedes importar el nombre interno del componente:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import { Blocks } from "render-mathproblems";
|
import { Blocks } from "render-math-problems";
|
||||||
```
|
```
|
||||||
|
|
||||||
## Requisitos
|
## Requisitos
|
||||||
|
|||||||
4
blocksystem/package-lock.json
generated
4
blocksystem/package-lock.json
generated
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "render-mathproblems",
|
"name": "render-math-problems",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "render-mathproblems",
|
"name": "render-math-problems",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tsconfig/node24": "^24.0.4",
|
"@tsconfig/node24": "^24.0.4",
|
||||||
|
|||||||
@@ -1,24 +1,24 @@
|
|||||||
{
|
{
|
||||||
"name": "render-mathproblems",
|
"name": "render-math-problems",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"main": "./dist/render-mathproblems.umd.cjs",
|
"main": "./dist/render-math-problems.umd.cjs",
|
||||||
"module": "./dist/render-mathproblems.js",
|
"module": "./dist/render-math-problems.js",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"style": "./dist/render-mathproblems.css",
|
"style": "./dist/render-math-problems.css",
|
||||||
"sideEffects": [
|
"sideEffects": [
|
||||||
"**/*.css"
|
"**/*.css"
|
||||||
],
|
],
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"import": "./dist/render-mathproblems.js",
|
"import": "./dist/render-math-problems.js",
|
||||||
"require": "./dist/render-mathproblems.umd.cjs"
|
"require": "./dist/render-math-problems.umd.cjs"
|
||||||
},
|
},
|
||||||
"./style.css": "./dist/render-mathproblems.css"
|
"./style.css": "./dist/render-math-problems.css"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export default defineConfig(({ command }) => {
|
|||||||
lib: {
|
lib: {
|
||||||
entry: fileURLToPath(new URL('./src/index.ts', import.meta.url)),
|
entry: fileURLToPath(new URL('./src/index.ts', import.meta.url)),
|
||||||
name: 'RenderMathProblems',
|
name: 'RenderMathProblems',
|
||||||
fileName: 'render-mathproblems',
|
fileName: 'render-math-problems',
|
||||||
},
|
},
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
external: ['vue'],
|
external: ['vue'],
|
||||||
|
|||||||
Reference in New Issue
Block a user