mirror of https://github.com/lukechilds/rollup.git
Rich Harris
9 years ago
12 changed files with 81 additions and 2 deletions
@ -0,0 +1,5 @@ |
|||
module.exports = { |
|||
description: 'uses config file installed from npm', |
|||
command: 'rollup --config node:foo', |
|||
execute: true |
|||
}; |
@ -0,0 +1,11 @@ |
|||
(function (global, factory) { |
|||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : |
|||
typeof define === 'function' && define.amd ? define(factory) : |
|||
global.myBundle = factory(); |
|||
}(this, function () { 'use strict'; |
|||
|
|||
var main = 42; |
|||
|
|||
return main; |
|||
|
|||
})); |
@ -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 }) |
|||
] |
|||
}; |
@ -0,0 +1,3 @@ |
|||
{ |
|||
"main": "lib/config.js" |
|||
} |
@ -0,0 +1,5 @@ |
|||
module.exports = { |
|||
description: 'uses config file installed from npm', |
|||
command: 'rollup --config node:foo', |
|||
execute: true |
|||
}; |
@ -0,0 +1,11 @@ |
|||
(function (global, factory) { |
|||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : |
|||
typeof define === 'function' && define.amd ? define(factory) : |
|||
global.myBundle = factory(); |
|||
}(this, function () { 'use strict'; |
|||
|
|||
var main = 42; |
|||
|
|||
return main; |
|||
|
|||
})); |
@ -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 }) |
|||
] |
|||
}; |
@ -0,0 +1,3 @@ |
|||
{ |
|||
"main": "lib/config.js" |
|||
} |
Loading…
Reference in new issue