features-cli 0.2.0 → 0.4.0
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/README.md +12 -10
- package/package.json +1 -1
- package/pre-install.js +2 -2
package/README.md
CHANGED
|
@@ -2,19 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
A CLI tool for discovering and managing features in a feature-based architecture project.
|
|
4
4
|
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
From the CLI directory:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
cargo build --release
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
5
|
+
## Getting Started
|
|
14
6
|
|
|
15
7
|
|
|
16
8
|
```bash
|
|
17
|
-
|
|
9
|
+
npx features-cli /path/to/features # list all the features in the directory
|
|
18
10
|
```
|
|
19
11
|
|
|
20
12
|
Commands and their descriptions are listed below:
|
|
@@ -29,3 +21,13 @@ Commands and their descriptions are listed below:
|
|
|
29
21
|
| `--serve` | Start an HTTP server to serve features and the web dashboard UI |
|
|
30
22
|
| `--serve --port 8080` | Start an HTTP server on specified port |
|
|
31
23
|
| `--build` | Build a static version of the web dashboard UI |
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## Contributing
|
|
28
|
+
|
|
29
|
+
From the CLI directory:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
cargo build --release
|
|
33
|
+
```
|
package/package.json
CHANGED
package/pre-install.js
CHANGED
|
@@ -29,8 +29,8 @@ if (fs.existsSync(cargoDir)) {
|
|
|
29
29
|
|
|
30
30
|
const features = process.env.npm_config_features ? `--features ${process.env.npm_config_features.replace(",", " ")}` : "";
|
|
31
31
|
|
|
32
|
-
console.log(`Installing and compiling features-cli 0.
|
|
33
|
-
exec(`cargo install features-cli --vers 0.
|
|
32
|
+
console.log(`Installing and compiling features-cli 0.4.0 ${features} ...`);
|
|
33
|
+
exec(`cargo install features-cli --vers 0.4.0 ${features}`, (error, stdout, stderr) => {
|
|
34
34
|
console.log(stdout);
|
|
35
35
|
if (error || stderr) {
|
|
36
36
|
console.log(error || stderr);
|