Home Reference Source Repository

Function

Static Public Summary
public
public
public

fileExists(file: *): boolean

public

packagejson(projectPath: *)

public

splitarchetypes(neatoOptions: *): *

Given one configuration object, it returns and array of more than one with archetype specific configuration

public

template(projectPath: *)

Static Public

public MissingPackageJSON() source

import {MissingPackageJSON} from 'neato/src/index.js'

public NeatoPath() source

import {NeatoPath} from 'neato/src/index.js'

public fileExists(file: *): boolean source

import fileExists from 'neato/src/util/file-exists.js'

Params:

NameTypeAttributeDescription
file *

Return:

boolean

public packagejson(projectPath: *) source

Params:

NameTypeAttributeDescription
projectPath *

public splitarchetypes(neatoOptions: *): * source

import splitarchetypes from 'neato/src/webpack/split-archetypes.js'

Given one configuration object, it returns and array of more than one with archetype specific configuration

This a requirement because when we build libraries, we can only have a single entry-point in the webpack configuration.

This function turns { libraries } into { library }, check the tests for more information.

Params:

NameTypeAttributeDescription
neatoOptions *

Return:

*

public template(projectPath: *) source

Params:

NameTypeAttributeDescription
projectPath *