rollup-plugin-progress
Advanced tools
| 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) { |
+4
-5
| { | ||
| "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" | ||
| } | ||
| } |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
-50%1
-50%6122
-6.16%122
-6.15%- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed