Skip to content

Commit

Permalink
almost there
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Aug 11, 2017
1 parent b38632e commit 75152bf
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
3 changes: 3 additions & 0 deletions test/cli/index.js
Expand Up @@ -9,6 +9,9 @@ const samples = path.resolve(__dirname, 'samples');

const cwd = process.cwd();

sander.rimrafSync(__dirname, 'node_modules');
sander.copydirSync(__dirname, 'node_modules_rename_me').to(__dirname, 'node_modules');

describe('cli', () => {
afterEach(() => {
process.chdir(cwd);
Expand Down
@@ -0,0 +1,9 @@
var replace = require( 'rollup-plugin-replace' );

module.exports = {
entry: 'main.js',
format: 'cjs',
plugins: [
replace({ 'ANSWER': 42 })
]
};
@@ -0,0 +1,3 @@
{
"main": "lib/config.js"
}
5 changes: 0 additions & 5 deletions test/cli/samples/node-config/_config.js
@@ -1,8 +1,3 @@
const sander = require('sander');

sander.rimrafSync(__dirname, 'node_modules');
sander.copydirSync(__dirname, 'node_modules_rename_me').to(__dirname, 'node_modules');

module.exports = {
description: 'uses config file installed from npm',
command: 'rollup --config node:foo',
Expand Down

0 comments on commit 75152bf

Please sign in to comment.