dashboardjavacloudcoapiotiot-analyticsiot-platformiot-solutionskafkalwm2mmicroservicesmiddlewaremqttnettyplatformsnmpthingsboardvisualizationwebsocketswidgets
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
7 years ago | |
|---|---|---|
| .. | ||
| cases | 7 years ago | |
| node_modules | 7 years ago | |
| .editorconfig | 7 years ago | |
| .gitattributes | 7 years ago | |
| .npmignore | 7 years ago | |
| .travis.yml | 7 years ago | |
| LICENSE | 7 years ago | |
| README.md | 7 years ago | |
| loader.js | 7 years ago | |
| package.json | 7 years ago | |
| run-tests.js | 7 years ago | |
| yarn.lock | 7 years ago | |
README.md
ng-annotate-loader 
Webpack loader to annotate angular applications. Generates a sourcemaps as well.
Installation
npm install --save-dev ng-annotate-loader
Usage:
module: {
loaders: [
{
test: /src.*\.js$/,
use: [{ loader: 'ng-annotate-loader' }],
}
]
}
Passing parameters:
{
test: /src.*\.js$/,
use: [
{
loader: 'ng-annotate-loader',
options: {
add: false,
map: false,
}
}
]
}
More about ng-annotate parameters
Using ng-annotate plugins:
{
test: /src.*\.js$/,
use: [
{
loader: 'ng-annotate-loader',
options: {
plugin: ['ng-annotate-adf-plugin']
}
}
]
}
Using a fork of ng-annotate:
{
test: /src.*\.js$/,
use: [
{
loader: 'ng-annotate-loader',
options: {
ngAnnotate: 'my-ng-annotate-fork'
}
}
]
}
Works great with js compilers, babel for example:
{
test: /src.*\.js$/,
use: [
{ loader: 'ng-annotate-loader' },
{ loader: 'babel-loader' },
]
},
Contributing
Compiling examples and run acceptance test
Run on the root folder:
npm install
npm test