Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5192b70

Browse files
committed
chore(setup): setup project
1 parentf0b5d5f commit5192b70

File tree

12 files changed

+5754
-1
lines changed

12 files changed

+5754
-1
lines changed

‎.editorconfig‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
# install EditorConfig for VS Code extension
3+
# top-most EditorConfig file
4+
root =true
5+
6+
[*]
7+
charset =utf-8
8+
end_of_line =lf
9+
indent_size =2
10+
indent_style =space
11+
insert_final_newline =true
12+
max_line_length =80
13+
trim_trailing_whitespace =true
14+
15+
[*.md]
16+
max_line_length =0
17+
trim_trailing_whitespace =false

‎.eslintignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/node_modules

‎.eslintrc‎

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es6": true,
5+
"node": true,
6+
"jest": true
7+
},
8+
"extends": [
9+
"airbnb",
10+
"prettier",
11+
"eslint:recommended",
12+
"plugin:@typescript-eslint/eslint-recommended",
13+
"plugin:@typescript-eslint/recommended"
14+
],
15+
"globals": {
16+
"Atomics": "readonly",
17+
"SharedArrayBuffer": "readonly"
18+
},
19+
"parser": "@typescript-eslint/parser",
20+
"parserOptions": {
21+
"ecmaVersion": 2019,
22+
"sourceType": "module"
23+
},
24+
"plugins": [
25+
"prettier",
26+
"@typescript-eslint"
27+
],
28+
"rules": {
29+
"no-useless-constructor": 0,
30+
"class-methods-use-this": 0,
31+
"no-underscore-dangle": 0,
32+
"@typescript-eslint/no-non-null-assertion": 0,
33+
"@typescript-eslint/interface-name-prefix": 0,
34+
"@typescript-eslint/explicit-function-return-type": 0,
35+
"max-classes-per-file": 0,
36+
"no-await-in-loop": "off",
37+
"no-restricted-syntax": "off",
38+
"import/no-extraneous-dependencies": [
39+
"error",
40+
{
41+
"devDependencies": true
42+
}
43+
],
44+
"import/prefer-default-export": "off",
45+
"prettier/prettier": [
46+
"error"
47+
],
48+
"import/extensions": [
49+
"error",
50+
"ignorePackages",
51+
{
52+
"js": "never",
53+
"ts": "never"
54+
}
55+
]
56+
},
57+
"settings": {
58+
"import/resolver": {
59+
"node": {
60+
"extensions": [
61+
".js",
62+
".ts"
63+
]
64+
}
65+
}
66+
}
67+
}

‎.npmignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
example

‎.prettierrc‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "es5"
4+
}

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#jotai-mutative
2-
Jotai integration library forMutative
2+
A Mutative extension forJotai

‎global.d.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declarevar__DEV__:boolean

‎index.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export*from'./src';

‎package.json‎

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
{
2+
"name":"jotai-mutative",
3+
"version":"1.0.0",
4+
"description":"A Mutative extension for Jotai",
5+
"main":"dist/index.cjs.js",
6+
"unpkg":"dist/index.umd.js",
7+
"types":"dist/index.d.ts",
8+
"umd:main":"dist/index.umd.js",
9+
"module":"dist/index.esm.js",
10+
"jsnext:main":"dist/index.esm.js",
11+
"react-native":"dist/index.esm.js",
12+
"typings":"dist/index.d.ts",
13+
"source":"src/index.ts",
14+
"sideEffects":false,
15+
"files": [
16+
"dist"
17+
],
18+
"publishConfig": {
19+
"access":"public"
20+
},
21+
"scripts": {
22+
"test":"jest",
23+
"test:coverage":"jest --coverage && coveralls < coverage/lcov.info",
24+
"clean":"rimraf dist",
25+
"build":"yarn clean && tsc --skipLibCheck && yarn build:prod",
26+
"build:prod":"NODE_ENV=production rollup --config --bundleConfigAsCjs",
27+
"commit":"yarn git-cz"
28+
},
29+
"repository": {
30+
"type":"git",
31+
"url":"git+https://github.com/mutativejs/jotai-mutative.git"
32+
},
33+
"author":"unadlib",
34+
"license":"MIT",
35+
"bugs": {
36+
"url":"https://github.com/mutativejs/jotai-mutative/issues"
37+
},
38+
"homepage":"https://github.com/mutativejs/jotai-mutative#readme",
39+
"keywords": [
40+
"mutative",
41+
"immutable",
42+
"jotai",
43+
"react",
44+
"state"
45+
],
46+
"devDependencies": {
47+
"@rollup/plugin-commonjs":"^24.0.1",
48+
"@rollup/plugin-node-resolve":"^15.0.1",
49+
"@rollup/plugin-replace":"^5.0.2",
50+
"@testing-library/react":"^14.2.1",
51+
"@types/jest":"^29.5.0",
52+
"@types/node":"^18.15.5",
53+
"@types/react":"^18.2.66",
54+
"@typescript-eslint/eslint-plugin":"^5.56.0",
55+
"@typescript-eslint/parser":"^5.56.0",
56+
"commitizen":"^4.3.0",
57+
"coveralls":"^3.1.1",
58+
"eslint":"^8.36.0",
59+
"eslint-config-airbnb":"^19.0.4",
60+
"eslint-config-prettier":"^8.8.0",
61+
"eslint-plugin-import":"^2.27.5",
62+
"eslint-plugin-prettier":"^4.2.1",
63+
"jest":"^29.5.0",
64+
"jest-environment-jsdom":"^29.5.0",
65+
"jotai":"^2.9.3",
66+
"mutative":"^1.0.8",
67+
"prettier":"^2.8.6",
68+
"react":"^18.2.0",
69+
"react-dom":"^18.2.0",
70+
"rimraf":"^4.4.0",
71+
"rollup":"^3.20.0",
72+
"rollup-plugin-terser":"^7.0.0",
73+
"ts-jest":"^29.1.0",
74+
"ts-node":"^10.9.1",
75+
"tslib":"^2.5.0",
76+
"typedoc":"^0.23.28",
77+
"typedoc-plugin-markdown":"^3.14.0",
78+
"typescript":"^5.0.2",
79+
"yargs":"^17.7.1"
80+
},
81+
"config": {
82+
"commitizen": {
83+
"path":"cz-conventional-changelog"
84+
}
85+
},
86+
"jest": {
87+
"preset":"ts-jest",
88+
"testEnvironment":"jsdom",
89+
"globals": {
90+
"__DEV__":false
91+
}
92+
},
93+
"peerDependencies": {
94+
"@types/react":"^18.0 || ^17.0",
95+
"jotai":"^2.0",
96+
"mutative":"^1.0.8",
97+
"react":"^18.0 || ^17.0"
98+
}
99+
}

‎rollup.config.ts‎

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
importresolvefrom'@rollup/plugin-node-resolve';
2+
importcommonjsfrom'@rollup/plugin-commonjs';
3+
importreplacefrom'@rollup/plugin-replace';
4+
import{terser}from'rollup-plugin-terser';
5+
importpkgfrom'./package.json';
6+
7+
constinput='./dist/index.js';
8+
9+
exportdefault{
10+
input,
11+
output:[
12+
{
13+
format:'cjs',
14+
exports:'auto',
15+
file:'dist/index.cjs.js',
16+
sourcemap:true,
17+
},
18+
{
19+
format:'es',
20+
file:'dist/index.esm.js',
21+
sourcemap:true,
22+
},
23+
{
24+
format:'umd',
25+
name:pkg.name
26+
.split('-')
27+
.map(([s, ...rest])=>[s.toUpperCase(), ...rest].join(''))
28+
.join(''),
29+
file:pkg.unpkg,
30+
sourcemap:true,
31+
globals:{
32+
mutative:'Mutative',
33+
jotai:'Jotai',
34+
react:'React',
35+
},
36+
exports:'named',
37+
},
38+
],
39+
plugins:[
40+
resolve(),
41+
commonjs(),
42+
replace({
43+
__DEV__:'false',
44+
preventAssignment:true,
45+
}),
46+
terser(),
47+
],
48+
external:['mutative','jotai','react'],
49+
};

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp