1.2.0 (2016-12-12)
1.1.0 (2016-02-24)
main
field in package.json should point to task definition (ce092dda)
1.0.0 (2015-08-25)
- grunt-espower:
0.10.0 (2014-11-11)
- grunt-espower:
- update escodegen and espower (5d8bb3c8)
- grunt-espower: update espower to 0.9.1 (8c6761ae)
- grunt-espower: support multistage sourcemap by @vvakame
- grunt-espower: update espower-source to 0.8.0 (55110fa4)
If you already customize instrumentation pattern using powerAssertVariableName
and targetMethods
, you need to migarte. To migrate, change your code from the following:
grunt.initConfig({
espower: {
demo: {
options :{
powerAssertVariableName: 'yourAssert',
targetMethods: {
oneArg: [
'okay'
],
twoArgs: [
'equal',
'customEqual'
]
}
},
files: [
{
expand: true, // Enable dynamic expansion.
cwd: 'demo/', // Src matches are relative to this path.
src: ['**/*.js'], // Actual pattern(s) to match.
dest: 'espowered_demo/', // Destination path prefix.
ext: '.js' // Dest filepaths will have this extension.
}
]
},
},
})
To:
grunt.initConfig({
espower: {
demo: {
options :{
patterns: [
'yourAssert(value, [message])',
'yourAssert.okay(value, [message])',
'yourAssert.equal(actual, expected, [message])',
'yourAssert.customEqual(actual, expected, [message])'
]
},
files: [
{
expand: true, // Enable dynamic expansion.
cwd: 'demo/', // Src matches are relative to this path.
src: ['**/*.js'], // Actual pattern(s) to match.
dest: 'espowered_demo/', // Destination path prefix.
ext: '.js' // Dest filepaths will have this extension.
}
]
},
},
})