Skip to content

Commit

Permalink
Merge pull request #25 from BrerBear/transpile
Browse files Browse the repository at this point in the history
Transpile to ES5 before publishing npm module by calling build script.
  • Loading branch information
curran authored Sep 11, 2018
2 parents 0d3c2a3 + ecdda88 commit bc8fc20
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
*.swp
package-lock.json
dist
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "json-templates",
"version": "2.2.0",
"version": "2.3.0",
"description": "Simple JSON value templating.",
"main": "index.js",
"main": "dist/index.js",
"scripts": {
"build": "rollup -c",
"test": "mocha"
},
"repository": {
Expand All @@ -21,7 +22,9 @@
},
"homepage": "https://github.com/datavis-tech/json-templates#readme",
"devDependencies": {
"mocha": "^5.0.0"
"mocha": "^5.0.0",
"rollup": "^0.65.2",
"rollup-plugin-buble": "^0.19.2"
},
"dependencies": {
"dedupe": "^2.1.0",
Expand Down
13 changes: 13 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import buble from 'rollup-plugin-buble';

export default {
input: 'index.js',
output: {
format: 'umd',
name: 'JSON templates',
file: 'dist/index.js'
},
plugins: [
buble()
]
}

0 comments on commit bc8fc20

Please sign in to comment.