Skip to content

Commit

Permalink
publish: 版本升级,提出低版本非必要文件。
Browse files Browse the repository at this point in the history
  • Loading branch information
huang-xiao-jian committed Nov 26, 2016
1 parent b1b5fd6 commit 8fe3d2a
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 129 deletions.
8 changes: 5 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jspm_packages
.babelrc
.eslintignore
.eslintrc.yml
karma.*.js
rollup.*.js
/test/*.bundle.js
.gitignore
.travis.yml

# Test
test
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
sudo: false
language: node_js
node_js:
- 6
script:
- npm run-script test-travis
after_success:
- npm install coveralls
- cat ./coverage/lcov.info | ./node_modules/.bin/coveralls
65 changes: 0 additions & 65 deletions legacy/parse.js

This file was deleted.

56 changes: 0 additions & 56 deletions legacy/reply.js

This file was deleted.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "rollup-plugin-ng-annotate",
"version": "0.2.1",
"version": "0.3.0",
"description": "adds and removes AngularJS dependency injection annotations inspired by ng-annotate.",
"main": "dist/index.js",
"main": "index.js",
"scripts": {
"test": "mocha test"
"test": "istanbul cover ./node_modules/.bin/_mocha --report html",
"test-travis": "istanbul cover ./node_modules/.bin/_mocha --report lcovonly"
},
"repository": {
"type": "git",
Expand All @@ -24,6 +25,7 @@
"babel-plugin-transform-class-properties": "^6.18.0",
"babel-preset-es2015-bk": "^1.3.0",
"eslint": "^3.9.0",
"istanbul": "^0.4.5",
"mocha": "^3.1.2",
"rollup": "^0.36.4",
"rollup-plugin-babel": "^2.6.1",
Expand Down
2 changes: 1 addition & 1 deletion test/analyze.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const should = require('should');
const { analyzeExplicitReference, analyzeImplicitReference } = require('../src/analyze');
const options = {encoding: 'utf8'};

describe('rollup-plugin-ng-annotate analyze implement', function () {
describe('rollup-plugin-ng-annotate analyze', function () {
it('should analyze function declare', function () {
let template = fs.readFileSync(path.resolve(__dirname, 'fixture', 'hmr.provider.js'), options);
let [$hmr, $state] = analyzeExplicitReference(template);
Expand Down
2 changes: 1 addition & 1 deletion test/engine.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
const should = require('should');
const { annotateDependencyInjection } = require('../src/engine');

describe('rollup-plugin-ng-annotate util', function () {
describe('rollup-plugin-ng-annotate engine', function () {
it('should annotate empty refs', function () {
annotateDependencyInjection([]).should.be.false();
});
Expand Down

0 comments on commit 8fe3d2a

Please sign in to comment.