Rename the dist folder 'plugins' (#444)

pull/445/head
cgewecke 5 years ago committed by GitHub
parent 653fc51ab9
commit f87c274c2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      index.js
  2. 4
      package.json
  3. 0
      plugins/bin.js
  4. 6
      plugins/buidler.plugin.js
  5. 0
      plugins/resources/buidler.ui.js
  6. 0
      plugins/resources/buidler.utils.js
  7. 0
      plugins/resources/plugin.utils.js
  8. 0
      plugins/resources/truffle.library.js
  9. 0
      plugins/resources/truffle.library.js.map
  10. 0
      plugins/resources/truffle.ui.js
  11. 0
      plugins/resources/truffle.utils.js
  12. 6
      plugins/truffle.plugin.js
  13. 2
      test/integration/projects/bad-solcoverjs/buidler.config.js
  14. 2
      test/integration/projects/ganache-solcoverjs/buidler.config.js
  15. 2
      test/integration/projects/import-paths/buidler.config.js
  16. 2
      test/integration/projects/libraries/buidler.config.js
  17. 2
      test/integration/projects/multiple-suites/buidler.config.js
  18. 2
      test/integration/projects/no-sources/buidler.config.js
  19. 2
      test/integration/projects/skipping/buidler.config.js
  20. 2
      test/integration/projects/test-files/buidler.config.js
  21. 2
      test/units/buidler/errors.js
  22. 4
      test/units/buidler/flags.js
  23. 2
      test/units/buidler/standard.js
  24. 4
      test/units/truffle/errors.js
  25. 2
      test/units/truffle/flags.js
  26. 2
      test/units/truffle/standard.js
  27. 2
      test/util/integration.js

@ -1,2 +0,0 @@
// stub: this is package.json's "main"
// truffle require.resolve's this in order to check plugin is installed

@ -2,9 +2,9 @@
"name": "solidity-coverage",
"version": "0.7.0-beta.2",
"description": "",
"main": "dist/buidler.plugin.js",
"main": "plugins/buidler.plugin.js",
"bin": {
"solidity-coverage": "./dist/bin.js"
"solidity-coverage": "./plugins/bin.js"
},
"directories": {
"test": "test"

@ -1,7 +1,7 @@
const API = require('./../lib/api');
const utils = require('./plugin-assets/plugin.utils');
const buidlerUtils = require('./plugin-assets/buidler.utils');
const PluginUI = require('./plugin-assets/buidler.ui');
const utils = require('./resources/plugin.utils');
const buidlerUtils = require('./resources/buidler.utils');
const PluginUI = require('./resources/buidler.ui');
const pkg = require('./../package.json');
const death = require('death');

@ -1,7 +1,7 @@
const API = require('./../lib/api');
const utils = require('./plugin-assets/plugin.utils');
const truffleUtils = require('./plugin-assets/truffle.utils');
const PluginUI = require('./plugin-assets/truffle.ui');
const utils = require('./resources/plugin.utils');
const truffleUtils = require('./resources/truffle.utils');
const PluginUI = require('./resources/truffle.ui');
const pkg = require('./../package.json');
const death = require('death');

@ -1,5 +1,5 @@
const { loadPluginFile } = require("@nomiclabs/buidler/plugins-testing");
loadPluginFile(__dirname + "/../dist/buidler.plugin");
loadPluginFile(__dirname + "/../plugins/buidler.plugin");
usePlugin("@nomiclabs/buidler-truffle5");
module.exports={

@ -1,5 +1,5 @@
const { loadPluginFile } = require("@nomiclabs/buidler/plugins-testing");
loadPluginFile(__dirname + "/../dist/buidler.plugin");
loadPluginFile(__dirname + "/../plugins/buidler.plugin");
usePlugin("@nomiclabs/buidler-truffle5");
module.exports={

@ -1,5 +1,5 @@
const { loadPluginFile } = require("@nomiclabs/buidler/plugins-testing");
loadPluginFile(__dirname + "/../dist/buidler.plugin");
loadPluginFile(__dirname + "/../plugins/buidler.plugin");
usePlugin("@nomiclabs/buidler-truffle5");
module.exports={

@ -1,5 +1,5 @@
const { loadPluginFile } = require("@nomiclabs/buidler/plugins-testing");
loadPluginFile(__dirname + "/../dist/buidler.plugin");
loadPluginFile(__dirname + "/../plugins/buidler.plugin");
usePlugin("@nomiclabs/buidler-truffle5");
module.exports={

@ -1,5 +1,5 @@
const { loadPluginFile } = require("@nomiclabs/buidler/plugins-testing");
loadPluginFile(__dirname + "/../dist/buidler.plugin");
loadPluginFile(__dirname + "/../plugins/buidler.plugin");
usePlugin("@nomiclabs/buidler-truffle5");
module.exports={

@ -1,5 +1,5 @@
const { loadPluginFile } = require("@nomiclabs/buidler/plugins-testing");
loadPluginFile(__dirname + "/../dist/buidler.plugin");
loadPluginFile(__dirname + "/../plugins/buidler.plugin");
usePlugin("@nomiclabs/buidler-truffle5");
module.exports={

@ -1,5 +1,5 @@
const { loadPluginFile } = require("@nomiclabs/buidler/plugins-testing");
loadPluginFile(__dirname + "/../dist/buidler.plugin");
loadPluginFile(__dirname + "/../plugins/buidler.plugin");
usePlugin("@nomiclabs/buidler-truffle5");
module.exports={

@ -1,5 +1,5 @@
const { loadPluginFile } = require("@nomiclabs/buidler/plugins-testing");
loadPluginFile(__dirname + "/../dist/buidler.plugin");
loadPluginFile(__dirname + "/../plugins/buidler.plugin");
usePlugin("@nomiclabs/buidler-truffle5");
module.exports={

@ -7,7 +7,7 @@ const ganache = require('ganache-cli')
const verify = require('../../util/verifiers')
const mock = require('../../util/integration');
const plugin = require('../../../dist/buidler.plugin');
const plugin = require('../../../plugins/buidler.plugin');
// =======
// Errors

@ -5,7 +5,7 @@ const shell = require('shelljs');
const verify = require('../../util/verifiers')
const mock = require('../../util/integration');
const plugin = require('../../../dist/buidler.plugin');
const plugin = require('../../../plugins/buidler.plugin');
// =======================
// CLI Options / Flags
@ -85,7 +85,7 @@ describe('Buidler Plugin: command line options', function() {
verify.lineCoverage(expected);
});
it.only('--testfiles test/<fileName>', async function() {
it('--testfiles test/<fileName>', async function() {
const taskArgs = {
testfiles: path.join(
buidlerConfig.paths.root,

@ -5,7 +5,7 @@ const shell = require('shelljs');
const verify = require('../../util/verifiers')
const mock = require('../../util/integration');
const plugin = require('../../../dist/buidler.plugin');
const plugin = require('../../../plugins/buidler.plugin');
// =======================
// Standard Use-case Tests

@ -7,7 +7,7 @@ const ganache = require('ganache-core-sc');
const verify = require('../../util/verifiers')
const mock = require('../../util/integration');
const plugin = require('../../../dist/truffle.plugin');
const plugin = require('../../../plugins/truffle.plugin');
// =======
// Errors
@ -208,7 +208,7 @@ describe('Truffle Plugin: error cases', function() {
})
it('user runs "solidity-coverage" as shell command', function(){
const pathToCommand = './dist/bin.js';
const pathToCommand = './plugins/bin.js';
const pkg = require('../../../package.json');
assert(

@ -5,7 +5,7 @@ const shell = require('shelljs');
const verify = require('../../util/verifiers')
const mock = require('../../util/integration');
const plugin = require('../../../dist/truffle.plugin');
const plugin = require('../../../plugins/truffle.plugin');
// =======================
// CLI Options / Flags

@ -5,7 +5,7 @@ const shell = require('shelljs');
const verify = require('../../util/verifiers')
const mock = require('../../util/integration');
const plugin = require('../../../dist/truffle.plugin');
const plugin = require('../../../plugins/truffle.plugin');
// =======================
// Standard Use-case Tests

@ -159,7 +159,7 @@ function getDefaultBuidlerConfig() {
function getBuidlerConfigJS(config){
const prefix =`
const { loadPluginFile } = require("@nomiclabs/buidler/plugins-testing");
loadPluginFile(__dirname + "/../dist/buidler.plugin");
loadPluginFile(__dirname + "/../plugins/buidler.plugin");
usePlugin("@nomiclabs/buidler-truffle5");
`

Loading…
Cancel
Save