mirror of https://github.com/lukechilds/rollup.git
Kurt Blackwell
9 years ago
5 changed files with 25 additions and 1 deletions
@ -0,0 +1,13 @@ |
|||
var os = require( 'os' ); |
|||
|
|||
function toggleCase ( s ) { |
|||
return ( s == s.toLowerCase() ) ? s.toUpperCase() : s.toLowerCase(); |
|||
} |
|||
|
|||
module.exports = { |
|||
skip: os.platform() !== 'win32', |
|||
description: "can load config with cwd that doesn't match realpath", |
|||
command: 'rollup -c', |
|||
cwd: process.cwd().replace( /^[A-Z]:\\/ig, toggleCase ), |
|||
execute: true |
|||
}; |
@ -0,0 +1 @@ |
|||
assert.equal( ANSWER, 42 ); |
@ -0,0 +1,9 @@ |
|||
var replace = require( 'rollup-plugin-replace' ); |
|||
|
|||
module.exports = { |
|||
entry: 'main.js', |
|||
format: 'cjs', |
|||
plugins: [ |
|||
replace({ 'ANSWER': 42 }) |
|||
] |
|||
}; |
Loading…
Reference in new issue