Skip to content

Commit

Permalink
build(umd): umd bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuri committed Feb 16, 2017
1 parent c9d15fb commit e1e1285
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 23 deletions.
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/node_modules
/typings
/typings
/aot
15 changes: 0 additions & 15 deletions index.ts

This file was deleted.

16 changes: 15 additions & 1 deletion ngx-uploader.ts
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
export * from './index';
import { NgFileDropDirective } from './src/directives/ng-file-drop';
import { NgFileSelectDirective } from './src/directives/ng-file-select';

export * from './src/directives/ng-file-drop';
export * from './src/directives/ng-file-select';
export * from './src/services/ngx-uploader';

export { NgUploaderOptions, UploadedFile, UploadRejected } from './src/classes/index';

export { NgUploaderModule } from './src/module/ngx-uploader.module';

export const UPLOAD_DIRECTIVES: any[] = [
NgFileSelectDirective,
NgFileDropDirective
];
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"name": "ngx-uploader",
"description": "Angular File Uploader",
"version": "2.1.6",
"version": "2.1.11",
"license": "MIT",
"main": "index.js",
"typings": "index.d.ts",
"main": "bundle/ngx-uploader.umd.js",
"module": "ngx-uploader.js",
"typings": "ngx-uploader.d.ts",
"author": "Jan Kuri <[email protected]>",
"scripts": {
"clean": "./scripts/clean.sh",
"dev": "tsc --watch",
"build": "./node_modules/.bin/ngc -p tsconfig.json",
"build": "./node_modules/.bin/ngc -p tsconfig.json && rollup -c",
"prepublish": "npm run build",
"lint": "tslint \"src/**/*.ts\"",
"docs": "gulp docs",
Expand Down Expand Up @@ -41,6 +42,10 @@
"gulp-conventional-changelog": "^1.1.0",
"gulp-typedoc": "^2.0.2",
"reflect-metadata": "^0.1.9",
"rollup": "^0.41.4",
"rollup-plugin-buble": "^0.15.0",
"rollup-plugin-commonjs": "^7.0.0",
"rollup-plugin-node-resolve": "^2.0.0",
"rxjs": "^5.1.0",
"tslint": "^4.4.2",
"typedoc": "^0.5.5",
Expand Down
2 changes: 1 addition & 1 deletion scripts/clean.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

find . -name "*.js" -type f -and -not -path "./node_modules/*" -and -not -path "./gulpfile.js" -delete
find . -name "*.js" -type f -and -not -path "./node_modules/*" -and -not -path "./gulpfile.js" -and -not -path "./make.js" -delete
find . -name "*.js.map" -type f -not -path "./node_modules/*" -delete
find . -name "*.d.ts" -type f -not -path "./node_modules/*" -delete
find . -name "*.metadata.json" -type f -not -path "./node_modules/*" -delete
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"target": "es5",
"module": "es2015",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
Expand Down Expand Up @@ -28,7 +29,6 @@
"dist"
],
"files": [
"index.ts",
"ngx-uploader.ts"
],
"angularCompilerOptions": {
Expand Down

0 comments on commit e1e1285

Please sign in to comment.