3.6.9 • Published 2 years ago

@b-side/cli v3.6.9

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
2 years ago

@b-side/cli

Installing b-side CLI

Can also be used with npx, that will allow you get the latests updates available at each use.

npm install -g @b-side/cli

Initialization

The initialization process allow you to jump start a project using @b-side. No options are available for the moment. Modify the created files for further customisations.

npx @b-side/cli init
bs init

Update

Allows you to keep the configuration file up-to-date.

npx @b-side/cli update

Build

The build process will look recursively in configured directory for .js files extending HTMLElement, check for .html having the same name, and combine/transpile the files in one or more javascript package.

npx @b-side/cli build --production --output=public/js
bs build --production --output=public/js

Command line options

  • output (default build)
  • production

Configuration file (b-side.config.json)

The configuration file will allow you deeper options for you build.

  • elements.prefix : prefix added to the custom-elements HTML names (ie <bs-test>)
  • input.directory : folder in witch to look for components, relative to root of the project.
  • output.prefix :
  • output.chunks : manage how files will be packaged. - directory : create a package for every folders contained in the input.directory. - file : create a package for every component contained in the input.directory. - none : (default) create a single package file.
  • output.directory :

Default options, if not configured otherwise :

 {
	elements: {
		prefix: "bs"
	},
	input: {
		directory: "elements"
	},
	output: {
		prefix: "bs",
		chunks: "none",
		directory: "build",
	}
}
3.6.9

2 years ago

3.6.8

2 years ago

3.6.7

2 years ago

3.6.2

2 years ago

3.6.1

2 years ago

3.6.6

2 years ago

3.6.5

2 years ago

3.6.4

2 years ago

3.6.3

2 years ago

3.5.7

3 years ago

3.5.6

3 years ago

3.5.5

3 years ago

3.5.4

3 years ago

3.5.3

3 years ago

3.6.0

3 years ago

3.4.0

4 years ago

3.2.0

4 years ago

3.4.2

4 years ago

3.4.1

4 years ago

3.3.0

4 years ago

3.5.2

3 years ago

3.5.1

3 years ago

3.5.0

3 years ago

3.1.3

4 years ago

3.1.4

4 years ago

3.0.4

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.5

4 years ago

3.0.0

4 years ago

3.1.2

4 years ago

3.1.1

4 years ago

3.1.0

4 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.3

4 years ago

1.5.0

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.4.0

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.0.2

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

0.2.1

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.0

4 years ago

0.1.4

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.2

4 years ago

0.1.3

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago