4.29.1 • Published 13 days ago

balm-core v4.29.1

Weekly downloads
8
License
MIT
Repository
github
Last release
13 days ago

NPM version License Coverage Percentage

balm-core@3(v3) supports for node@10.13.0+, postcss@7, webpack@4

Introduction

BalmJS prescribes best practices and tools to help you stay productive.

  • Naturally: Make web development simple, natural and pleasant.
  • Structure-Based: One configuration file can manage webapp projects with at least 90% use cases.
  • Learn Once, Run Any Webapps: Any front-end technology stack will be developed and built in the same way.

Features

  • Based on gulp + webpack for webapp projects
  • Automagically compile PostCSS/Sass/Less
  • CSS Autoprefixing
  • Automagically generate CSS Image Sprites
  • enable ES2015+ features using Babel
  • Awesome images optimization
  • Built-in preview server with BrowserSync
  • Custom publish assets to remote (Front-end to Back-end) project
  • ZIP/FTP/PWA supported
  • Easily define and extend your own tasks

Structure

:rocket: We recommend using Balm CLI to scaffold out a front-end web app.

project
├── .tmp         // Scaffolds out a temporary directory for development
├── dist         // Scaffolds out the production build
├─┬ src          // Source code in here (Create a directory in project)
│ ├── fonts
│ ├── images
│ ├── media
│ ├─┬ scripts
│ │ └── index.js // Required. A entry file for JS.
│ ├─┬ styles
│ │ └── main.css // Required. A entry file for CSS.
│ └── index.html // Required. A entry file for HTML.
├── .dotfile     // (e.g. .gitignore, .browserslistrc, etc...)
├── babel.config.js
├── balm.config.js // Required. A configuration file for Balm.
├── package.json   // Required.
└── ...

Installation

0. Requirements

You need to set up your development environment before you can do anything.

Install Node.js® and npm if they are not already on your machine.

Verify that you are running at least node 18.12.0 by running node -v in a terminal/console window. Older versions maybe produce errors, but newer versions are fine.

You develop apps in the context of an Balm workspace.

To create a new workspace and initial starter app:

# /path/to/YOUR_WORKSPACE
mkdir -p my-project/src/{styles,scripts}
echo "Hello World" > my-project/src/index.html

cd my-project
npm init -y

1. Installing balm

yarn global add balm-core
yarn add -D balm

OR

npm install -g balm-core
npm install -D balm

We currently recommend using Yarn instead of npm.

2. Configuration

In your project directory, create a file named balm.config.js in your project root with these contents:

module.exports = {
  // Your project config
};

:page_with_curl: Refer to configuration docs to learn more about config balm.

3. Usage

Edit package.json in your project directory:

{
  "scripts": {
    "dev": "balm",
    "prod": "balm -p"
  }
}

Run the command in your project directory:

# For development
npm run dev

# For production
npm run prod

Demo

Documentation

To download example and try it, visit balm.js.org.

Ecosystem

ProjectStatusDescription
balm-coreNPM version:black_joker: BalmJS compiler core (required for balm 3.0+)
balmNPM version:black_joker: BalmJS runtime core
balm-cliNPM version:spades: BalmJS scaffolding tool
balm-guiN/A:clubs: GUI for BalmJS
balm-ui-liteNPM version:hearts: Material Design Lite + Vue
balm-uiNPM version:diamonds: Next Generation Material UI for Vue.js
balm-scrollNPM version:scroll: Smooth scrolling for Vue.js
balm-ui-proNPM versionMore configuration definition, less code implementation for Vue.js
balm-git-flowNPM versionThe best practices for front-end git flow

Contributing

We'd love for you to contribute and make BalmJS even better than it is today! Please make sure to read the Contributing Guide before making a pull request. You can submit any ideas as pull requests or as GitHub issues.

License

MIT

© 2016-present, Elf-mousE

4.29.1

13 days ago

4.29.0

13 days ago

4.28.0

2 months ago

4.27.2

2 months ago

4.27.0

2 months ago

4.27.1

2 months ago

4.26.0

3 months ago

3.35.0

3 months ago

3.35.1

3 months ago

4.25.0

4 months ago

4.24.0

4 months ago

3.34.0

4 months ago

4.21.1

9 months ago

3.33.3

7 months ago

3.33.4

7 months ago

3.32.0

9 months ago

4.23.0

7 months ago

4.23.1

7 months ago

4.23.2

7 months ago

3.33.0

7 months ago

3.33.1

7 months ago

3.33.2

7 months ago

4.22.0

8 months ago

4.22.1

8 months ago

4.23.3

7 months ago

4.23.4

7 months ago

4.21.0

11 months ago

3.31.0

11 months ago

4.20.0

11 months ago

4.19.0

12 months ago

4.18.0

1 year ago

4.17.2

1 year ago

4.17.0

1 year ago

4.17.1

1 year ago

4.16.2

1 year ago

3.30.1

1 year ago

3.28.0

1 year ago

4.14.0

1 year ago

4.13.0

1 year ago

3.29.0

1 year ago

4.16.0

1 year ago

4.15.0

1 year ago

4.15.1

1 year ago

3.30.0

1 year ago

4.12.0

1 year ago

3.27.0

1 year ago

3.26.3

2 years ago

4.11.0

2 years ago

4.9.0

2 years ago

4.10.0

2 years ago

3.26.0

2 years ago

3.26.2

2 years ago

3.26.1

2 years ago

3.24.0

2 years ago

3.24.1

2 years ago

4.8.0

2 years ago

4.7.0

2 years ago

3.25.0

2 years ago

3.23.4

2 years ago

4.6.0

2 years ago

3.23.1

2 years ago

3.23.0

2 years ago

3.23.3

2 years ago

3.23.2

2 years ago

4.5.4

2 years ago

4.5.3

2 years ago

4.5.5

2 years ago

4.4.1

2 years ago

4.4.0

2 years ago

4.4.3

2 years ago

4.4.2

2 years ago

4.5.0

2 years ago

4.5.2

2 years ago

4.5.1

2 years ago

3.21.0

2 years ago

4.3.1

2 years ago

4.3.0

2 years ago

3.22.0

2 years ago

4.2.0

2 years ago

3.20.1

2 years ago

4.1.0

2 years ago

4.0.1

3 years ago

3.20.0

3 years ago

4.0.0

3 years ago

3.19.0

3 years ago

3.19.1

3 years ago

3.17.0

3 years ago

3.17.2

3 years ago

3.17.1

3 years ago

3.17.4

3 years ago

3.17.3

3 years ago

3.18.0

3 years ago

3.15.2

3 years ago

3.16.1

3 years ago

3.16.0

3 years ago

3.15.1

3 years ago

3.15.0

3 years ago

3.14.1

3 years ago

3.14.2

3 years ago

3.14.0

3 years ago

3.13.0

3 years ago

3.12.0

3 years ago

3.11.0

3 years ago

3.10.0

3 years ago

3.9.9

3 years ago

3.9.8

3 years ago

3.9.7

3 years ago

3.9.6

3 years ago

3.9.5

3 years ago

3.9.4

3 years ago

3.9.3

3 years ago

3.9.2

3 years ago

3.9.1

3 years ago

3.9.0

3 years ago

3.8.0

3 years ago

3.7.0

4 years ago

3.6.0

4 years ago

3.5.0

4 years ago

3.4.1

4 years ago

3.4.0

4 years ago

3.3.3

4 years ago

3.3.2

4 years ago

3.3.1

4 years ago

3.2.2

4 years ago

3.3.0

4 years ago

3.2.1

4 years ago

3.2.0

4 years ago

3.1.0

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

3.0.0-rc.6

4 years ago

3.0.0-rc.5

4 years ago

3.0.0-rc.4

4 years ago

3.0.0-rc.3

4 years ago

3.0.0-rc.2

4 years ago

3.0.0-rc.1

4 years ago

3.0.0-rc.0

4 years ago

3.0.0-beta.20

4 years ago

3.0.0-beta.19

4 years ago

3.0.0-beta.18

4 years ago

3.0.0-beta.17

4 years ago

3.0.0-beta.16

4 years ago

3.0.0-beta.15

4 years ago

3.0.0-beta.14

4 years ago

3.0.0-beta.12

4 years ago

3.0.0-beta.13

4 years ago

3.0.0-beta.11

4 years ago

3.0.0-beta.10

4 years ago

3.0.0-beta.9

4 years ago

3.0.0-beta.8

4 years ago

3.0.0-beta.7

4 years ago

3.0.0-beta.6

4 years ago

3.0.0-beta.5

4 years ago

3.0.0-beta.3

4 years ago

3.0.0-beta.1

4 years ago

3.0.0-beta.0

4 years ago

3.0.0-beta.2

4 years ago

3.0.0-alpha.1

4 years ago

3.0.0-alpha.3

4 years ago

3.0.0-alpha.2

4 years ago

3.0.0-alpha.5

4 years ago

3.0.0-alpha.4

4 years ago

3.0.0-alpha.6

4 years ago

3.0.0-alpha.0

4 years ago