generated from graasp/graasp-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
1,368 additions
and
1,062 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/graasp.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta name="description" content="A map implementation for Graasp" /> | ||
<!-- Load Roboto font from Google fonts --> | ||
<link | ||
rel="stylesheet" | ||
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" | ||
/> | ||
<title>Graasp Map</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="index.tsx"></script> | ||
</body> | ||
</html> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/graasp.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta name="description" content="A map implementation for Graasp" /> | ||
<!-- Load Roboto font from Google fonts --> | ||
<link | ||
rel="stylesheet" | ||
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" | ||
/> | ||
<title>Graasp Map</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
<script type="module" src="src/main.ts"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,29 @@ | ||
{ | ||
"name": "graasp-map", | ||
"name": "@graasp/map", | ||
"private": true, | ||
"version": "1.1.0", | ||
"type": "module", | ||
"license": "AGPL-3.0-only", | ||
"repository": "[email protected]:graasp/graasp-map.git", | ||
"author": "Graasp", | ||
"contributors": [ | ||
"Kim Lan Phan Hoang" | ||
], | ||
"type": "module", | ||
"sideEffects": false, | ||
"files": [ | ||
"dist" | ||
], | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.cjs" | ||
} | ||
}, | ||
"scripts": { | ||
"dev": "vite", | ||
"dev": "vite ./example", | ||
"build": "tsc && vite build", | ||
"start": "yarn dev", | ||
"start:test": "vite --mode test", | ||
|
@@ -18,12 +32,18 @@ | |
"preview": "vite preview", | ||
"preview:dev": "vite preview --mode development", | ||
"preview:test": "vite preview --mode test", | ||
"lint": "eslint .", | ||
"pre-commit": "yarn prettier:check && yarn lint && yarn type-check", | ||
"prettier:check": "prettier --check {src,cypress}/**/*.{js,ts,tsx,json}", | ||
"prettier:write": "prettier --write {src,cypress}/**/*.{js,ts,tsx,json}", | ||
"type-check": "tsc --noEmit", | ||
"check": "yarn prettier:check && yarn lint && yarn type-check" | ||
"check": "yarn prettier:check && yarn lint && yarn type-check", | ||
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", | ||
"test": "yarn build && yarn cypress:ci", | ||
"hooks:uninstall": "husky uninstall", | ||
"hooks:install": "husky install", | ||
"prepack": "yarn build", | ||
"cypress:open": "cypress open", | ||
"cypress:ci": "cypress run --component" | ||
}, | ||
"dependencies": { | ||
"@emotion/react": "11.11.3", | ||
|
@@ -67,8 +87,10 @@ | |
"eslint-plugin-react-hooks": "4.6.0", | ||
"eslint-plugin-react-refresh": "^0.4.5", | ||
"prettier": "3.2.5", | ||
"rollup-plugin-visualizer": "5.12.0", | ||
"typescript": "^5.3.3", | ||
"vite": "^4.5.1" | ||
"vite": "^4.5.1", | ||
"vite-plugin-dts": "3.7.3" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export { default as Map } from './components/Map'; | ||
|
||
export * from './types'; |
Oops, something went wrong.