Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Commit

Permalink
Add distribution.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-roemer committed Feb 28, 2015
1 parent 36ca840 commit 83cb7ad
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,3 @@ npm-debug\.log

local
coverage

# Temporary - exclude dist
dist
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ con.log("Hello world!");
In your HTML:

```html
<!-- Option One: Minified -->
<script src="PATH/TO/simple-console/dist/simple-console.min.js"></script>

<!-- Option Two: Raw source -->
<script src="PATH/TO/simple-console/simple-console.js"></script>
```

Expand Down
1 change: 1 addition & 0 deletions dist/simple-console.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>Simple Console</title>
<script src="../simple-console.js"></script>
<script src="../dist/simple-console.min.js"></script>
<script>
var con = new SimpleConsole();
con.log("Hello World!");
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@
"lodash": "3.3.1",
"mocha": "2.1.0",
"phantomjs": "1.9.15",
"sinon": "1.12.2"
"sinon": "1.12.2",
"uglify-js": "2.4.16"
},
"scripts": {
"dist": "uglifyjs simple-console.js --stats --compress --mangle --output=dist/simple-console.min.js"
},
"scripts": {},
"repository": {
"type": "git",
"url": "https://github.com/FormidableLabs/simple-console"
Expand Down

0 comments on commit 83cb7ad

Please sign in to comment.