1.0.0-beta.0 • Published 7 years ago

@glitchapp/lib v1.0.0-beta.0

Weekly downloads
3
License
MIT
Repository
-
Last release
7 years ago

Glitch lib

npm (scoped) Travis npm

This package is part of Glitch project

Glitch's core Node.js module. It generates a suitable webpack configuration object internally then passes you a preconfigured Compiler instance

Installation

$ npm install @glitchapp/lib

API

prepare

Generates a suitable webpack configuration object internally based on the given compiler options (options).

Parameters

  • options CompilerOptions

Examples

const compiler = prepare({
   path: 'path/to/project/dir',
   fs: require('fs')
})

compiler.run((err, stats) => {
   // ...
})

Returns webpack.Compiler instance

Contributing

We value and appreciate your help, please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Running the tests

$ npm test

Acknowledgments

Inspired by the awesome work of Facebook in their create-react-app package.

License

This project is licensed under the MIT License terms