mirror of
https://github.com/bluetech/ng-annotate-patched.git
synced 2026-07-02 00:17:42 +08:00
Move source code to src/ to keep main directory less cluttered
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
## UNRELEASED
|
||||
* Require node>=4.0.0.
|
||||
* Reorganize internal directory structure. The main file moved to
|
||||
`src/ng-annotate-main.js`.
|
||||
|
||||
## v1.6.0 2017-05-28
|
||||
* Switch from tilde ~ dependencies to ^ caret dependencies.
|
||||
|
||||
+2
-2
@@ -29,13 +29,13 @@ controllers, etc.) with a new name when declared and referenced through annotati
|
||||
Use it like this: `--rename oldname1 newname1 oldname2 newname2`
|
||||
|
||||
*experimental* Use the `--plugin` option to load a user plugin with the provided path,
|
||||
1.x may change API). See [plugin-example.js](plugin-example.js) for more info.
|
||||
1.x may change API). See [plugin-example.js](examples/plugin-example.js) for more info.
|
||||
|
||||
*experimental* Use the `--stats` option to print statistics on stderr.
|
||||
|
||||
|
||||
## Library (API)
|
||||
ng-annotate can be used as a library. See [ng-annotate.js](ng-annotate.js) for further info about
|
||||
ng-annotate can be used as a library. See [ng-annotate.js](src/ng-annotate.js) for further info about
|
||||
options and return value.
|
||||
|
||||
```js
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
#!/usr/bin/env node
|
||||
require("./ng-annotate.js");
|
||||
require("./src/ng-annotate.js");
|
||||
|
||||
+2
-2
@@ -2,7 +2,7 @@
|
||||
"name": "ng-annotate-patched",
|
||||
"version": "1.6.0",
|
||||
"description": "add, remove and rebuild angularjs dependency injection annotations",
|
||||
"main": "ng-annotate-main.js",
|
||||
"main": "src/ng-annotate-main.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/bluetech/ng-annotate-patched.git"
|
||||
@@ -37,7 +37,7 @@
|
||||
"transformation"
|
||||
],
|
||||
"scripts": {
|
||||
"test": "node run-tests"
|
||||
"test": "node tests/run-tests"
|
||||
},
|
||||
"bin": "./ng-annotate",
|
||||
"author": "Olov Lassus <olov.lassus@gmail.com>",
|
||||
|
||||
@@ -9,7 +9,7 @@ const fs = require("fs");
|
||||
const fmt = require("simple-fmt");
|
||||
const tryor = require("tryor");
|
||||
const ngAnnotate = require("./ng-annotate-main");
|
||||
const version = require("./package.json").version;
|
||||
const version = require("../package.json").version;
|
||||
const optimist = require("optimist")
|
||||
.usage("ng-annotate v" + version + "\n\nUsage: ng-annotate OPTIONS <file>\n\n" +
|
||||
"provide - instead of <file> to read from stdin\n" +
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
"use strict";
|
||||
|
||||
const ngAnnotate = require("./ng-annotate-main");
|
||||
const ngAnnotate = require("../src/ng-annotate-main");
|
||||
const fs = require("fs");
|
||||
const os = require("os");
|
||||
const path = require("path");
|
||||
@@ -16,7 +16,7 @@ const coffee = require("coffee-script");
|
||||
const convertSourceMap = require("convert-source-map");
|
||||
|
||||
// optionals
|
||||
const ngAnnotateAdfPlugin = require("./optionals/angular-dashboard-framework.js");
|
||||
const ngAnnotateAdfPlugin = require("../src/optionals/angular-dashboard-framework.js");
|
||||
|
||||
function slurp(filename) {
|
||||
return String(fs.readFileSync(filename));
|
||||
Reference in New Issue
Block a user