Skip to content

Commit 31d5930

Browse files
committed
Use compiled .js, fixes #103
1 parent 02410c3 commit 31d5930

File tree

6 files changed

+35
-23
lines changed

6 files changed

+35
-23
lines changed

.gitignore

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1+
# Compiled Files
2+
lib
3+
*.js
4+
*.map
5+
*.d.ts
6+
17
# Library directories
28
node_modules
39
coverage
4-
lib
510
npm-debug.log
611

7-
# Ignore Mac DS_Store files
12+
# Mac
13+
.DS_Store
814
**/.DS_Store
915

1016
# Ignore VSCode Config

.npmignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
node_modules
22
npm-debug.log
33

4+
# Source Files
5+
src
6+
*.ts
7+
!*.d.ts
8+
49
# Testing
510
config
611
coverage
@@ -10,3 +15,7 @@ karma.conf.js
1015
.travis.yml
1116
.gitignore
1217
tsconfig.json
18+
19+
# Mac
20+
.DS_Store
21+
**/.DS_Store

angular2-token.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export * from './src/angular2-token.model';
2-
export * from './src/angular2-token.service';
3-
export * from './src/a2t-ui/a2t-ui.module';
1+
export * from './lib/angular2-token.model';
2+
export * from './lib/angular2-token.service';
3+
export * from './lib/a2t-ui/a2t-ui.module';

angular2-token.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
function __export(m) {
33
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
44
}
5-
__export(require('./src/angular2-token.service'));
6-
__export(require('./src/a2t-ui/a2t-ui.module'));
5+
__export(require('./lib/angular2-token.service'));
6+
__export(require('./lib/angular2-token.model'));
7+
__export(require('./lib/a2t-ui/a2t-ui.module'));

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
22
"name": "angular2-token",
3-
"version": "0.2.0-beta.5",
3+
"version": "0.2.0-beta.6",
44
"description": "Angular2 service for token based authentication",
5+
56
"main": "./angular2-token.js",
67
"typings": "./angular2-token.d.ts",
8+
79
"scripts": {
810
"test": "karma start",
9-
"build": "rm -rf lib && tsc",
11+
"build": "rm -rf lib && tsc -p src",
1012
"prepublish": "npm run build"
1113
},
1214
"keywords": [

tsconfig.json renamed to src/tsconfig.json

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
"compilerOptions": {
33
"target": "es5",
44
"module": "commonjs",
5-
"moduleResolution": "node",
65
"emitDecoratorMetadata": true,
76
"experimentalDecorators": true,
8-
"allowSyntheticDefaultImports": true,
7+
8+
"declaration": true,
99
"sourceMap": true,
10-
"noEmitHelpers": true,
11-
"strictNullChecks": false,
12-
"outDir": "lib",
10+
11+
"outDir": "../lib",
12+
1313
"lib": [
1414
"dom",
1515
"es6"
@@ -26,13 +26,7 @@
2626
},
2727
"exclude": [
2828
"node_modules",
29-
"lib"
30-
],
31-
"awesomeTypescriptLoaderOptions": {
32-
"forkChecker": true,
33-
"useWebpackText": true
34-
},
35-
"compileOnSave": false,
36-
"buildOnSave": false,
37-
"atom": { "rewriteTsconfig": false }
29+
"lib",
30+
"**/*.spec.ts"
31+
]
3832
}

0 commit comments

Comments
 (0)