Skip to content

Commit 2c1c006

Browse files
author
Tom Softreck
committed
Release version 0.3.1
### Added - Changes in .version - Changes in AUTHORS.txt - Changes in CLASSIFIERS.txt - Changes in SCRIPTS.txt - Changes in increment_init.py - Changes in increment_project.py - Changes in increment_setup.py - Changes in increment_version.py - Changes in upgrade.sh - Changes in version.sh
1 parent ed3e605 commit 2c1c006

8 files changed

Lines changed: 514 additions & 337 deletions

File tree

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@
33
Przykład użycia:
44

55
```bash
6-
node src/index.js MyComponent
6+
npm install
7+
node src/index.js MyComponent.js
8+
9+
node src/analyze.js MyComponent.js --fix
10+
11+
chmod +x reactstream.sh
12+
chmod +x reactstream-analyze.sh
13+
714

815
# Analiza pojedynczego komponentu
916
./reactstream-analyze MyComponent.js --debug
@@ -18,6 +25,7 @@ node src/index.js MyComponent
1825
./reactstream-analyze MyComponent.js --debug --verbose
1926
```
2027

28+
![img.png](img.png)
2129

2230
Główne funkcje narzędzia:
2331

bin/reactstream.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env node
2+
// bin/reactstream.js
3+
24
'use strict';
35

46
const fs = require('fs');
@@ -137,4 +139,4 @@ process.on('SIGINT', () => {
137139
console.log(chalk.blue('\nCleaning up...'));
138140
fs.rmSync(tempDir, { recursive: true, force: true });
139141
process.exit();
140-
});
142+
});

img.png

140 KB
Loading

reactstream-analyze.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
# reactstream-analyze
3+
# Usage: ./reactstream-analyze MyComponent.js [options]
4+
5+
# Get the directory where the script is located
6+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
7+
8+
# Run the node script with all arguments passed to this script
9+
node "$DIR/reactstream/src/analyze.js" "$@"

reactstream.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/bin/bash
2-
# reactstream.sh
3-
# ./reactstream.sh MyComponent.js --port=3000
2+
# reactstream-analyze
3+
# Usage: ./reactstream MyComponent.js [options]
4+
45
# Get the directory where the script is located
56
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
67

78
# Run the node script with all arguments passed to this script
8-
node "$DIR/reactstream/src/index.js" "$@"
9+
node "$DIR/reactstream/src/index.js" "$@"

0 commit comments

Comments
 (0)