Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@untool/defaults

Package Overview
Dependencies
Maintainers
4
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@untool/defaults

untool default preset

  • 0.22.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
4
Weekly downloads
 
Created
Source

@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:

PropertyTypeDefault
namestringPACKAGE_JSON_NAME
versionstringPACKAGE_JSON_VERSION
rootDirstringPACKAGE_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.

Keywords

FAQs

Package last updated on 13 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc