diff --git a/.gitignore b/.gitignore index 7e1e69b..1a8a7aa 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules **.tern-port npm-debug.log dist/ +distribution/ diff --git a/.travis.yml b/.travis.yml index bd2fc5c..490ed62 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,6 @@ node_js: before_script: - npm prune after_success: - - npm build - npm run semantic-release branches: except: diff --git a/package.json b/package.json index c46c395..2b29763 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "sharedb-ace", "version": "1.0.1", "description": "ShareDB keybindings for Ace Editor", - "main": "./dist/sharedb-ace.min.js", + "main": "./distribution/sharedb-ace.js", "repository": "https://github.com/jethrokuan/sharedb-ace", "author": "Jethro Kuan", "files": [ @@ -10,11 +10,13 @@ ], "license": "MIT", "scripts": { - "build": "webpack", + "build": "babel source --presets babel-preset-latest --out-dir distribution", + "build:dist": "webpack", "watch": "yarn run build", "test": "echo 'doing nothing'", "lint": "eslint source", "docs": "jsdoc source/*.js -d ./docs/", + "prepublish": "npm run build", "semantic-release": "semantic-release pre && npm publish && semantic-release post" }, "precommit": {