diff --git a/README.rst b/README.rst index 52245c192..2ecd2c2bb 100644 --- a/README.rst +++ b/README.rst @@ -1,7 +1,7 @@ frontend-build ============== -|Build Status| |Codecov| |license| +|Build Status| |npm_version| |Codecov| |license| The purpose of this package is to provide a common sense foundation and setup for frontend projects including: @@ -108,3 +108,4 @@ you will need to run it every time you make changes to this project. :target: https://codecov.io/gh/edx/frontend-base .. |license| image:: https://img.shields.io/npm/l/@edx/frontend-base.svg :target: https://github.com/edx/frontend-base/blob/master/LICENSE +.. |npm_version| image:: https://img.shields.io/npm/v/@edx/frontend-component-header.svg \ No newline at end of file diff --git a/lib/getProjectConfigFile.js b/lib/getProjectConfigFile.js index da50790dd..c7685be2c 100644 --- a/lib/getProjectConfigFile.js +++ b/lib/getProjectConfigFile.js @@ -7,7 +7,6 @@ const { PROJECT_ROOT } = require('./paths'); module.exports = (commandName) => { const { globSearchPattern, - suggestedName, configFile, } = presets[commandName]; const globOptions = { diff --git a/lib/presets.js b/lib/presets.js index a0286da89..832db0784 100644 --- a/lib/presets.js +++ b/lib/presets.js @@ -7,27 +7,22 @@ const getConfigFilepath = filename => module.exports = { eslint: { globSearchPattern: '.eslintrc*', - suggestedName: '.eslintrc.js', configFile: getConfigFilepath('.eslintrc.js'), }, jest: { globSearchPattern: 'jest.config.js', - suggestedName: 'jest.config.js', configFile: getConfigFilepath('jest.config.js'), }, babel: { globSearchPattern: 'babel.config.js', - suggestedName: 'babel.config.js', configFile: getConfigFilepath('babel.config.js'), }, 'webpack-prod': { globSearchPattern: 'webpack.prod.config.js', - suggestedName: 'webpack.prod.config.js', configFile: getConfigFilepath('webpack.prod.config.js'), }, 'webpack-dev': { globSearchPattern: 'webpack.dev.config.js', - suggestedName: 'webpack.dev.config.js', configFile: getConfigFilepath('webpack.dev.config.js'), }, };