New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

brick-cli-react

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

brick-cli-react

♂ brick-cli-XX is a serie of packages used to organize web-front projects using templates in [webpack-base-project](https://github.com/congzhou09/webpack-base-project), alonging with cli commands.

npmnpm
Version
1.1.3
Version published
Weekly downloads
8
700%
Maintainers
1
Weekly downloads
 
Created
Source

brick-cli-base

♂ brick-cli-XX is a serie of packages used to organize web-front projects using templates in webpack-base-project, alonging with cli commands.

♂ purposes

  • Organize projects with less config works, which is achieved by encapsulting basic config works into an npm package. Encapsulting also make projects's dependencies in "package.json" file more concise.

  • Uniform basic project configs between diffenent projects using the same same framework.

  • Update project configs more easily. Updating specific package's version will reach the goal.

♂ Related framework for each package is as follows.

package nameframework
brick-cli-baseno framework
brick-cli-reactreact

usage

♀ Install specific brick-cli-XX package.

♀ Run "brick init" for the first time. This will create config files for tools like ".eslintrc.js", "babel.config.js", ".prettierrc" and so on with default configurations. If one config file has existed, it will not be overwritten, and a message like "xxx has existed, ignore creation." will be displayed in the command window.

♀ (selectable) Run "brick tidydeps" to remove duplicated dependencies that has been included by brick-cli-XX from the project's "package.json" file. Then run "yarn install" to let yarn re-tidy the relationships between packages.

♀ Custom webpack configurations can be set in "brick.config.js" file under the project's root directory. Content of the file can be in one of two forms below.

// configurations will be merged by "webpack-merge"
module.exports = {
  devServer:{
    port: 2023
  }
}
// configurations returned by the function will be treated as the final webpack config
module.exports = (curConfigs)=>{
  curConfigs.devServer.port = 2023;
  return curConfigs;
}

♀ Other configurations for ESLint, TypeScript, Vite, etc can be set in related config files.

♀ Other cli commands are listed below. It will be convenient to write them into corresponding scripts in the "package.json".

cli commanddescriptionparameter
brick devrun webpack dev server ◆--eject
Write final webpack configs to command window(--eject) or to file(--eject=filename)
brick viterun vite dev server
brick sitbuild for sit
brick prodbuild for prod

FAQs

Package last updated on 21 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts