Browse Source

use rollup-plugin-flow-no-whitespace

dev
Evan You 8 years ago
parent
commit
eef05ac9e9
  1. 2
      build/config.js
  2. 16
      build/rollup-plugin-flow.js
  3. 2
      package.json

2
build/config.js

@ -1,5 +1,5 @@
const path = require('path')
const flow = require('./rollup-plugin-flow')
const flow = require('rollup-plugin-flow-no-whitespace')
const buble = require('rollup-plugin-buble')
const replace = require('rollup-plugin-replace')
const alias = require('rollup-plugin-alias')

16
build/rollup-plugin-flow.js

@ -1,16 +0,0 @@
const flowRemoveTypes = require('flow-remove-types')
const createFilter = require('rollup-pluginutils').createFilter
module.exports = options => {
options = options || {}
const filter = createFilter(options.include, options.exclude)
return {
name: 'flow-remove-types',
transform: (code, id) => {
if (filter(id)) {
return flowRemoveTypes(code)
}
}
}
}

2
package.json

@ -69,7 +69,6 @@
"eslint-plugin-flowtype": "^2.16.0",
"eslint-plugin-html": "^1.5.2",
"flow-bin": "^0.32.0",
"flow-remove-types": "github:yyx990803/flow-remove-types",
"http-server": "^0.9.0",
"jasmine": "2.4.x",
"jasmine-core": "2.4.x",
@ -92,6 +91,7 @@
"rollup-plugin-alias": "^1.2.0",
"rollup-plugin-babel": "^2.4.0",
"rollup-plugin-buble": "^0.14.0",
"rollup-plugin-flow-no-whitespace": "^1.0.0",
"rollup-plugin-replace": "^1.1.0",
"rollup-watch": "^2.5.0",
"selenium-server": "2.53.1",

Loading…
Cancel
Save