superbrave-build-script
This repository is intended as an opiniated approach to building assets and configuring linters. The linter settings therefor cannot be changed.
Last updated a year ago by jorik12345 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install superbrave-build-script 
SYNC missed versions from official npm registry.

Frontend Build Script

This repository is intended as an opiniated approach to building assets and configuring linters. The linter settings therefor cannot be changed.

This repo is using Prettier to automatic format code to prevent the obvious style typos.

Prettier is integrated within the stylelint and eslint configuration files. If you like to disable prettier just remove these lines in your own config.

1. Installation

Use the following command to include the build script in your project.

yarn add superbrave-build-script

Or if you are using NPM:

npm i superbrave-build-script

2. Configuration

Make sure you copy the following files to your project's root folder:

cp ./node_modules/superbrave-build-script/example.webpack.settings.js ./webpack.settings.js
cp ./node_modules/superbrave-build-script/.eslintrc ./.eslintrc
cp ./node_modules/superbrave-build-script/.stylelintrc.json ./.stylelintrc.json
cp ./node_modules/superbrave-build-script/.prettierrc ./.prettierrc

Additionally change .env.example to .env if you want settings for local development.

Now you can change the variables as you desire.

3. Commands

Now you can copy the following commands to your package.json:

"hmr": "webpack-dev-server --config ./node_modules/superbrave-build-script/config.development.js",
"prod": "webpack --config ./node_modules/superbrave-build-script/config.production.js --progress --hide-modules",
"eslint": "eslint src/js/index.js",
"stylelint": "stylelint src/scss/style.scss"

Current Tags

  • 0.0.9                                ...           latest (a year ago)

8 Versions

  • 0.0.9                                ...           a year ago
  • 0.0.8                                ...           a year ago
  • 0.0.7                                ...           a year ago
  • 0.0.6                                ...           a year ago
  • 0.0.5                                ...           a year ago
  • 0.0.4                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |