Skip to content

Commit 8377a9f

Browse files
author
Rahul Kumar
committed
added production build
1 parent 1e31c39 commit 8377a9f

10 files changed

+132
-6
lines changed

.gitignore

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/tmp
5+
coverage/
6+
#bundles/
7+
#esm/
8+
9+
# dependencies
10+
/node_modules
11+
/bower_components
12+
13+
# output
14+
/dist
15+
16+
# IDEs and editors
17+
/.idea
18+
/.vscode
19+
.project
20+
.classpath
21+
.c9/
22+
*.launch
23+
.settings/
24+
ng-pipes.iml
25+
26+
# misc
27+
/.sass-cache
28+
/connect.lock
29+
/coverage/*
30+
/libpeerconnection.log
31+
npm-debug.log
32+
testem.log
33+
/typings
34+
yarn-error.log
35+
36+
# e2e
37+
/e2e/*.js
38+
/e2e/*.map
39+
40+
#System Files
41+
.DS_Store
42+
Thumbs.db

LICENSE.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The MIT License
2+
3+
Copyright (c) 2016 Dan Revah
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

package.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "ng2-fab-speed-dial",
3+
"version": "1.0.0",
4+
"author": "Rahul Kumar",
5+
"description": "Fab speed dial in for Angular 4+",
6+
"license": "MIT",
7+
"scripts": {
8+
"transpile": "ngc",
9+
"package": "rollup -c",
10+
"minify": "uglifyjs dist/bundles/fabSpeedDial.umd.js --screw-ie8 --compress --mangle --comments --output dist/bundles/fabSpeedDial.umd.min.js",
11+
"build": "npm run transpile && npm run package && npm run minify"
12+
},
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/kumar529/ng2-fab-speed-dial.git"
16+
},
17+
"devDependencies": {
18+
"@angular/compiler": "^4.4.6",
19+
"@angular/compiler-cli": "^4.4.6",
20+
"@angular/core": "^4.4.6",
21+
"rollup": "^0.50.0",
22+
"rxjs": "^5.5.2",
23+
"typescript": "^2.5.3",
24+
"uglify-js": "^3.1.5"
25+
}
26+
}

rollup.config.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
export default {
2+
input: 'dist/src/index.js',
3+
output: {
4+
file : 'dist/bundles/fabSpeedDial.umd.js',
5+
format : 'umd'
6+
},
7+
sourceMap: false,
8+
name: 'ng.fabSpeedDial',
9+
external: [ '@angular/core' ],
10+
globals: {
11+
'@angular/core': 'ng.core',
12+
'rxjs/Observable': 'Rx',
13+
'rxjs/ReplaySubject': 'Rx',
14+
'rxjs/add/operator/map': 'Rx.Observable.prototype',
15+
'rxjs/add/operator/mergeMap': 'Rx.Observable.prototype',
16+
'rxjs/add/observable/fromEvent': 'Rx.Observable',
17+
'rxjs/add/observable/of': 'Rx.Observable'
18+
}
19+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
import { NgModule } from "@angular/core";
2-
import { CommonModule } from "@angular/common";
3-
import { FormsModule } from "@angular/forms";
42
import { FabToggleDirective, FabButtonDirective, FabSpeedDialComponent } from "./fabSpeedDial.component";
53

64
@NgModule({
7-
imports : [
8-
CommonModule
9-
],
5+
imports : [],
106
declarations : [
117
FabToggleDirective,
128
FabButtonDirective,
@@ -19,4 +15,4 @@ import { FabToggleDirective, FabButtonDirective, FabSpeedDialComponent } from ".
1915
]
2016
})
2117

22-
export class FabSpeedDialModule{}
18+
export class Ng2FabSpeedDialModule{}

src/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { Ng2FabSpeedDialModule } from './fabSpeedDial/fabSpeedDial.module';
2+
export { FabToggleDirective, FabButtonDirective, FabSpeedDialComponent } from "./fabSpeedDial/fabSpeedDial.component";

tsconfig.json

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"declaration": true,
5+
"stripInternal": true,
6+
"experimentalDecorators": true,
7+
"strictNullChecks": true,
8+
"noImplicitAny": true,
9+
"module": "es2015",
10+
"moduleResolution": "node",
11+
"paths": {
12+
"@angular/core": ["node_modules/@angular/core"],
13+
"rxjs/*": ["node_modules/rxjs/*"]
14+
},
15+
"rootDir": ".",
16+
"outDir": "dist",
17+
"sourceMap": true,
18+
"inlineSources": true,
19+
"target": "es5",
20+
"skipLibCheck": true,
21+
"lib": [
22+
"es2015",
23+
"dom"
24+
]
25+
},
26+
"files": [
27+
"src/index.ts"
28+
],
29+
"angularCompilerOptions": {
30+
"strictMetadataEmit": true
31+
}
32+
}

0 commit comments

Comments
 (0)