Skip to content

Commit

Permalink
NPM distribution changes: only ship .js and .d.ts in the node package…
Browse files Browse the repository at this point in the history
… instead of everything
  • Loading branch information
platosha authored and Saulis committed May 16, 2016
1 parent 25be364 commit 0d97aa8
Show file tree
Hide file tree
Showing 14 changed files with 310 additions and 300 deletions.
11 changes: 10 additions & 1 deletion .gitignore
@@ -1,5 +1,7 @@
# Distribution build directory
dist/

# Created by https://www.gitignore.io/api/node,bower
# Created by https://www.gitignore.io/api/node,bower,typings

### Node ###
# Logs
Expand All @@ -18,6 +20,9 @@ lib-cov
# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

Expand All @@ -44,3 +49,7 @@ bower_components
.bower-registry
.bower-tmp


### Typings ###
## Ignore downloaded typings
typings
17 changes: 15 additions & 2 deletions .npmignore
@@ -1,5 +1,12 @@
# Source files
bower.json
index.ts
/src/
tsconfig.json
typings/
typings.json

# Created by https://www.gitignore.io/api/node,bower
# Created by https://www.gitignore.io/api/node,bower,typings

### Node ###
# Logs
Expand All @@ -18,6 +25,9 @@ lib-cov
# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

Expand All @@ -44,4 +54,7 @@ bower_components
.bower-registry
.bower-tmp

test

### Typings ###
## Ignore downloaded typings
typings
1 change: 1 addition & 0 deletions index.d.ts
@@ -0,0 +1 @@
export { PolymerElement } from './src/polymer-element';
17 changes: 4 additions & 13 deletions index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion index.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion index.ts
@@ -1 +1 @@
export {PolymerElement} from './polymer-element';
export { PolymerElement } from './src/polymer-element';
29 changes: 18 additions & 11 deletions package.json
Expand Up @@ -2,22 +2,29 @@
"name": "@vaadin/angular2-polymer",
"version": "1.0.0-alpha3",
"description": "Angular 2 support for Polymer elements",
"repository": "https://github.com/vaadin/angular2-polymer.git",
"main": "index.js",
"scripts": {
"postinstall": "typings install",
"prepublish": "tsc",
"typings": "typings",
"tsc": "tsc",
"tsc:w": "tsc -w"
},
"files": ["index.d.ts", "src/*.js", "src/*.d.ts"],
"typescript": {
"definition": "index.d.ts"
},
"author": "Vaadin Ltd",
"license": "Apache 2.0",
"license": "Apache-2.0",
"dependencies": {
"@angular/common":"^2.0.0-rc.0",
"@angular/compiler": "^2.0.0-rc.0",
"@angular/core": "^2.0.0-rc.0",
"@angular/http": "^2.0.0-rc.0",
"@angular/platform-browser": "^2.0.0-rc.0",
"@angular/platform-browser-dynamic": "^2.0.0-rc.0",
"@angular/router-deprecated": "^2.0.0-rc.0",
"@angular/upgrade": "^2.0.0-rc.0",
"systemjs": "^0.19.27",
"es6-shim": "^0.35.0",
"reflect-metadata": "^0.1.3",
"rxjs": "^5.0.0-beta.6",
"rxjs": "5.0.0-beta.6",
"zone.js": "^0.6.12"
},
"devDependencies": {
"typescript": "1.8.10",
"typings": "0.8.1"
}
}
261 changes: 0 additions & 261 deletions polymer-element.js

This file was deleted.

0 comments on commit 0d97aa8

Please sign in to comment.