Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flocon-trpg/tools を統合する #630

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading