Skip to content

Commit 306233b

Browse files
committed
Initial commit
Details: - Drafts monorepo structure, based on Lerna (for publishing) and Preconstruct (for building, and linking for dev). The stack is based on sigma.js v3's one. - Drafts packages/storybook, to allow writing stories in there but also in each workspace independently.
0 parents  commit 306233b

19 files changed

+334
-0
lines changed

.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
**/dist/*
2+
**/build/*
3+
**/node_modules/*
4+
5+
# Doc and examples
6+
**/storybook-static/*

.eslintrc

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"env": {
3+
"jest": true,
4+
"browser": true
5+
},
6+
"root": true,
7+
"ignorePatterns": ["*.js", "*.d.ts"],
8+
"parser": "@typescript-eslint/parser",
9+
"plugins": ["import", "@typescript-eslint"],
10+
"extends": [
11+
"eslint:recommended",
12+
"plugin:@typescript-eslint/recommended",
13+
"plugin:@typescript-eslint/eslint-recommended",
14+
"prettier",
15+
"plugin:storybook/recommended"
16+
],
17+
"rules": {
18+
"no-prototype-builtins": "off",
19+
"no-console": "warn",
20+
"import/extensions": [
21+
"warn",
22+
"never",
23+
{
24+
"json": "always",
25+
"glsl": "always"
26+
}
27+
],
28+
"@typescript-eslint/no-unused-vars": [
29+
"warn",
30+
{
31+
"argsIgnorePattern": "^_",
32+
"varsIgnorePattern": "^_",
33+
"caughtErrorsIgnorePattern": "^_"
34+
}
35+
]
36+
}
37+
}

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
*.tgz
3+
*.log
4+
*.swp
5+
.DS_Store
6+
.idea
7+
.vscode

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
**/dist/*
2+
**/build/*
3+
**/node_modules/*
4+
5+
# Doc and examples
6+
**/storybook-static/*

.prettierrc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"trailingComma": "all",
3+
"printWidth": 120,
4+
"importOrder": ["<THIRD_PARTY_MODULES>", "^[./]"],
5+
"importOrderSeparation": true,
6+
"importOrderSortSpecifiers": true,
7+
"importOrderGroupNamespaceSpecifiers": true,
8+
"plugins": ["@trivago/prettier-plugin-sort-imports"]
9+
}

LICENSE.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Copyright (C) 2013-2024, Alexis Jacomy, Guillaume Plique https://www.sigmajs.org
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
4+
to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
5+
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
10+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
11+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
12+
IN THE SOFTWARE.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Gephi TypeScript utils
2+
3+
TODO

babel.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: ["@babel/preset-env", "@babel/preset-typescript"],
3+
};

lerna.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3+
"version": "independent",
4+
"private": false,
5+
"push": false,
6+
"includeMergedTags": true
7+
}

package.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "@gephi/root",
3+
"description": "Various TypeScript helper modules used in the web Gephi ecosystem",
4+
"homepage": "https://gephi.org",
5+
"bugs": "http://github.com/gephi/typescript-utils/issues",
6+
"workspaces": [
7+
"packages/*"
8+
],
9+
"scripts": {
10+
"clean": "npm exec --workspaces -- npx rimraf node_modules && npx rimraf node_modules",
11+
"build": "preconstruct build",
12+
"prettify": "prettier --write .",
13+
"lint": "eslint .",
14+
"test": "npm run test --workspaces",
15+
"start": "npm run start --workspace=@gephi/ts-utils-storybook",
16+
"postinstall": "preconstruct dev",
17+
"postpublish": "preconstruct dev",
18+
"prepublishOnly": "npm run lint && npm run test && npm run build"
19+
},
20+
"dependencies": {
21+
"@babel/core": "^7.24.0",
22+
"@babel/preset-typescript": "^7.23.3",
23+
"@preconstruct/cli": "^2.8.3",
24+
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
25+
"eslint": "^8.57.0",
26+
"eslint-config-prettier": "^9.1.0",
27+
"eslint-plugin-import": "^2.29.1",
28+
"eslint-plugin-prettier": "^5.1.3",
29+
"eslint-plugin-storybook": "^0.8.0",
30+
"lerna": "^8.1.2",
31+
"prettier": "^3.2.5",
32+
"rimraf": "^5.0.5",
33+
"typescript": "^5.4.2",
34+
"typescript-eslint": "^7.2.0"
35+
},
36+
"preconstruct": {
37+
"packages": [],
38+
"exports": {
39+
"importConditionDefaultExport": "default"
40+
}
41+
}
42+
}

0 commit comments

Comments
 (0)