Skip to content
Permalink
Browse files

πŸ•Ά Project setup, few initial hooks

  • Loading branch information
antonioru committed Dec 18, 2019
1 parent d582e57 commit 017ecf4db2628a3c7808cc3dd1885b6fd4700a28
Showing with 16,833 additions and 42 deletions.
  1. +6 βˆ’0 .babelrc
  2. +7 βˆ’0 .esdoc.json
  3. +4 βˆ’0 .eslintignore
  4. +32 βˆ’0 .eslintrc
  5. +165 βˆ’40 .gitignore
  6. +26 βˆ’0 CHANGELOG.md
  7. +101 βˆ’0 CONTRIBUTING.md
  8. +37 βˆ’2 README.md
  9. +48 βˆ’0 dist/index.js
  10. +1 βˆ’0 dist/index.js.map
  11. +22 βˆ’0 dist/useCallbackRef.js
  12. +1 βˆ’0 dist/useCallbackRef.js.map
  13. +25 βˆ’0 dist/useLifecycle.js
  14. +1 βˆ’0 dist/useLifecycle.js.map
  15. +38 βˆ’0 dist/useOnMount.js
  16. +1 βˆ’0 dist/useOnMount.js.map
  17. +40 βˆ’0 dist/useWillUnmount.js
  18. +1 βˆ’0 dist/useWillUnmount.js.map
  19. +43 βˆ’0 dist/useWindowResize.js
  20. +1 βˆ’0 dist/useWindowResize.js.map
  21. +23 βˆ’0 docs/useCallbackRef.md
  22. +20 βˆ’0 docs/useLifecycle.md
  23. +18 βˆ’0 docs/useOnMount.md
  24. +18 βˆ’0 docs/useWillUnmount.md
  25. +19 βˆ’0 docs/useWindowResize.md
  26. BIN example.png
  27. BIN logo.png
  28. +15,476 βˆ’0 package-lock.json
  29. +76 βˆ’0 package.json
  30. +17 βˆ’0 playground/styleguidist.config.js
  31. +20 βˆ’0 playground/useCallbackRef.md
  32. +18 βˆ’0 playground/useLifecycle.md
  33. +17 βˆ’0 playground/useOnMount.md
  34. +17 βˆ’0 playground/useWillUnmount.md
  35. +17 βˆ’0 playground/useWindowResize.md
  36. +31 βˆ’0 playground/webpack.config.js
  37. +49 βˆ’0 scripts/build.js
  38. +27 βˆ’0 scripts/generateDocs.js
  39. +5 βˆ’0 src/index.js
  40. +35 βˆ’0 src/useCallbackRef.js
  41. +52 βˆ’0 src/useCallbackRef.spec.js
  42. +28 βˆ’0 src/useLifecycle.js
  43. +23 βˆ’0 src/useLifecycle.spec.js
  44. +31 βˆ’0 src/useOnMount.js
  45. +35 βˆ’0 src/useOnMount.spec.js
  46. +31 βˆ’0 src/useWillUnmount.js
  47. +37 βˆ’0 src/useWillUnmount.spec.js
  48. +35 βˆ’0 src/useWindowResize.js
  49. +40 βˆ’0 src/useWindowResize.spec.js
  50. +7 βˆ’0 test/mocha.opts
  51. +11 βˆ’0 test/setup.js
@@ -0,0 +1,6 @@
{
"presets": [
"@babel/preset-react",
"@babel/preset-env"
]
}
@@ -0,0 +1,7 @@
{
"source": "./src",
"destination": "./docs",
"plugins": [
{"name": "esdoc-standard-plugin"}
]
}
@@ -0,0 +1,4 @@
/dist
/docs
/test
/playground
@@ -0,0 +1,32 @@
{
"extends": "airbnb",
"parser": "babel-eslint",
"plugins": ["chai-expect"],
"env": {
"browser": true,
"mocha": true
},
"rules": {
"max-len": ["error", { "code": 120 }],
"object-curly-newline": "off",
"react/jsx-filename-extension": [1, { "extensions": [ ".js", ".jsx" ] } ]
},
"overrides": [
{
"files": [
"*.test.js",
"*.spec.js",
"*.test.jsx",
"*.spec.jsx"
],
"globals": {
"expect": "readonly",
"should": "readonly",
"sinon": "readonly"
},
"rules": {
"no-unused-expressions": "off"
}
}
]
}
@@ -1,13 +1,10 @@
################ NODE.JS
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
@@ -20,12 +17,11 @@ lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
@@ -44,21 +40,12 @@ jspm_packages/
# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

@@ -70,35 +57,173 @@ typings/

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# Next.js build output
# next.js build output
.next

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port
.serverless

################ VISUAL STUDIO CODE
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

################ LINUX
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

################ MAC OS
# General
.DS_Store
.AppleDouble
.LSOverride

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

################ WINDOWS
# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

################ JETBRAINS
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/dictionaries
.idea/**/shelf

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# CMake
cmake-build-debug/
cmake-build-release/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests


################ SUBLIME TEXT
# Cache files for Sublime Text
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache

# Workspace files are user-specific
*.sublime-workspace

# Project files should be checked into the repository, unless a significant
# proportion of contributors will probably not be using Sublime Text
# *.sublime-project

# SFTP configuration file
sftp-config.json

# Package control specific files
Package Control.last-run
Package Control.ca-list
Package Control.ca-bundle
Package Control.system-ca-bundle
Package Control.cache/
Package Control.ca-certs/
Package Control.merged-ca-bundle
Package Control.user-ca-bundle
oscrypto-ca-bundle.crt
bh_unicode_properties.cache

# Sublime-github package stores a github token in this file
# https://packagecontrol.io/packages/sublime-github
GitHub.sublime-settings

.idea/
@@ -0,0 +1,26 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.1.0] - 2019-12-18

### Added

- Create package.json
- Setup .gitignore
- Add a CHANGELOG.md
- Add a Readme.md and a Contributing.md
- Add Styleguidist
- Add ESLint
- Add Stylelint
- Tests
- Build System
- useCallbackRef hook & tests
- useOnMount hook & tests
- useWillUnmount hook & tests
- useLifecycle hook & tests
- useWindowResize hook & tests

0 comments on commit 017ecf4

Please sign in to comment.
You can’t perform that action at this time.