core-decorators
Advanced tools
Comparing version 0.0.13 to 0.1.0
{ | ||
"name": "core-decorators", | ||
"version": "0.0.13", | ||
"version": "0.1.0", | ||
"description": "Library of ES7 decorators inspired by languages that come with built-ins like @override, @deprecated, etc", | ||
"main": "src/core-decorators.js", | ||
"main": "lib/core-decorators.js", | ||
"files": ["lib", "src", "README.md", "LICENSE"], | ||
"scripts": { | ||
"test": "mocha --require babel/register 'src/**/*.spec.js'" | ||
"build": "babel --stage 0 --out-dir lib src", | ||
"test": "npm run build && mocha --require babel/polyfill 'lib/**/*.spec.js'" | ||
}, | ||
@@ -15,4 +17,5 @@ "repository": { | ||
"es6", | ||
"es6", | ||
"es7", | ||
"es2015", | ||
"es2016", | ||
"babel", | ||
@@ -32,6 +35,6 @@ "decorators", | ||
"devDependencies": { | ||
"babel": "^5.2.16", | ||
"mocha": "^2.2.4", | ||
"babel": "^5.4.7", | ||
"mocha": "^2.2.5", | ||
"must": "^0.12.0" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# core-decorators.js | ||
# core-decorators.js [![Build Status](https://travis-ci.org/jayphelps/core-decorators.js.svg?branch=master)](https://travis-ci.org/jayphelps/core-decorators.js) | ||
Library of ES7 decorators inspired by languages that come with built-ins like @override, @deprecate, etc, similar to [pre-defined Annotations in Java](https://docs.oracle.com/javase/tutorial/java/annotations/predefined.html). Note that unlike Java annotations, decorators are functions which are applied at runtime. | ||
@@ -65,3 +65,3 @@ | ||
kickDogHard() {} | ||
@deprecate('We stopped animal abuse', { url: 'http://humanesociety.org/issues/abuse_neglect/' }) | ||
@@ -98,3 +98,3 @@ kickDogHarder() {} | ||
kickDog() {} | ||
@suppressWarnings | ||
@@ -101,0 +101,0 @@ kickDogWithoutWarning() { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41297
22
960