rollup-plugin-progress
Advanced tools
Comparing version 0.4.0 to 1.0.0
import fs from 'fs'; | ||
import path from 'path'; | ||
import chalk from 'chalk'; | ||
import 'readline'; | ||
import { createFilter } from 'rollup-pluginutils'; | ||
@@ -18,3 +16,2 @@ function normalizePath(id) { | ||
var filter = createFilter(options.include, options.exclude); | ||
var total = 0; | ||
@@ -34,4 +31,3 @@ var totalFilePath = path.resolve(__dirname, "./total.txt"); | ||
name: 'progress', | ||
load: function load(id) { | ||
var file = normalizePath(id); | ||
load: function load() { | ||
progress.loaded += 1; | ||
@@ -63,3 +59,3 @@ }, | ||
}, | ||
ongenerate: function ongenerate() { | ||
generateBundle: function generateBundle() { | ||
fs.writeFileSync(totalFilePath, progress.loaded); | ||
@@ -66,0 +62,0 @@ if (options.clearLine && process.stdin.isTTY) { |
@@ -8,4 +8,2 @@ 'use strict'; | ||
var chalk = _interopDefault(require('chalk')); | ||
var readline = require('readline'); | ||
var rollupPluginutils = require('rollup-pluginutils'); | ||
@@ -23,3 +21,2 @@ function normalizePath(id) { | ||
var filter = rollupPluginutils.createFilter(options.include, options.exclude); | ||
var total = 0; | ||
@@ -39,4 +36,3 @@ var totalFilePath = path.resolve(__dirname, "./total.txt"); | ||
name: 'progress', | ||
load: function load(id) { | ||
var file = normalizePath(id); | ||
load: function load() { | ||
progress.loaded += 1; | ||
@@ -68,3 +64,3 @@ }, | ||
}, | ||
ongenerate: function ongenerate() { | ||
generateBundle: function generateBundle() { | ||
fs.writeFileSync(totalFilePath, progress.loaded); | ||
@@ -71,0 +67,0 @@ if (options.clearLine && process.stdin.isTTY) { |
{ | ||
"name": "rollup-plugin-progress", | ||
"version": "0.4.0", | ||
"version": "1.0.0", | ||
"description": "Rollup Progress Plugin", | ||
@@ -27,9 +27,8 @@ "main": "dist/rollup-plugin-progress.js", | ||
"dependencies": { | ||
"chalk": "^1.1.3", | ||
"rollup-pluginutils": "^1.5.1" | ||
"chalk": "^1.1.3" | ||
}, | ||
"devDependencies": { | ||
"rollup": "^0.36.0", | ||
"rollup-plugin-buble": "^0.14.0" | ||
"rollup": "^1.0.0", | ||
"rollup-plugin-buble": "^0.19.6" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
1
6122
122
- Removedrollup-pluginutils@^1.5.1
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedestree-walker@0.2.1(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedrollup-pluginutils@1.5.2(transitive)