Skip to content

Tags: power-assert-js/grunt-espower

Tags

v1.2.0

Toggle v1.2.0's commit message
Transparent assertion enhancement (2016-12-12)

  * [feat] Enable transparent assertion enhancement, embed value capturing helper into transpiled code (by upgrading espower-source to 2.0.0)

v1.1.0

Toggle v1.1.0's commit message
support Grunt 1.0 (2016-02-24)

  * [feat] Update peerDependencies to support Grunt 1.0
  * [fix] `main` field in package.json should point to task definition

v1.0.0

Toggle v1.0.0's commit message
The first stable release (2015-08-25)

  * transfer to power-assert-js organization
  * update espower to 1.0.6

v0.10.0

Toggle v0.10.0's commit message
Release 0.10.0 (2014-11-11)

grunt-espower:

  * update escodegen and espower

v0.9.1

Toggle v0.9.1's commit message
Release 0.9.1 (2014-09-17)

* **grunt-espower:** update espower to 0.9.1 ([8c6761a](8c6761a))

v0.9.0

Toggle v0.9.0's commit message
Release 0.9.0 (2014-08-28)

* **grunt-espower:** [support multistage sourcemap by @vvakame](#2)

v0.8.0

Toggle v0.8.0's commit message
Release 0.8.0 (2014-08-12)

* **grunt-espower:** update espower-source to 0.8.0 ([55110fa](55110fa))

If you already customize instrumentation pattern using `powerAssertVariableName` and `targetMethods`, you need to migarte. To migrate, change your code from the following:

```javascript
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:

```javascript
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.
        }
      ]
    },
  },
})
```

v0.7.1

Toggle v0.7.1's commit message
0.7.1

v0.7.0

Toggle v0.7.0's commit message
0.7.0

v0.6.0

Toggle v0.6.0's commit message
0.6.0