-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
major changes following Minko's brief guide
- Loading branch information
Jason Hodges
committed
Apr 27, 2017
1 parent
8924ac6
commit 2b95fa0
Showing
24 changed files
with
146 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,4 +37,6 @@ jspm_packages | |
.node_repl_history | ||
|
||
.idea | ||
build | ||
typings | ||
dist | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,5 @@ Thumbs.db | |
!*.d.ts | ||
|
||
docs | ||
src | ||
src | ||
*.ngfactory.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
language: node_js | ||
node_js: stable | ||
cache: | ||
directories: | ||
- node_modules | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { ngxGist } from './ngx-gist'; | ||
export { ngxGist }; | ||
export declare class MainModule { | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
|
||
import { NgxGist } from './ngx-gist'; | ||
|
||
@NgModule({ | ||
imports: [CommonModule], | ||
declarations: [NgxGist], | ||
exports: [NgxGist] | ||
}) | ||
export class NgxGistModule { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export default { | ||
format: 'umd', | ||
moduleName: 'ngx-gist', | ||
external: [ | ||
'@angular/core', | ||
'@angular/common' | ||
], | ||
onwarn: ( warning ) => { | ||
const skip_codes = [ | ||
'THIS_IS_UNDEFINED', | ||
'MISSING_GLOBAL_NAME' | ||
]; | ||
if ( skip_codes.indexOf(warning.code) != -1 ) return; | ||
console.error(warning); | ||
} | ||
}; |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { writeFileSync, readFileSync } from 'fs'; | ||
|
||
const packageJson = JSON.parse(readFileSync('./dist/package.json').toString()); | ||
delete packageJson.devDependencies; | ||
delete packageJson.scripts; | ||
writeFileSync('./dist/package.json', JSON.stringify(packageJson, null, 2)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,17 @@ | ||
{ | ||
"compilerOptions": { | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"target": "es5", | ||
"module": "es2015", | ||
"moduleResolution": "node", | ||
"removeComments": true, | ||
"sourceMap": true, | ||
"outDir": "../lib", | ||
"moduleResolution": "node", | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"stripInternal": true, | ||
"declaration": true, | ||
"outDir": "./dist", | ||
"lib": ["es2015", "dom"] | ||
}, | ||
"files": [ | ||
"../src/ngx-gist.component.ts" | ||
], | ||
"exclude": [ | ||
"node_modules" | ||
], | ||
"angularCompilerOptions": { | ||
"skipTemplateCodegen": true | ||
} | ||
"./lib/ngx-gist.module.ts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es5", | ||
"module": "commonjs", | ||
"sourceMap": true, | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"stripInternal": true, | ||
"declaration": true, | ||
"outDir": "./dist", | ||
"lib": ["es2015", "dom"], | ||
"typeRoots": [ | ||
"./node_modules/@types", | ||
"./node_modules" | ||
], | ||
"types": [ | ||
"node" | ||
] | ||
}, | ||
"files": [ | ||
"./lib/ngx-gist.module.ts" | ||
], | ||
"angularCompilerOptions": { | ||
"skipTemplateCodegen": true | ||
} | ||
} |