-
Notifications
You must be signed in to change notification settings - Fork 1.7k
simplify npm release process #4479
Changes from 8 commits
e1147dc
76dc277
9e298b0
e2f4bff
2ee8948
b62e3d9
68d5917
4c6f20d
d781e0e
ef7081f
bb98d5b
5500e21
ffd960c
de56706
5c63681
d648f82
4173f1b
27f041e
82866f1
0760a85
5da69d7
4b6657d
fb1cdc1
3574107
9a478f0
0465034
a82fdbc
7642710
d55d051
5c9a018
d8e282e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,7 @@ docs | |
.happypack | ||
.npmjs | ||
.eslintcache | ||
|
||
npm/*/src | ||
npm/*/dist | ||
npm/jsonrpc/index.json | ||
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright 2015-2017 Parity Technologies (UK) Ltd. | ||
// This file is part of Parity. | ||
|
||
// Parity is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
|
||
// Parity is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
|
||
// You should have received a copy of the GNU General Public License | ||
// along with Parity. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
const assert = require('assert'); | ||
|
||
assert.doesNotThrow(() => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am really not sure why we are doing it this way around. I would strongly suggest using
works as well, is consistent and readable by all. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's just not to introduce dependencies as this a the built-in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is a dev dependency. I'd rather not have things done in disparate ways all across the codebase. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IMO i'd rather not have mocha just for making sure things don't crash. Will change it anyway. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (The only issue I see is that the error message is not displayed with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ngotchac Not as nicely, yet but it says "requiring |
||
const etherscan = require('..'); | ||
}, Error, 'requiring @parity/etherscan fails'); |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright 2015-2017 Parity Technologies (UK) Ltd. | ||
// This file is part of Parity. | ||
|
||
// Parity is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
|
||
// Parity is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
|
||
// You should have received a copy of the GNU General Public License | ||
// along with Parity. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
const assert = require('assert'); | ||
|
||
assert.doesNotThrow(() => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As above. |
||
require('..'); | ||
}, Error, 'requiring @parity/jsonrpc fails'); | ||
|
||
assert.doesNotThrow(() => { | ||
require('../index.json'); | ||
}, Error, 'requiring @parity/jsonrpc/index.json fails'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't the LICENSE files be here now as well since it is copied into tracked paths after the fact?