Skip to content

Commit f74aabe

Browse files
committed
initial commit
1 parent e3de01b commit f74aabe

22 files changed

+25404
-2
lines changed

.editorconfig

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
################################################
2+
# ╔═╗╔╦╗╦╔╦╗╔═╗╦═╗┌─┐┌─┐┌┐┌┌─┐┬┌─┐
3+
# ║╣ ║║║ ║ ║ ║╠╦╝│ │ ││││├┤ ││ ┬
4+
# o╚═╝═╩╝╩ ╩ ╚═╝╩╚═└─┘└─┘┘└┘└ ┴└─┘
5+
#
6+
# > Formatting conventions for your Sails app.
7+
#
8+
# This file (`.editorconfig`) exists to help
9+
# maintain consistent formatting throughout the
10+
# files in your Sails app.
11+
#
12+
# For the sake of convention, the Sails team's
13+
# preferred settings are included here out of the
14+
# box. You can also change this file to fit your
15+
# team's preferences (for example, if all of the
16+
# developers on your team have a strong preference
17+
# for tabs over spaces),
18+
#
19+
# To review what each of these options mean, see:
20+
# http://editorconfig.org/
21+
#
22+
################################################
23+
root = true
24+
25+
[*]
26+
indent_style = space
27+
indent_size = 2
28+
end_of_line = lf
29+
charset = utf-8
30+
trim_trailing_whitespace = true
31+
insert_final_newline = true

.eslintrc

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"extends": ["adpyke-es6"],
3+
4+
"parser": "babel-eslint",
5+
"globals": {
6+
"require": true,
7+
"module": true
8+
},
9+
10+
// "plugins": ["prettier"],
11+
12+
"rules": {
13+
"no-empty-function": [
14+
"error",
15+
{
16+
"allow": ["arrowFunctions"]
17+
}
18+
],
19+
"indent": [
20+
"error",
21+
2,
22+
{
23+
"SwitchCase": 1,
24+
"MemberExpression": 1
25+
}
26+
],
27+
"space-before-function-paren": [
28+
"error",
29+
{
30+
"anonymous": "never",
31+
"named": "never",
32+
"asyncArrow": "never"
33+
}
34+
],
35+
"space-before-blocks": "off",
36+
"key-spacing": [
37+
"error",
38+
{
39+
"align": "colon"
40+
}
41+
],
42+
43+
"prefer-const": [
44+
"error",
45+
{
46+
"destructuring": "any",
47+
"ignoreReadBeforeAssign": false
48+
}
49+
],
50+
51+
// "prettier/prettier": ["error", { "singleQuote": true, "parser": "flow" }]
52+
}
53+
}

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.log
2+
.DS_Store
3+
.jest-*
4+
lib
5+
node_modules
6+
7+
public
8+
.idea

.prettierrc

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

.storybook/addons.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// import '@storybook/addon-storysource/register';
2+
import '@storybook/addon-viewport/register';
3+
4+
// register the notes addon as a tab
5+
import '@storybook/addon-notes/register';
6+
// or register the notes addon as a panel. Only one can be used!
7+
// import '@storybook/addon-notes/register-panel';

.storybook/config.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import {addDecorator, configure} from '@storybook/react';
2+
// import { withInfo } from '@storybook/addon-info';
3+
import { addParameters } from '@storybook/react';
4+
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport';
5+
6+
7+
addParameters({
8+
viewport: {
9+
viewports: INITIAL_VIEWPORTS,
10+
},
11+
});
12+
13+
const req = require.context('../packages', true, /.story.js$/);
14+
15+
function loadStories() {
16+
req.keys().forEach((filename) => req(filename));
17+
}
18+
19+
// addDecorator(withInfo);
20+
configure(loadStories, module);

.storybook/webpack1.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// module.exports = async ({ config }) => {
2+
// config.module.rules.push({
3+
// test: /\.js?$/,
4+
// loaders: [
5+
// {
6+
// loader: require.resolve('@storybook/source-loader'),
7+
// options: { parser: 'typescript' },
8+
// },
9+
// ],
10+
// enforce: 'pre',
11+
// });
12+
//
13+
// return config;
14+
// };

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
1-
# lists
2-
Popular list creation in react
1+
<p align="center">
2+
<img src="./logo.png2" alt="react animate popular ways" />
3+
</p>
4+
5+
<h1>Making animations full examples</h1>
6+
<h3>Web's fastest and most popular animation libraries for react</h3>
7+
8+
9+
10+
In this repo we will add popular ways to create animations, and gonna provide an example to every single usage.
11+
12+
Demo at : https://animations.sayjeyhi.now.sh/

babel.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
plugins: ['babel-plugin-styled-components'],
3+
presets: ['@babel/preset-env', '@babel/preset-react'],
4+
sourceType: 'unambiguous'
5+
};

jest.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
cacheDirectory: ".jest-cache",
3+
coverageDirectory: ".jest-coverage",
4+
coveragePathIgnorePatterns: ["<rootDir>/packages/(?:.+?)/lib/"],
5+
coverageReporters: ["html", "text"],
6+
coverageThreshold: {
7+
global: {
8+
branches: 100,
9+
functions: 100,
10+
lines: 100,
11+
statements: 100
12+
}
13+
},
14+
testPathIgnorePatterns: ["<rootDir>/packages/(?:.+?)/lib/"]
15+
};

lerna.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"packages": ["packages/*"],
3+
"npmClient": "yarn",
4+
"useWorkspaces": true,
5+
"version": "independent"
6+
}

logo.png

70.2 KB
Loading

package.json

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"name": "root",
3+
"private": true,
4+
"workspaces": [
5+
"packages/*"
6+
],
7+
"scripts": {
8+
"start": "lerna run start --stream --parallel",
9+
"dev": "start-storybook -p 5555",
10+
"bootstrap": "lerna bootstrap --use-workspaces",
11+
"bootstrap:seprated": "lerna exec npm install",
12+
"build": "build-storybook -c .storybook -o public",
13+
"build-lerna": "lerna exec --parallel -- babel --root-mode upward src -d lib --ignore **/*.story.js,**/*.spec.js",
14+
"coverage": "jest --coverage",
15+
"unit": "jest",
16+
"lint": "npm run lint:js && npm run lint:css",
17+
"lint:css": "stylelint packages/**/*.js",
18+
"lint:eslint": "eslint --ignore-path .gitignore packages",
19+
"lint:eslint:fix": "eslint --ignore-path .gitignore packages --fix",
20+
"lint:js": "npm run lint:eslint -- . ",
21+
"prettify": "prettier --write packages/**/*.js"
22+
},
23+
"devDependencies": {
24+
"@babel/cli": "^7.6.3",
25+
"@babel/core": "^7.6.3",
26+
"@babel/preset-env": "^7.6.3",
27+
"@babel/preset-react": "^7.6.3",
28+
"@storybook/addon-notes": "^5.2.3",
29+
"@storybook/addon-viewport": "^5.2.3",
30+
"@storybook/react": "^5.2.3",
31+
"babel-core": "7.0.0-bridge.0",
32+
"babel-eslint": "^10.0.3",
33+
"babel-jest": "^24.9.0",
34+
"babel-loader": "^8.0.6",
35+
"babel-plugin-styled-components": "^1.10.6",
36+
"eslint": "^6.5.1",
37+
"eslint-config-adpyke-es6": "^1.4.12",
38+
"eslint-plugin-import": "^2.18.2",
39+
"eslint-plugin-jsx-a11y": "^6.2.3",
40+
"eslint-plugin-node": "^10.0.0",
41+
"eslint-plugin-prettier": "^3.1.1",
42+
"eslint-plugin-promise": "^4.2.1",
43+
"eslint-plugin-react": "^7.16.0",
44+
"jest": "^24.9.0",
45+
"jest-haste-map": "^24.9.0",
46+
"jest-resolve": "^24.9.0",
47+
"jest-styled-components": "^6.3.3",
48+
"lerna": "^3.16.5",
49+
"prettier": "^1.18.2",
50+
"react": "^16.10.2",
51+
"react-dom": "^16.10.2",
52+
"react-test-renderer": "^16.10.2",
53+
"webpack": "^4.41.0"
54+
},
55+
"dependencies": {
56+
"react-router-dom": "^5.1.2",
57+
"styled-components": "^4.4.0"
58+
}
59+
}

packages/React-table/notes/Basic.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const Basic = require('./../src/Basic');
2+
3+
const Markdown = `
4+
# Source code
5+
6+
7+
~~~js
8+
${Basic}
9+
~~~
10+
`;
11+
12+
export default Markdown;

packages/React-table/package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "react-table",
3+
"version": "1.0.0",
4+
"main": "lib/index.js",
5+
"module": "src/index.js",
6+
"dependencies": {
7+
"namor": "^1.1.3",
8+
"react": "16.10.2",
9+
"react-dom": "16.10.2",
10+
"react-table": "^7.0.0-beta.12"
11+
},
12+
"peerDependencies": {
13+
"react": "^15.0.0 || ^16.0.0",
14+
"react-dom": "^15.0.0 || ^16.0.0"
15+
}
16+
}

0 commit comments

Comments
 (0)