art-build-configurator
Tools for configuring npm (package.json) and webpack (webpack.config.js)
Last updated 19 days ago by shanebdavis .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install art-build-configurator 
SYNC missed versions from official npm registry.

art-build-configurator (abc) Build Status

Tools for configuring npm (package.json) and webpack (webpack.config.js)

Initializing a new Art Suite App

NOTE: Your directory-name is used to initialize various files including package.json, so pick a good name.

# replace "my-app-name" with your appo's name
mkdir my-app-name
cd my-app-name

# create package.json forces npm to install in your directory
echo "{}" > package.json

# install & configure abc
npm install art-build-configurator
npx art-build-configurator --init app --git

# install newly configured dependencies
npm install

# start your app
npm start

Then go to: http://localhost:8080/webpack-dev-server/

Create Git Repository (highly recommended):

After you have your app initialized, create a git repository so you have a working state to roll back to as you work:

git init
git add * ".[a-zA-Z]*"
git commit -a -m 'initial checkin'

Configuring package.json

The original motivation for ABC is the problem that package.json is not code. There is no way to dynamically configure it with plain npm + node. ABC solves that. ABC's config file art.build.config.{caf/coffee/js} is evaluated before it is applied. You can execute arbitrary code to generate and return the config object.

The output package.json file is generated as follows:

  1. Extract the current version from the current package.json. This is the only thing that is persisted. Everything else is replaced.
  2. defaultPackage = ABC's default package.json
  3. One of two things can happen depending upon the type of package = ArtBuildConfig.npm || ArtBuildConfig.package (two aliases):
    • package is an object: merged it: deepMerge defaultPackage, package
    • package is a function: invoke it: package(defaultPackage)
  4. Set version to the version read in step 1
  5. Write the resulting package.json

Current Tags

  • 1.26.10                                ...           latest (19 days ago)

50 Versions

  • 1.26.10                                ...           19 days ago
  • 1.26.9                                ...           2 months ago
  • 1.26.8                                ...           8 months ago
  • 1.26.7                                ...           8 months ago
  • 1.26.6                                ...           8 months ago
  • 1.26.5                                ...           8 months ago
  • 1.26.4                                ...           8 months ago
  • 1.26.3                                ...           8 months ago
  • 1.26.2                                ...           9 months ago
  • 1.26.1                                ...           9 months ago
  • 1.25.3                                ...           9 months ago
  • 1.25.2                                ...           9 months ago
  • 1.25.1                                ...           9 months ago
  • 1.25.0                                ...           9 months ago
  • 1.24.0                                ...           9 months ago
  • 1.23.1                                ...           9 months ago
  • 1.23.0                                ...           9 months ago
  • 1.21.1                                ...           10 months ago
  • 1.19.15                                ...           10 months ago
  • 1.19.14                                ...           10 months ago
  • 1.19.4                                ...           a year ago
  • 1.19.3                                ...           a year ago
  • 1.18.6                                ...           2 years ago
  • 1.18.1                                ...           2 years ago
  • 1.18.0                                ...           2 years ago
  • 1.16.2                                ...           2 years ago
  • 1.17.0                                ...           2 years ago
  • 1.16.1                                ...           2 years ago
  • 1.16.0                                ...           2 years ago
  • 1.15.4                                ...           2 years ago
  • 1.15.2                                ...           2 years ago
  • 1.15.1                                ...           3 years ago
  • 1.15.0                                ...           3 years ago
  • 1.14.6                                ...           3 years ago
  • 1.14.3                                ...           3 years ago
  • 1.14.1                                ...           3 years ago
  • 1.14.0                                ...           3 years ago
  • 1.13.4                                ...           3 years ago
  • 1.11.6                                ...           3 years ago
  • 1.11.5                                ...           3 years ago
  • 1.11.0                                ...           3 years ago
  • 1.10.0                                ...           3 years ago
  • 1.9.1                                ...           3 years ago
  • 1.9.0                                ...           3 years ago
  • 1.8.1                                ...           3 years ago
  • 1.8.0                                ...           3 years ago
  • 1.7.1                                ...           3 years ago
  • 1.6.0                                ...           3 years ago
  • 1.3.0                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 20
Last Day 0
Last Week 1
Last Month 2
Dev Dependencies (16)

Copyright 2014 - 2016 © taobao.org |