react-fs-router 1.0.12 → 1.0.13

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.
Files changed (2) hide show
  1. package/README.md +10 -10
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -15,16 +15,16 @@ npm install react-fs-router
15
15
 
16
16
  ## Usage
17
17
 
18
- The position of a file in the folder structure defines it's path. Files named index are treated as the root and default file in each folder.
18
+ The position of a file in the folder structure defines its path. Files named index are treated as the root file in each folder.
19
19
  You can define a dynamic route by placing the name of the file in brackets. ie: [id].js ==> :id
20
20
 
21
- | Arguments | Result |
22
- | -------------------------- | ------------------------------------------------------------------------------------------------------------- |
23
- | -i --input <directory> | Path to watch for changes. Required. |
24
- | -o --output <output> | Optional argument that takes a path to place output files in. Defaults to the input directory. |
25
- | -ext --extention <extention> | Optional argument to change the file extension of the output files. Defaults to .js . |
26
- | -p --pageProperties [type] | Optional boolean argument to disable generating page_properties file. Defaults to false. |
27
- | -b --build [type] | Optional boolean argument that tells the program to run once. Defaults to false. Intended for build commands. |
21
+ | Arguments | Result |
22
+ |-------------------------------| ------------------------------------------------------------------------------------------------------------- |
23
+ | -i --input <directory> | Path to watch for changes. Required. |
24
+ | -o --output <output> | Optional argument that takes a path to place output files in. Defaults to the input directory. |
25
+ | -ext --extention <extention> | Optional argument to change the file extension of the output files. Defaults to .js . |
26
+ | -p --pageProperties [type] | Optional boolean argument to disable generating page_properties file. Defaults to false. |
27
+ | -b --build [type] | Optional boolean argument that tells the program to run once. Defaults to false. Intended for build commands. |
28
28
 
29
29
  ```JSON
30
30
  "scripts": {
@@ -92,7 +92,7 @@ function App() {
92
92
  }
93
93
  return renders;
94
94
  }
95
- return <Switch>{setPages(renderConponents(Pages))}</Switch>;
95
+ return <Switch>{renderConponents(Pages)}</Switch>;
96
96
  }
97
97
  ```
98
98
 
@@ -106,7 +106,7 @@ Place this component inside BrowserRouter
106
106
 
107
107
  ## Using with Ant Pro Layout
108
108
 
109
- The routes array generated by this library can be easily used with Ant Designs pro layout component.
109
+ The properties file generated by this library can be easily used with Ant Designs pro layout component.
110
110
  The following is an example using an hoc:
111
111
 
112
112
  ```javascript xml
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-fs-router",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "File-system based routing for React.",
5
5
  "main": "./index.js",
6
6
  "git repository": "https://github.com/Mehran9675/react-filesystem-routing",