Skip to content

Commit

Permalink
tests, remove grunt, builds = browserify
Browse files Browse the repository at this point in the history
Also removes atob/btoa shim.
  • Loading branch information
kirbysayshi committed Jan 2, 2015
1 parent b99a887 commit 8dfd864
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 286 deletions.
22 changes: 12 additions & 10 deletions README.md
Expand Up @@ -108,31 +108,33 @@ load all lines from `src/ghembedder.js`, use line numbers (requires [google-code
></div>

## Contributing
Please don't edit files in the "dist" subdirectory as they are generated via grunt. You'll find source code in the "src" subdirectory!
Please don't edit files in the "dist" subdirectory as they are generated. You'll find source code in the "src" subdirectory!

Install grunt:
- `npm install`

`npm install grunt -g`
To run tests via zuul / phantomjs:

And then run it to update the `dist` folder:
- `npm test`

`grunt`
To run tests in an actual browser:

- `npm run test-debug`

To build:

- `npm run dist`

## Release History

- 0.1.1: Basic html escaping if extension matches `.htm|.html`
- 0.1.0: initial release

## License
Copyright (c) 2012 Andrew Petersen
Licensed under the MIT license.

[base64][] is Copyright (c) 2010 Nick Galbreath
MIT

## Thanks

Ben Alman, for [Grunt](https://github.com/cowboy/grunt/).

[google-code-prettify]: https://code.google.com/p/google-code-prettify/
[min]: https://raw.github.com/kirbysayshi/ghembedder/master/dist/ghembedder.min.js
[max]: https://raw.github.com/kirbysayshi/ghembedder/master/dist/ghembedder.js
Expand Down
60 changes: 0 additions & 60 deletions grunt.js

This file was deleted.

29 changes: 17 additions & 12 deletions package.json
Expand Up @@ -3,23 +3,28 @@
"description": "Embed any source file (or specific lines) from any public github repo in your page, with no server-side dependencies.",
"version": "0.1.1",
"homepage": "https://github.com/kirbysayshi/ghembedder",
"author": {
"name": "Andrew Petersen",
"email": "senofpeter@gmail.com",
"url": "http://kirbysayshi.github.com"
},
"author": "Andrew Petersen <senofpeter@gmail.com>",
"repository": {
"type": "git",
"url": "git://github.com/kirbysayshi/ghembedder.git"
},
"bugs": {
"url": "https://github.com/kirbysayshi/ghembedder/issues"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/kirbysayshi/ghembedder/blob/master/LICENSE-MIT"
}
],
"keywords": []
"scripts": {
"bundle": "browserify --standalone ghembedder -p licensify src/ghembedder.js > dist/ghembedder.js",
"dist": "npm run bundle && uglifyjs dist/ghembedder.js --comments '/Modules/' > dist/ghembedder.min.js",
"test": "zuul --phantom --ui tape -- test.js",
"test-debug": "zuul --local --open --ui tape -- test.js"
},
"license": "MIT",
"keywords": [],
"devDependencies": {
"browserify": "^8.0.3",
"licensify": "^0.2.0",
"phantomjs": "^1.9.13",
"tape": "^3.0.3",
"uglify-js": "^2.4.16",
"zuul": "^1.16.3"
}
}

0 comments on commit 8dfd864

Please sign in to comment.