@@ -8,37 +8,34 @@ The [Topcoder](https://www.topcoder.com) collection of generic ReactJS
8
8
configurations, components and utilities to be shared between all internal and
9
9
external ReactJS projects developed by the Topcoder community.
10
10
11
- ### Content
11
+ ## Content
12
12
- [ Installation] ( #installation )
13
- - [ Configurations] ( #configurations )
14
- - [ Components] ( #components )
15
- - [ Utilities] ( #utilities )
13
+ - [ Reference] ( #reference )
14
+ - [ Configurations] ( #configurations )
15
+ - [ Components] ( #components )
16
+ - [ NodeJS Scripts] ( #nodejs-scripts )
17
+ - [ Utilities] ( #utilities )
16
18
- [ Development] ( #development )
17
19
- [ License] ( #license )
18
20
19
- ### < a name = " installation " > Installation</ a >
20
- Install this package as
21
+ ## Installation
22
+ Install the package as
21
23
``` bash
22
24
$ npm install --save topcoder-react-utils
25
+ $ ./node_modules/.bin/topcoder-lib-setup
23
26
```
24
- Import the global stylesheet into the root ReactJS component of your app:
27
+ Then import the global stylesheet into the root ReactJS component of your app:
25
28
``` js
26
29
import ' topcoder-react-utils/dist/style.css' ;
27
30
```
28
31
29
- You are done if you only use components and utilities provided by this
30
- package. If you are to use configurations to build or test your code, you
31
- also need to install all development dependencies into your own package:
32
- ```
33
- $ ./node_modules/.bin/adopt-dev-deps topcoder-react-utils
32
+ To upgrade this library to the latest version just execute again
33
+ ``` bash
34
+ $ ./node_modules/.bin/topcoder-lib-setup
34
35
```
35
36
36
- Installed dev dependencies will be stored into your ` package.json ` , thus
37
- further invokations of ` npm install ` will automatically install them. You
38
- only need to call ` adopt-dev-deps ` again if you update
39
- ` topcoder-react-utils ` to a newer version.
40
-
41
- ### <a name =" configurations " >Configurations</a >
37
+ ## Reference
38
+ ### Configurations
42
39
- [ ** Babel Configurations** ] ( docs/babel-config.md ) &mdash ; Standard
43
40
configurations for [ Babel] ( https://babeljs.io/ ) ;
44
41
- [ ** ESLint Configurations** ] ( docs/eslint-config.md ) &mdash ; Standard
@@ -50,7 +47,7 @@ only need to call `adopt-dev-deps` again if you update
50
47
- [ ** Webpack Configurations** ] ( docs/webpack-config.md ) &mdash ; Standard
51
48
configurations for [ Webpack] ( https://webpack.js.org/ ) .
52
49
53
- ### < a name = " components " > Components</ a >
50
+ ### Components
54
51
- [ ** ` Avatar ` ** ] ( docs/avatar.md ) &mdash ; The standard component for user avatars;
55
52
- [ ** ` Button ` ** ] ( docs/button.md ) &mdash ; Handles buttons and button-like links
56
53
(components that look like regular buttons, but behave as links) in the same
@@ -62,7 +59,11 @@ only need to call `adopt-dev-deps` again if you update
62
59
- [ ** ` ScalableRect ` ** ] ( docs/scalable-rect.md ) &mdash ; Container that keeps
63
60
the specified aspect ratio regardless the width you set.
64
61
65
- ### <a name =" utilities " >Utilities</a >
62
+ ### NodeJS Scripts
63
+ - [ ** topcoder-lib-setup** ] ( docs/topcoder-lib-setup-script.md ) &mdash ; Helps to
64
+ install and upgrade ** topcoder-react-utils** and other similar libraries.
65
+
66
+ ### Utilities
66
67
- [ ** Client** ] ( docs/client.md ) &mdash ; Client-side initialization code.
67
68
- [ ** Config** ] ( docs/config.md ) &mdash ; Isomorphic app config;
68
69
- [ ** Global Styles** ] ( docs/global-styles.md ) &mdash ; Global styles necessary for
@@ -81,7 +82,7 @@ only need to call `adopt-dev-deps` again if you update
81
82
- [ ** Webpack** ] ( docs/webpack-utils.md ) &mdash ; Various utils related to the
82
83
Webpack bundling process.
83
84
84
- ### < a name = " development " > Development</ a >
85
+ ## Development
85
86
For convenient development you can link this package into your host package:
86
87
1 . Clone [ ` topcoder-react-utils ` ] ( https://github.com/topcoder-platform/topcoder-react-utils )
87
88
to your machine, and checkout the branch you are going to work with;
@@ -118,5 +119,5 @@ any breaking changes into the codebase! Breaking changes should be done via
118
119
` minor ` or ` major ` update, and they should be documented in
119
120
the [ CHANGELOG] ( CHANGELOG.md ) .
120
121
121
- ### < a name = " license " > License</ a >
122
+ ## License
122
123
Topcoder React Utils is [ MIT Licensed] ( LICENSE.md )
0 commit comments