You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-1Lines changed: 17 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,25 @@ Spec Dependencies is [SourceJS](http://sourcejs.com) plugin for adding crosslink
6
6
7
7
Compatible with SourceJS v0.4+.
8
8
9
+
## Install
10
+
11
+
To install, run npm in `sourcejs/user` folder:
12
+
13
+
```
14
+
npm install sourcejs-spec-status --save
15
+
```
16
+
17
+
Then run Grunt update in SourceJS root:
18
+
19
+
```
20
+
grunt update
21
+
```
22
+
23
+
After install, entering spec pages you will se prediction box.
24
+
9
25
## How to use
10
26
11
-
Spec Dependencies automatically predicts all specs, that used in current spec ("most likely it uses" section on the picture above). If you also want to see next section to check which specs use current ("this spec used by"), you have to update info.json of the specs with "usedSpecs" property. Value of "usedSpecs" should be an array even for only element.
27
+
Spec Dependencies automatically predicts all specs, that used in current spec by comparing CSS classes names with existing Spec names. If you also want to see next section to check which specs use current ("this spec used by"), you have to update `info.json` of the specs with "usedSpecs" property. Value of "usedSpecs" should be an array even for only element.
12
28
13
29
```
14
30
// info.json of Example spec (/url/to/example/spec)
0 commit comments