@common-stack/components-pro 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License
2
+
3
+ Copyright (c) 2017 CDMBase LLC.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # React Package
2
+ React components and containers
3
+
4
+ What does it include:
5
+ ---
6
+ 1. exported react pure components
7
+ 2. exported react containers
8
+ 3. Typescript 2.0.0 => ES6
9
+ 4. unit testing with jest
10
+
11
+ Purpose:
12
+ ---
13
+ This package can be installable in front-end webserver
14
+
15
+ Useful commands:
16
+ ---
17
+ npm run build - build the library files
18
+ npm run test - run tests once
19
+ npm run test:watch - run tests in watchmode (Useful for development)
20
+
21
+ Files explained:
22
+ ---
23
+ src - directory is used for typescript code that is part of the project
24
+ index.ts - Index file of the package. Consists of exported components and containers
25
+ index.spec.ts - Tests file for main
26
+ components - All pure components which don't depend on backend data or external state such as redux
27
+ index.ts - References all the exported components
28
+ containers - Components with data to render. Tightly coupled with redux.
29
+ index.ts - References all the exported containers
30
+ package.json - file is used to describe the library and packages that are required added under peer-dependencies section
31
+ tsconfig.json - configuration file for the library compilation
32
+ webpack.config.js - configuration file of the compilation automation process for the library
33
+
34
+
35
+ Tutorials:
36
+ ---
37
+ [react-jest-enzymes test](https://www.youtube.com/watch?v=bMmntkVM4wQ)
38
+
39
+ [testing react with enzyme tutorial](http://codeheaven.io/testing-react-components-with-enzyme/)
40
+
41
+ [react-redux-typescript-guide](https://github.com/piotrwitek/react-redux-typescript-guide)
42
+
43
+ Performance:
44
+ ---
45
+ [Redux FAQ: Connecting multiple components](http://redux.js.org/docs/FAQ.html#react-multiple-components)
46
+
47
+ [React/Redux Links: Performance articles](https://github.com/markerikson/react-redux-links/blob/master/react-performance.md)
48
+
49
+ [React/Redux: Component re-rendering too often?](http://redux.js.org/docs/faq/ReactRedux.html#react-rendering-too-often)
50
+
package/esm/index.js ADDED
@@ -0,0 +1,2 @@
1
+ console.log('This is sample');
2
+ //# sourceMappingURL=index.js.map
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "@common-stack/components-pro",
3
+ "version": "0.1.21",
4
+ "description": "browser plugin for git",
5
+ "homepage": "https://github.com/cdmbase/fullstack-pro#readme",
6
+ "bugs": {
7
+ "url": "https://github.com/cdmbase/fullstack-pro/issues"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/cdmbase/fullstack-pro.git"
12
+ },
13
+ "license": "MIT",
14
+ "author": "CDMBase LLC",
15
+ "main": "esm/index.js",
16
+ "typings": "esm/index.d.ts",
17
+ "scripts": {
18
+ "build": "npm run build:clean && npm run build:lib",
19
+ "build:clean": "rimraf esm",
20
+ "build:lib": "tsc",
21
+ "build:lib:watch": "npm run build:lib -- --watch",
22
+ "jest": "./node_modules/.bin/jest",
23
+ "prepublish": "npm run build",
24
+ "test": "jest",
25
+ "test:debug": "npm test -- --runInBand",
26
+ "test:watch": "npm test -- --watch",
27
+ "watch": "npm run build:lib:watch"
28
+ },
29
+ "dependencies": {
30
+ "@wordpress/compose": "^5.2.1",
31
+ "@wordpress/hooks": "^2.10.0",
32
+ "@wordpress/is-shallow-equal": "^4.4.1",
33
+ "@wordpress/warning": "^2.4.1",
34
+ "history-with-query": "^4.10.4",
35
+ "sort-keys": "^4.1.0"
36
+ },
37
+ "devDependencies": {
38
+ "@umijs/route-utils": "^1.0.34"
39
+ },
40
+ "peerDependencies": {
41
+ "@apollo/client": ">=3.0.0",
42
+ "react": ">=16.8.6",
43
+ "react-dom": ">=16.8.6",
44
+ "react-router": ">=5.0.0",
45
+ "redux": ">=4.0.1"
46
+ },
47
+ "publishConfig": {
48
+ "access": "public"
49
+ },
50
+ "gitHead": "c3e769cce851a170b380a58a894ed6f312fed8a0",
51
+ "typescript": {
52
+ "definition": "lib/index.d.ts"
53
+ }
54
+ }