Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 2c1e3f0

Browse files
committed
spec rollup
1 parent eadf5c9 commit 2c1e3f0

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
dist
33
spec/tree-view-spec.js*
4+
spec/ignored-names*

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
},
1111
"private": true,
1212
"scripts": {
13+
"test": "shx cp dist/tree-view.js spec/tree-view-spec.js && cp dist/tree-view.js.map spec/tree-view-spec.js.map && shx cp dist/ignored-names* spec && apm test",
1314
"clean": "shx rm -rf dist",
1415
"debug": "npm run clean && shx cp -r lib dist",
1516
"dev": "npm run clean && env NODE_ENV=development rollup -c -w",

rollup.config.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,28 @@ export default [
4747
'path'
4848
],
4949
plugins: plugins
50+
},
51+
// tests
52+
{
53+
input: 'spec/tree-view',
54+
output: [
55+
{
56+
dir: 'dist',
57+
format: 'cjs',
58+
sourcemap: true
59+
}
60+
],
61+
// loaded externally
62+
external: [
63+
'atom',
64+
'electron',
65+
'pathwatcher',
66+
// node stuff
67+
'fs',
68+
'path',
69+
'util',
70+
'assert'
71+
],
72+
plugins: plugins
5073
}
5174
]

0 commit comments

Comments
 (0)