Skip to content

Commit

Permalink
Transpile and minify source, update main path
Browse files Browse the repository at this point in the history
  • Loading branch information
millerized committed Jan 5, 2018
1 parent 54dca98 commit a4448c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions dist/smart-truncate.es5.js

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

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
"name": "smart-truncate",
"version": "0.0.5",
"description": "A small library that truncates a string. It can insert or append an ellipsis at any desired position of the truncated result.",
"main": "src/smart-truncate.js",
"main": "dist/smart-truncate.es5.js",
"scripts": {
"test": "node_modules/.bin/mocha -R spec src/*.spec.js",
"cover": "node_modules/istanbul/lib/cli.js cover node_modules/.bin/_mocha -- -R spec src/*.spec.js"
"cover": "node_modules/istanbul/lib/cli.js cover node_modules/.bin/_mocha -- -R spec src/*.spec.js",
"compile": "./node_modules/.bin/babel src/smart-truncate.js --out-file dist/smart-truncate.es5.js",
"minify": "./node_modules/.bin/uglifyjs dist/smart-truncate.es5.js -o dist/smart-truncate.es5.js",
"build": "npm run compile && npm run minify"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit a4448c8

Please sign in to comment.