Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Run make to create built release before NPM publish (#1224)
Browse files Browse the repository at this point in the history
At the moment each project depending on mapbox.js has to create the built release files on their own. With that we bring the built releases directly to these projects by putting them inside the package before publish, so they are available for everyone directly when the package is installed via npm.

The git repository instead is still clean and will not contain them.
  • Loading branch information
andi1984 authored and mourner committed Feb 25, 2019
1 parent 807465a commit 6907a86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
_site
tmp
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"sanitize-caja": "0.1.4"
},
"scripts": {
"test": "eslint --no-eslintrc -c .eslintrc src && phantomjs node_modules/mocha-phantomjs-core/mocha-phantomjs-core.js test/index.html"
"test": "eslint --no-eslintrc -c .eslintrc src && phantomjs node_modules/mocha-phantomjs-core/mocha-phantomjs-core.js test/index.html",
"prepublishOnly": "npm run build",
"build": "make"
},
"license": "BSD-3-Clause",
"devDependencies": {
Expand Down

0 comments on commit 6907a86

Please sign in to comment.