Skip to content

Commit

Permalink
chore: init
Browse files Browse the repository at this point in the history
  • Loading branch information
fupengl committed Jul 16, 2021
1 parent dc2fd83 commit 15d952f
Show file tree
Hide file tree
Showing 11 changed files with 8,020 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[Makefile]
indent_style = tab

[*.{md,markdown}]
trim_trailing_whitespace = false
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: [require.resolve('@planjs/fabric/dist/eslint')],
};
8 changes: 8 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
* text eol=lf
*.scss linguist-vendored
*.png binary
*.jpeg binary
*.jpg binary
*.woff binary
*.otf binary
*.webp binary
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.idea/
*-error.log
node_modules/
/coverage/
/es/
/lib/
/typings
3 changes: 3 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const { prettier } = require('@planjs/fabric');

module.exports = prettier;
6 changes: 6 additions & 0 deletions .stanrc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
bundler: 'babel',
esm: true,
cjs: true,
runtimeHelpers: true,
};
51 changes: 51 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"name": "@planjs/react-utils",
"version": "1.0.0",
"description": "",
"sideEffects": false,
"main": "lib/index.js",
"module": "es/index.js",
"typings": "typings/index.d.ts",
"files": [
"lib",
"es",
"typings"
],
"scripts": {
"start": "stan-builder -w",
"prepare": "stan-builder",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/planjs/react-utils.git"
},
"keywords": [],
"author": {
"name": "fupengl",
"email": "[email protected]",
"url": "https://github.com/fupengl"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/planjs/react-utils/issues"
},
"homepage": "https://github.com/planjs/react-utils#readme",
"publishConfig": {
"access": "public"
},
"dependencies": {
"@babel/runtime": "^7.12.5",
"@planjs/utils": "^1.8.4",
"resize-observer-polyfill": "^1.5.1"
},
"devDependencies": {
"@planjs/fabric": "^0.0.76",
"typescript": "4.1.5",
"stan-builder": "^0.9.13"
},
"peerDependencies": {
"react": ">16.8.0",
"react-dom": ">16.8.0"
}
}
Empty file added src/hooks/index.ts
Empty file.
Empty file added src/index.ts
Empty file.
34 changes: 34 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"compilerOptions": {
"declarationMap": true,
"target": "ES2018",
"module": "ESNext",
"strict": true,
"declaration": true,
"preserveConstEnums": true,
"esModuleInterop": true,
"skipLibCheck": true,
"noImplicitAny": true,
"composite": true,
"resolveJsonModule": true,
"downlevelIteration": true,
"preserveWatchOutput": true,
"removeComments": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"strictNullChecks": true,
"forceConsistentCasingInFileNames": true,
"allowSyntheticDefaultImports": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"noEmitOnError": false,
"lib": ["ESNext", "DOM"],
"rootDir": "src",
"outDir": "lib",
"isolatedModules": false,
"declarationDir": "typings",
"jsx": "preserve"
},
"include": ["./src/"]
}
7,893 changes: 7,893 additions & 0 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 15d952f

Please sign in to comment.