Skip to content

Commit

Permalink
Setup workspace for library and storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
tnagorra committed Nov 9, 2023
1 parent 93fd27a commit 6bcca4d
Show file tree
Hide file tree
Showing 28 changed files with 1,708 additions and 1,846 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# dependencies
/node_modules
node_modules/

# testing
/coverage
coverage/

# production
/build
build/

# misc
.DS_Store
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
# Re-map

React wrapper for Maplibre
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions lib/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Re-map

React wrapper for Maplibre
76 changes: 76 additions & 0 deletions lib/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"name": "@togglecorp/re-map",
"version": "0.2.0-beta-5",
"description": "Maplibre wrapper for React",
"files": [
"/build"
],
"type": "module",
"main": "build/cjs/index.js",
"module": "build/esm/index.js",
"typings": "build/esm/index.d.ts",
"scripts": {
"prepare": "install-peers",
"build": "rm -rf ./build && rollup -c && tsc --project tsconfig-typings.json",
"watch": "rollup -c -w",
"prepack": "yarn build",
"typecheck": "tsc",
"lint": "eslint ./src --report-unused-disable-directives --ignore-pattern '**/*.test.ts'"
},
"repository": {
"type": "git",
"url": "git+https://github.com/toggle-corp/re-map.git"
},
"author": "tnagorra",
"license": "ISC",
"bugs": {
"url": "https://github.com/toggle-corp/re-map/issues"
},
"homepage": "https://github.com/toggle-corp/re-map#readme",
"dependencies": {
"@babel/runtime-corejs3": "^7.22.3",
"@togglecorp/fujs": "^2.1.0"
},
"peerDependencies": {
"@mapbox/mapbox-gl-draw": "^1.4.3",
"maplibre-gl": "^3.5.2",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"peerDependenciesMeta": {
"@mapbox/mapbox-gl-draw": {
"optional": true
}
},
"devDependencies": {
"@babel/core": "^7.22.8",
"@babel/plugin-transform-runtime": "^7.22.7",
"@babel/preset-env": "^7.22.7",
"@babel/preset-react": "^7.22.5",
"@babel/preset-typescript": "^7.22.5",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-commonjs": "^25.0.2",
"@rollup/plugin-eslint": "^9.0.4",
"@rollup/plugin-node-resolve": "^15.1.0",
"@types/mapbox__mapbox-gl-draw": "^1.4.6",
"@types/node": "^20.4.1",
"@types/react": "^17.0.2",
"@types/react-dom": "^17.0.2",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"babel-loader": "^9.1.3",
"babel-plugin-polyfill-corejs3": "^0.8.2",
"eslint": "^8.44.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-import-resolver-babel-module": "^5.3.2",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"install-peers-cli": "^2.2.0",
"rollup": "^3.26.2",
"rollup-plugin-filesize": "^10.0.0",
"rollup-plugin-progress": "^1.1.2",
"typescript": "^5.1.6"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
81 changes: 8 additions & 73 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,79 +1,14 @@
{
"name": "@togglecorp/re-map",
"version": "0.2.0-beta-5",
"description": "Maplibre wrapper for React",
"files": [
"/build"
],
"type": "module",
"main": "build/cjs/index.js",
"module": "build/esm/index.js",
"typings": "build/esm/index.d.ts",
"private": true,
"scripts": {
"postinstall": "patch-package",
"prepare": "install-peers",
"build": "rm -rf ./build && rollup -c && tsc --project tsconfig-typings.json",
"watch": "rollup -c -w",
"prepack": "yarn build",
"typecheck": "tsc",
"lint": "eslint ./src --report-unused-disable-directives --ignore-pattern '**/*.test.ts'"
},
"repository": {
"type": "git",
"url": "git+https://github.com/toggle-corp/re-map.git"
},
"author": "tnagorra",
"license": "ISC",
"bugs": {
"url": "https://github.com/toggle-corp/re-map/issues"
},
"homepage": "https://github.com/toggle-corp/re-map#readme",
"dependencies": {
"@babel/runtime-corejs3": "^7.22.3",
"@togglecorp/fujs": "^2.1.0"
},
"peerDependencies": {
"@mapbox/mapbox-gl-draw": "^1.4.3",
"maplibre-gl": "^3.5.2",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"peerDependenciesMeta": {
"@mapbox/mapbox-gl-draw": {
"optional": true
}
"postinstall": "patch-package"
},
"devDependencies": {
"@babel/core": "^7.22.8",
"@babel/plugin-transform-runtime": "^7.22.7",
"@babel/preset-env": "^7.22.7",
"@babel/preset-react": "^7.22.5",
"@babel/preset-typescript": "^7.22.5",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-commonjs": "^25.0.2",
"@rollup/plugin-eslint": "^9.0.4",
"@rollup/plugin-node-resolve": "^15.1.0",
"@types/mapbox__mapbox-gl-draw": "^1.4.6",
"@types/node": "^20.4.1",
"@types/react": "^17.0.2",
"@types/react-dom": "^17.0.2",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"babel-loader": "^9.1.3",
"babel-plugin-polyfill-corejs3": "^0.8.2",
"eslint": "^8.44.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-import-resolver-babel-module": "^5.3.2",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"install-peers-cli": "^2.2.0",
"patch-package": "^8.0.0",
"postinstall-postinstall": "^2.1.0",
"rollup": "^3.26.2",
"rollup-plugin-filesize": "^10.0.0",
"rollup-plugin-progress": "^1.1.2",
"typescript": "^5.1.6"
}
"postinstall-postinstall": "^2.1.0"
},
"workspaces": [
"lib",
"storybook"
]
}
Loading

0 comments on commit 6bcca4d

Please sign in to comment.