Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
parity.js -> parity.npm.js, library.parity.js -> parity.js
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Feb 13, 2017
1 parent 0760a85 commit 5da69d7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion js/scripts/prepare-npm-libraries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ printf "\n***************************************"
printf "\n***** Building parity.js for NPM ******"
printf "\n***************************************\n\n"
mkdir -p npm/parity/src
cp src/parity.js npm/parity/src/index.js
cp src/parity.npm.js npm/parity/src/index.js
cp -R src/abi npm/parity/src
cp -R src/api npm/parity/src
env LIBRARY=parity npm run ci:build:npm
Expand Down
18 changes: 16 additions & 2 deletions js/src/parity.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,19 @@
// You should have received a copy of the GNU General Public License
// along with Parity. If not, see <http://www.gnu.org/licenses/>.

export Abi from './abi';
export Api from './api';
import 'babel-polyfill';
import 'whatwg-fetch';

import es6Promise from 'es6-promise';
es6Promise.polyfill();

import Api from './api';

import './dev.parity.html';

const api = new Api(new Api.Transport.Http('/rpc/'));

window.parity = {
Api,
api
};
18 changes: 2 additions & 16 deletions js/src/library.parity.js → js/src/parity.npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,5 @@
// You should have received a copy of the GNU General Public License
// along with Parity. If not, see <http://www.gnu.org/licenses/>.

import 'babel-polyfill';
import 'whatwg-fetch';

import es6Promise from 'es6-promise';
es6Promise.polyfill();

import Api from './api';

import './dev.parity.html';

const api = new Api(new Api.Transport.Http('/rpc/'));

window.parity = {
Api,
api
};
export Abi from './abi';
export Api from './api';
2 changes: 1 addition & 1 deletion js/webpack/libraries.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = {
// library
'inject': ['./inject.js'],
'web3': ['./web3.js'],
'parity': ['./library.parity.js']
'parity': ['./parity.js']
},
output: {
path: path.join(__dirname, '../', DEST),
Expand Down

0 comments on commit 5da69d7

Please sign in to comment.