Skip to content

Commit 4631586

Browse files
committed
chore: set up monorepo boilerplate
1 parent 4ea3979 commit 4631586

File tree

9 files changed

+2748
-0
lines changed

9 files changed

+2748
-0
lines changed

babel.config.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
module.exports = {
3+
presets: ['@babel/preset-typescript', '@babel/preset-react'],
4+
5+
overrides: [
6+
{
7+
include: ['./packages/rosette-core', './packages/rosette-react'],
8+
presets: [['@babel/preset-env', { targets: 'defaults, not ie 11' }]],
9+
},
10+
],
11+
}

package.json

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "rosette-monorepo",
3+
"version": "0.0.1",
4+
"description": "A monorepo of TypeScript libraries for interacting with the Rosette protocol",
5+
"private": true,
6+
"scripts": {
7+
"build": "preconstruct build",
8+
"preinstall": "npx only-allow pnpm",
9+
"dev": "preconstruct dev",
10+
"postinstall": "preconstruct dev"
11+
},
12+
"repository": {
13+
"type": "git",
14+
"url": "git+https://github.com/BlossomLabs/rosette.ts.git"
15+
},
16+
"keywords": [
17+
"ethereum"
18+
],
19+
"author": "Blossom Labs",
20+
"license": "MIT",
21+
"bugs": {
22+
"url": "https://github.com/BlossomLabs/rosette.ts/issues"
23+
},
24+
"homepage": "https://github.com/BlossomLabs/rosette.ts#readme",
25+
"preconstruct": {
26+
"packages": [
27+
"packages/*"
28+
]
29+
},
30+
"devDependencies": {
31+
"@babel/core": "^7.17.10",
32+
"@babel/preset-env": "^7.17.10",
33+
"@babel/preset-react": "^7.16.7",
34+
"@babel/preset-typescript": "^7.16.7",
35+
"@preconstruct/cli": "^2.1.5",
36+
"typescript": "^4.6.4"
37+
}
38+
}

packages/rosette-core/package.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "@blossom-labs/rosette-core",
3+
"version": "0.0.1",
4+
"description": "A library for interacting with the Rosette protocol",
5+
"main": "dist/blossom-labs-rosette-core.cjs.js",
6+
"module": "dist/blossom-labs-rosette-core.esm.js",
7+
"scripts": {
8+
"test": "echo \"Error: no test specified\" && exit 1"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/BlossomLabs/rosette.ts.git"
13+
},
14+
"author": "Blossom Labs",
15+
"license": "MIT",
16+
"bugs": {
17+
"url": "https://github.com/BlossomLabs/rosette.ts/issues"
18+
},
19+
"homepage": "https://github.com/BlossomLabs/rosette.ts#readme"
20+
}

packages/rosette-core/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default 2

packages/rosette-react/package.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "@blossom-labs/rosette-react",
3+
"version": "0.0.1",
4+
"description": "A React library for interacting with the Rosette protocol",
5+
"main": "dist/blossom-labs-rosette-react.cjs.js",
6+
"module": "dist/blossom-labs-rosette-react.esm.js",
7+
"scripts": {
8+
"test": "echo \"Error: no test specified\" && exit 1"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/BlossomLabs/rosette.ts.git"
13+
},
14+
"author": "Blossom Labs",
15+
"license": "MIT",
16+
"bugs": {
17+
"url": "https://github.com/BlossomLabs/rosette.ts/issues"
18+
},
19+
"homepage": "https://github.com/BlossomLabs/rosette.ts#readme"
20+
}

packages/rosette-react/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default 1

0 commit comments

Comments
 (0)