Skip to content

Commit 58025d9

Browse files
committed
Update installation steps
1 parent 30eef3b commit 58025d9

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

README.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
Query a set of HTML elements and perform bulk manipulations with it.
44

5+
### Installation and Usage
6+
Run
7+
```sh
8+
npm install bulker
9+
```
10+
and then use in code:
11+
```javascript
12+
import bulker from 'bulker';
13+
// bulker() is ready
14+
```
15+
516
### Example
617
Pass any number of arguments to `bulker`. Any combination of `NodeList`, `HTMLElement` or a selector string is acceptable (including deeply nested arrays), other entities will be ignored.
718
```html
@@ -38,19 +49,6 @@ bulker('span').set('textContent', 'xyz').get('textContent');
3849
// the sample above sets text of <span>s to 'xyz'and returns ['xyz', 'xyz', 'xyz'] as result
3950
```
4051

41-
### Installation and usage
42-
bulker currently can be installed via [jspm](http://jspm.io/) only.
43-
44-
Run
45-
```sh
46-
jspm install bulker=github:evenfrost/bulker
47-
```
48-
and then use in code:
49-
```javascript
50-
import bulker from 'bulker';
51-
// bulker() is ready
52-
```
53-
5452
### Methods
5553
All methods are run on the html sample from [Example](#example) section.
5654

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
},
1212
"scripts": {
1313
"clean": "rimraf build",
14-
"dev": "npm run clean && babel source --out-dir build -s true && uglifyjs --in-source-map build/bulker.js.map --screw-ie8 -o build/bulker.js --source-map build/bulker.js.map build/bulker.js",
14+
"dev": "babel source --out-dir build -s true && uglifyjs --in-source-map build/bulker.js.map --screw-ie8 -o build/bulker.js --source-map build/bulker.js.map build/bulker.js",
1515
"babel": "babel source --out-dir build",
1616
"uglify": "uglifyjs -o build/bulker.js build/bulker.js --screw-ie8",
17+
"watch": "watch 'npm run dev' source",
1718
"build": "npm run clean && npm run babel && npm run uglify",
1819
"prepublish": "npm run build"
1920
},
@@ -23,6 +24,7 @@
2324
"babel-preset-es2015": "^6.6.0",
2425
"babel-preset-stage-1": "^6.5.0",
2526
"rimraf": "^2.5.2",
26-
"uglify-js": "^2.6.2"
27+
"uglify-js": "^2.6.2",
28+
"watch": "^0.17.1"
2729
}
2830
}

0 commit comments

Comments
 (0)