-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
1,206 additions
and
681 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,56 @@ | ||
# enact-dev-utils | ||
# @enact/dev-utils [![Travis](https://img.shields.io/travis/enactjs/dev-utils.svg?style=flat-square)](https://travis-ci.org/enactjs/dev-utils) [![npm (scoped)](https://img.shields.io/npm/v/@enact/dev-utils.svg?style=flat-square)](https://www.npmjs.com/package/@enact/dev-utils) | ||
|
||
> A collection of development utilities for Enact apps. | ||
### Installation | ||
|
||
``` | ||
npm install --save-dev @enact/dev-utils | ||
``` | ||
|
||
### Features and Utilities | ||
|
||
#### [Mixins](./mixins/README.md) | ||
|
||
#### Plugins | ||
|
||
- [EnactFrameworkPlugin & EnactFrameworkRefPlugin](./plugins/dll/README.md) | ||
- [EnzymeAdapterPlugin](./plugins/EnzymeAdapterPlugin/README.md) | ||
- [GracefulFsPlugin](./plugins/GracefulFsPlugin/README.md) | ||
- [ILibPlugin](./plugins/ILibPlugin/README.md) | ||
- [PrerenderPlugin](./plugins/PrerenderPlugin/README.md) | ||
- [SnapshotPlugin](./plugins/SnapshotPlugin/README.md) | ||
- [WebOSMetaPlugin](./plugins/WebOSMetaPlugin/README.md) | ||
|
||
#### `config-helper` | ||
|
||
Contains a collection of webpack configuration manipulation functions. Able to find a webpack project root as well as manipulate entrypoints, loaders, and plugins. | ||
|
||
#### `option-parser` | ||
|
||
Detects the `enact` object within the root `package.json` and autodetects/resolves omitted options. | ||
|
||
#### `package-root` | ||
|
||
Resolves the active package root path and metadata. | ||
|
||
### Copyright and License Information | ||
|
||
Unless otherwise specified, all content, including all source code files and | ||
documentation files in this repository are: | ||
|
||
Copyright (c) 2016-2018 LG Electronics | ||
|
||
Unless otherwise specified or set forth in the NOTICE file, all content, | ||
including all source code files and documentation files in this repository are: | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this content except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,29 @@ | ||
module.exports = Object.assign({ | ||
mixins: require('./mixins'), | ||
configHelper: require('./config-helper'), | ||
packageRoot: require('./package-root') | ||
}, require('./plugins')); | ||
const exportOnDemand = obj => { | ||
Object.keys(obj).forEach(name => { | ||
Object.defineProperty(module.exports, name, { | ||
configurable: false, | ||
enumerable: true, | ||
get: obj[name] | ||
}); | ||
}); | ||
}; | ||
|
||
// Export the general mixins and dev utilities. | ||
exportOnDemand({ | ||
mixins: () => require('./mixins'), | ||
configHelper: () => require('./config-helper'), | ||
packageRoot: () => require('./package-root'), | ||
optionParser: () => require('./option-parser') | ||
}); | ||
|
||
// Export the Webpack plugins. | ||
exportOnDemand({ | ||
EnactFrameworkPlugin: () => require('./plugins/dll/EnactFrameworkPlugin'), | ||
EnactFrameworkRefPlugin: () => require('./plugins/dll/EnactFrameworkRefPlugin'), | ||
EnzymeAdapterPlugin: () => require('./plugins/EnzymeAdapterPlugin'), | ||
GracefulFsPlugin: () => require('./plugins/GracefulFsPlugin'), | ||
ILibPlugin: () => require('./plugins/ILibPlugin'), | ||
PrerenderPlugin: () => require('./plugins/PrerenderPlugin'), | ||
SnapshotPlugin: () => require('./plugins/SnapshotPlugin'), | ||
WebOSMetaPlugin: () => require('./plugins/WebOSMetaPlugin') | ||
}); |
Oops, something went wrong.