This package has been deprecated

Author message:

please use untool directly

@untool/defaults

0.22.0 • Public • Published

@untool/defaults

npm

@untool/defaults is a very simple preset that sets up a basic untool environment featuring Yargs, Express, Webpack, and React support.

Installation

If you need to set up a new project using @untool/defaults, just use the package manager of your choice to install it:

$ yarn add @untool/defaults react react-dom react-router-dom react-helmet
# OR npm install @untool/defaults react react-dom react-router-dom react-helmet

Afterwards, you need to add a new untool section to your project's package.json file:

{
  "scripts": {
    "start": "un start"
  },
  "untool": {
    "presets": ["@untool/defaults"]
  }
}

Additionally you might want to add a start script using untool's CLI functionality to be able to use your package manager to start your application:

$ yarn start -p # OR npm start -p

Settings

module.exports = {
  presets: [
    '@untool/express',
    '@untool/react',
    '@untool/webpack',
    '@untool/yargs',
  ],
};

The code block above mirrors @untool/defaults/preset.js' actual source code in its entirety. Please refer to the listed mixins and presets for more information. While @untool/defaults does not really provide any relevant settings of its own, @untool/core does:

Property Type Default
name string PACKAGE_JSON_NAME
version string PACKAGE_JSON_VERSION
rootDir string PACKAGE_JSON_DIRECTORY

name

The application name; used throughout the untool ecosystem to individualize log output, asset file names, and even HTML IDs. This value is determined by checking your application's package.json file and falling back to its directory name. Do not override - simply update the name field in your package.json file.

version

The application version; can come handy for asset versioning and logging, but not currently used in untool's default modules. This value is determined by checking your application's package.json file. Do not override - simply update the version field in your package.json file.

rootDir

The application's filesystem context; used heavily throughout the untool ecosystem for module resolution, build configuration and the like. This value is determined by finding the directory your package.json file is in. Really, do not override this unless you know exactly what you are doing.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published

Package Sidebar

Install

npm i @untool/defaults

Weekly Downloads

0

Version

0.22.0

License

MIT

Unpacked Size

11 kB

Total Files

6

Last publish

Collaborators

  • robertkowalski
  • zaubernerd
  • jhiode
  • knisterpeter