Skip to content

Commit 787556f

Browse files
committed
Cleanup npm scripts
1 parent fe35838 commit 787556f

15 files changed

Lines changed: 323 additions & 3 deletions

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
44

5+
### UNRELEASED
6+
7+
- Cleanup npm scripts
8+
59
### [3.2.1](https://github.com/doesdev/rollup-plugin-analyzer/compare/3.2.0...3.2.1)
610

711
> 12 September 2019

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
"module.js"
1111
],
1212
"scripts": {
13-
"test": "standard module.js && node ./node_modules/rollup/dist/bin/rollup -c && node test/test.js --verbose",
14-
"precommit": "standard module.js && node ./node_modules/rollup/dist/bin/rollup -c && node test/test.js --verbose && git add index.js"
13+
"build": "standard module.js && node ./node_modules/rollup/dist/bin/rollup -c",
14+
"test": "npm run build && mvt --verbose",
15+
"precommit": "npm run build && mvt --verbose && git add index.js"
1516
},
1617
"repository": {
1718
"type": "git",

test/_fixtures/multi/bundle-a.js

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
'use strict';
2+
3+
var __chunk_1 = require('./chunk-3f0e56f2.js');
4+
5+
const virtualInsanity = `
6+
Oh yeah, what we're living in (let me tell ya)
7+
It's a wonder man can eat at all
8+
When things are big that should be small
9+
Who can tell what magic spells we'll be doing for us
10+
And I'm giving all my love to this world
11+
Only to be told
12+
I can't see
13+
I can't breathe
14+
No more will we be
15+
And nothing's going to change the way we live
16+
'Cause we can always take but never give
17+
And now that things are changing for the worse,
18+
See, its a crazy world we're living in
19+
And I just can't see that half of us immersed in sin
20+
Is all we have to give these
21+
Futures made of virtual insanity now
22+
Always seem to, be governed by this love we have
23+
For useless, twisting, our new technology
24+
Oh, now there is no sound for we all live underground
25+
And I'm thinking what a mess we're in
26+
Hard to know where to begin
27+
If I could slip the sickly ties that earthly man has made
28+
And now every mother, can choose the color
29+
Of her child
30+
That's not nature's way
31+
Well that's what they said yesterday
32+
There's nothing left to do but pray
33+
I think it's time I found a new religion
34+
Whoa, it's so insane
35+
To synthesize another strain
36+
There's something in these
37+
Futures that we have to be told
38+
Futures made of virtual insanity now
39+
Always seem to, be governed by this love we have
40+
For useless, twisting, our new technology
41+
Oh, now there is no sound for we all live underground
42+
Now there is no sound
43+
If we all live underground
44+
And now it's virtual insanity
45+
Forget your virtual reality
46+
Oh, there's nothing so bad
47+
I know yeah
48+
Of this virtual insanity, we're livin' in
49+
Has got to change, yeah
50+
Things, will never be the same
51+
And I can't go on
52+
While we're livin' in oh, oh virtual insanity
53+
Oh, this world, has got to change
54+
'Cause I just, I just can't keep going on, it was virtual
55+
Virtual insanity that we're livin' in, that we're livin' in
56+
That virtual insanity is what it is
57+
Futures made of virtual insanity now
58+
Always seem to, be governed by this love we have
59+
For useless, twisting, our new technology
60+
Oh, now there is no sound for we all live underground
61+
Futures made of virtual insanity now
62+
Always seem to, be governed by this love we have
63+
For useless, twisting, our new technology
64+
Oh, now there is no sound for we all live underground
65+
Living, virtual insanity
66+
Living, virtual insanity
67+
Living, virtual insanity
68+
Living, virtual insanity
69+
Virtual insanity is what we're living in
70+
`;
71+
72+
const smallNestedConstA = 'jamiroquai';
73+
const largeNestedConstB = virtualInsanity;
74+
75+
const anotherSmallConst = 'abcd';
76+
77+
console.log(
78+
__chunk_1.aSmallConst.length,
79+
anotherSmallConst.length,
80+
smallNestedConstA.length,
81+
largeNestedConstB.length
82+
);

test/_fixtures/multi/bundle-b.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict';
2+
3+
var __chunk_1 = require('./chunk-3f0e56f2.js');
4+
5+
console.log(
6+
__chunk_1.aLargeConst.length
7+
);

test/_fixtures/multi/chunk-3f0e56f2.js

Lines changed: 72 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)