Skip to content

Commit

Permalink
chore(build): build to dist, add linting, export all components
Browse files Browse the repository at this point in the history
  • Loading branch information
Manduro committed Sep 22, 2016
1 parent 802be08 commit 668e135
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 29 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# http://editorconfig.org

root = true

[*]
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
insert_final_newline = false
trim_trailing_whitespace = false
7 changes: 1 addition & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
/typings
/node_modules

/src/*.d.ts
/src/*.js
/src/*.js.map
/ionic2-calendar.d.ts
/ionic2-calendar.js
/ionic2-calendar.js.map
/dist
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Install: `npm install ionic2-calendar --save`
Import the ionic2-calendar component for your page and add it to your page's directives.:

```
import {CalendarComponent} from 'ionic2-calendar/ionic2-calendar'
import { CalendarComponent } from 'ionic2-calendar';
@Component({
templateUrl: 'build/pages/home/home.html',
Expand Down
1 change: 0 additions & 1 deletion ionic2-calendar.ts

This file was deleted.

34 changes: 18 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,27 @@
"url": "git+https://github.com/twinssbc/Ionic2-Calendar.git"
},
"scripts": {
"build": "tsc",
"build": "rm -rf dist && tsc && npm run copy_package",
"copy_package": "cp package.json dist/package.json",
"dev": "tsc --watch",
"postinstall": "typings install"
},
"main": "dist/index.js",
"dependencies": {
},
"main": "./index.js",
"dependencies": {},
"devDependencies": {
"@angular/common": "^2.0.0-rc.4",
"@angular/compiler": "^2.0.0-rc.4",
"@angular/core": "^2.0.0-rc.4",
"@angular/platform-browser": "^2.0.0-rc.4",
"@angular/platform-browser-dynamic": "^2.0.0-rc.4",
"@angular/http": "^2.0.0-rc.4",
"es6-shim": "^0.35.0",
"reflect-metadata": "^0.1.3",
"ionic-angular": "^2.0.0-beta.10",
"rxjs": "^5.0.0-beta.6",
"zone.js": "~0.6.12",
"@angular/common": "2.0.0-rc.4",
"@angular/compiler": "2.0.0-rc.4",
"@angular/core": "2.0.0-rc.4",
"@angular/http": "2.0.0-rc.4",
"@angular/platform-browser": "2.0.0-rc.4",
"@angular/platform-browser-dynamic": "2.0.0-rc.4",
"es6-shim": "0.35.0",
"ionic-angular": "2.0.0-beta.11",
"reflect-metadata": "0.1.3",
"rxjs": "5.0.0-beta.6",
"tslint-ionic-rules": "0.0.5",
"typescript": "^1.7.5",
"typings": "^1.3.1"
"typings": "^1.3.1",
"zone.js": "0.6.12"
}
}
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
export {CalendarComponent} from './calendar';
export * from './calendar';
export * from './dayview';
export * from './monthview';
export * from './weekview';
14 changes: 10 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
{
"version": "0.0.1",
"compilerOptions": {
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "commonjs",
"moduleResolution": "node",
"outDir": "dist",
"removeComments": true,
"sourceMap": true,
"target": "es5",
"declaration": true
"target": "es5"
},
"files": [
"ionic2-calendar.ts",
"src/calendar.ts",
"src/calendar.service.ts",
"src/dayview.ts",
"src/index.ts",
"src/monthview.ts",
"src/weekview.ts",
"typings/globals/es6-shim/index.d.ts"
],
"exclude": [
Expand Down
3 changes: 3 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "tslint-ionic-rules"
}

0 comments on commit 668e135

Please sign in to comment.