Skip to content

Commit ab53179

Browse files
authored
Merge pull request #2 from codepen/kpdecker-master
Update to latest JSDiff
2 parents 3b33b02 + 3486fd7 commit ab53179

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+6954
-6448
lines changed

.npmignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
.eslintrc
33
.gitignore
44
.npmignore
5-
.travis.yml
65
.vscode
76
components
87
coverage
@@ -13,7 +12,6 @@ index.html
1312
karma.conf.js
1413
rollup.config.js
1514
src
16-
style.css
1715
tasks
1816
test
1917
yarn-error.log

.travis.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,26 @@ Generally we like to see pull requests that
1515
## Building
1616

1717
```
18-
npm install
19-
npm test
18+
yarn
19+
yarn test
2020
```
2121

22-
The `npm test -- dev` implements watching for tests within Node and `karma start` may be used for manual testing in browsers.
22+
Running `yarn test -- dev` will watch for tests within Node and `karma start` may be used for manual testing in browsers.
2323

2424
If you notice any problems, please report them to the GitHub issue tracker at
2525
[http://github.com/kpdecker/jsdiff/issues](http://github.com/kpdecker/jsdiff/issues).
2626

2727
## Releasing
2828

29-
JsDiff utilizes the [release yeoman generator][generator-release] to perform most release tasks.
30-
31-
A full release may be completed with the following:
29+
A full release may be completed by first updating the `"version"` property in package.json, then running the following:
3230

3331
```
34-
yo release
35-
npm publish
32+
yarn clean
33+
yarn grunt release
34+
yarn publish
3635
```
3736

38-
[generator-release]: https://github.com/walmartlabs/generator-release
39-
[pull-request]: https://github.com/kpdecker/jsdiff/pull/new/master
37+
After releasing, remember to:
38+
* commit the `package.json` change and push it to GitHub
39+
* create a new version tag on GitHub
40+
* update `diff.js` on the `gh-pages` branch to the latest built version from the `dist/` folder.

Gruntfile.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ module.exports = function(grunt) {
7373
unit: {
7474
singleRun: true
7575
},
76-
sauce: {
77-
singleRun: true,
78-
browsers: ['sl_chrome', 'sl_firefox', 'sl_ie_11']
79-
}
8076
},
8177

8278
uglify: {
@@ -143,13 +139,6 @@ module.exports = function(grunt) {
143139
grunt.loadNpmTasks('grunt-mocha-istanbul');
144140
grunt.loadNpmTasks('grunt-exec');
145141

146-
grunt.task.loadTasks('tasks');
147-
148-
grunt.registerTask('travis',
149-
!process.env.KARMA && process.env.SAUCE_USERNAME
150-
? ['clean', 'build', 'karma:unit', 'karma:sauce', 'cover']
151-
: ['clean', 'build', 'cover']);
152-
153142
grunt.registerTask('dev', ['clean', 'watch']);
154143
grunt.registerTask('default', ['clean', 'build', 'cover']);
155144
};

LICENSE

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
1-
Software License Agreement (BSD License)
1+
BSD 3-Clause License
22

33
Copyright (c) 2009-2015, Kevin Decker <kpdecker@gmail.com>
4-
54
All rights reserved.
65

7-
Redistribution and use of this software in source and binary forms, with or without modification,
8-
are permitted provided that the following conditions are met:
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
98

10-
* Redistributions of source code must retain the above
11-
copyright notice, this list of conditions and the
12-
following disclaimer.
9+
1. Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
1311

14-
* Redistributions in binary form must reproduce the above
15-
copyright notice, this list of conditions and the
16-
following disclaimer in the documentation and/or other
17-
materials provided with the distribution.
12+
2. Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
1815

19-
* Neither the name of Kevin Decker nor the names of its
20-
contributors may be used to endorse or promote products
21-
derived from this software without specific prior
22-
written permission.
16+
3. Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
2319

24-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
25-
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
26-
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
27-
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
30-
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
31-
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)