Skip to content

Commit

Permalink
feat(tools): https://github.com/flocon-trpg/tools をこのリポジトリに引っ越し
Browse files Browse the repository at this point in the history
  • Loading branch information
kizahasi committed Nov 6, 2024
1 parent 9155f4a commit a5161c3
Show file tree
Hide file tree
Showing 32 changed files with 1,250 additions and 3 deletions.
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = {
'sdk',
'sdk-react',
'sdk-urql',
'tools',
'utils',
'web-server-utils',
],
Expand Down
2 changes: 2 additions & 0 deletions packages/websites-base/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/dist/
/coverage/
1 change: 1 addition & 0 deletions packages/websites-base/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"@flocon-trpg/prettier-config"
1 change: 1 addition & 0 deletions packages/websites-base/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# websites-base
14 changes: 14 additions & 0 deletions packages/websites-base/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import Config from '@flocon-trpg/eslint-config';

export default [...Config,
{
languageOptions: {
parserOptions: {
project: './tsconfig.json',
projectService: true,
// import.meta.dirname は ESM かつ Node.js >=20.11.0 / >= 21.2.0 でなければ使えない。
tsconfigRootDir: import.meta.dirname,
},
},
},
]
49 changes: 49 additions & 0 deletions packages/websites-base/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"name": "@flocon-trpg/websites-base",
"version": "0.1.0",
"private": true,
"license": "MIT",
"author": "kizahasi",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"files": [
"dist"
],
"scripts": {
"build": "yarn run build:self",
"build:rollup": "rollup --config",
"build:self": "rimraf ./dist && yarn build:rollup",
"lint": "eslint \"**/*.ts\" --cache",
"prettier": "yarn prettier:base --write --cache",
"prettier-check": "yarn prettier:base --check",
"prettier:base": "prettier \"**/*.{ts,tsx,js,json,yml,md,graphql}\""
},
"dependencies": {
"@flocon-trpg/core": "workspace:^",
"jotai": "^2.10.1"
},
"devDependencies": {
"@flocon-trpg/eslint-config": "workspace:^",
"@flocon-trpg/prettier-config": "workspace:^",
"@flocon-trpg/rollup-config": "workspace:^",
"@flocon-trpg/tsconfig": "workspace:^",
"@types/react": "18.3.12",
"antd": "5.21.5",
"eslint": "9.13.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.31.0",
"prettier": "3.3.3",
"react": "18.3.1",
"rimraf": "5.0.10",
"rollup": "4.24.0",
"typescript": "5.6.2",
"typescript-eslint": "8.11.0"
},
"peerDependencies": {
"antd": "^5.21.5",
"react": "^18.0.0"
},
"engines": {
"node": ">=18 <21"
}
}
4 changes: 4 additions & 0 deletions packages/websites-base/rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const { config } = require('@flocon-trpg/rollup-config');
const external = Object.keys(require('./package.json').dependencies ?? {});

module.exports = config({ external });
1 change: 1 addition & 0 deletions packages/websites-base/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { CreateEnv } from './internal/CreateEnv';
Loading

0 comments on commit a5161c3

Please sign in to comment.