Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
76c99e9
docs(cb-third-party-lib) create a third party lib
thelgevold Oct 16, 2016
38a9000
addressing PR review items
thelgevold Nov 7, 2016
21bc5eb
minor copy-edits
filipesilva Feb 28, 2017
e1423e7
update example
filipesilva Mar 2, 2017
9435b65
add intro, download
filipesilva Mar 22, 2017
1f24d04
add core file descriptions
filipesilva Mar 22, 2017
ed14ce0
add entry points and build step
filipesilva Mar 22, 2017
423e6f5
add testing
filipesilva Mar 22, 2017
a73370f
add publishing
filipesilva Mar 22, 2017
4fce4b8
add AOT and JIT appendix
filipesilva Mar 22, 2017
8657312
remove old example
filipesilva Mar 22, 2017
9bbc128
whitespace
filipesilva Mar 22, 2017
274a207
add v4 message
filipesilva Mar 22, 2017
0f65921
add dep management
filipesilva Mar 22, 2017
e2e7738
whitespace
filipesilva Mar 22, 2017
aef571f
add externals/globals note
filipesilva Mar 22, 2017
5bf5337
fix headers
filipesilva Mar 22, 2017
3ef8d45
add example
filipesilva Mar 22, 2017
d38aedc
remove unused changes
filipesilva Mar 22, 2017
2e9bfbd
spelling
filipesilva Mar 23, 2017
97a7df0
line breaks
filipesilva Mar 23, 2017
24455bc
emphasize package format over starter
filipesilva Mar 23, 2017
d0f6209
put aot first
filipesilva Mar 23, 2017
50cbb91
add note about customization
filipesilva Mar 23, 2017
59a80e0
add preliminary folder structure
filipesilva Mar 23, 2017
c5e7de3
update folder struture
filipesilva Mar 23, 2017
e9e8898
add a couple more points to library maintenance
filipesilva Mar 23, 2017
9961bdc
rename a file
filipesilva Mar 23, 2017
c121cb3
add sourcemaps note
filipesilva Mar 23, 2017
31b1f50
add consumer table
filipesilva Mar 23, 2017
f801cfd
update layout, add checklist
filipesilva Mar 27, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update example
  • Loading branch information
filipesilva committed Mar 27, 2017
commit e1423e71d44796baba5e7cb78644db179631fd60
4 changes: 1 addition & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ var regularPlunker = require(path.resolve(TOOLS_PATH, 'plunker-builder/regularPl
var embeddedPlunker = require(path.resolve(TOOLS_PATH, 'plunker-builder/embeddedPlunker'));
var fsUtils = require(path.resolve(TOOLS_PATH, 'fs-utils/fsUtils'));

var publish = require(path.resolve(EXAMPLES_PATH + '/cb-third-party-lib/hero-profile/publish'));

const WWW = argv.page ? 'www-pages' : 'www'

const isSilent = !!argv.silent;
Expand Down Expand Up @@ -448,7 +446,7 @@ gulp.task('add-example-boilerplate', function() {
fsUtils.addSymlink(realPath, linkPath);
});

publish().then(() => copyExampleBoilerplate());
return copyExampleBoilerplate();
});


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
bundles/
dist/
node_modules/
src/**/*.ngfactory.ts
src/**/*.ngsummary.json
src/**/*.ngstyle.ts
debug.log
npm-debug.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Ignore eveything by default.
/*

# Only publish these files/folders:
!bundles/
!dist/
!LICENSE
!package.json
!README.md

This file was deleted.

This file was deleted.

38 changes: 28 additions & 10 deletions public/docs/_examples/cb-third-party-lib/hero-profile/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,32 @@
{
"name": "hero-profile",
"version": "0.0.1",
"version": "1.0.0",
"description": "",
"main": "bundles/hero-profile.umd.js",
"module": "index.js",
"typings": "index.d.ts",
"module": "dist/index.js",
"typings": "dist/index.d.ts",
"author": "",
"licenses": [
{
"type": "MIT",
"url": "https://github.com/angular/angular.io/blob/master/LICENSE"
}
]
}
"license": "MIT",
"repository": {},
"scripts": {
"prebuild": "npm run clean",
"build": "ngc && node copy-dist-files.js && rollup -c rollup-config.js",
"clean": "rimraf bundles dist dist-spec src/**/*.ngfactory.ts src/**/*.ngsummary.json src/**/*.ngstyle.ts"
},
"peerDependencies": {
"@angular/core": ">=2.0.0 <5.0.0 || >=4.0.0-beta <5.0.0"
},
"devDependencies": {
"@angular/compiler": "^2.4.8",
"@angular/compiler-cli": "^2.4.8",
"@angular/core": "^2.4.8",
"@types/node": "^7.0.5",
"glob": "^7.1.1",
"rimraf": "^2.6.1",
"rollup": "^0.36.0",
"rollup-plugin-angular-inline": "^1.0.0",
"rxjs": "^5.0.1",
"typescript": "~2.0.10",
"zone.js": "^0.7.2"
}
}
59 changes: 0 additions & 59 deletions public/docs/_examples/cb-third-party-lib/hero-profile/publish.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
// #docregion
import angularInline from 'rollup-plugin-angular-inline';

export default {
entry: './public/docs/_examples/cb-third-party-lib/hero-profile/index.js',
dest: './public/docs/_examples/cb-third-party-lib/hero-profile/bundles/hero-profile.umd.js',
entry: './dist/index.js',
dest: './bundles/hero-profile.umd.js',
format: 'umd',
moduleName: 'ng.heroProfile',
moduleName: 'heroProfile',
globals: {
'@angular/core': 'ng.core'
}
}
},
plugins: [
angularInline({ include: './dist/**/*.component.js' })
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// #docregion
export { HeroProfileComponent } from './lib/hero-profile.component';
export { HeroProfileModule } from './lib/hero-profile.module';
export { Hero } from './lib/hero';
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"outDir": "dist/",
"target": "es5",
"module": "es2015",
"moduleResolution": "node",
Expand All @@ -8,15 +9,13 @@
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"noImplicitAny": true,
"typeRoots": [
"../../node_modules/@types/"
"suppressImplicitAnyIndexErrors": true,
"lib": [
"es2015",
"dom"
]
},
"files": [
"index.ts"
],
"angularCompilerOptions": {
"genDir": "aot",
"skipMetadataEmit" : false
"skipMetadataEmit": false
}
}
}
8 changes: 8 additions & 0 deletions public/docs/_examples/cb-third-party-lib/ts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
aot/**/*.ts
**/*.ngfactory.ts
**/*.ngsummary.json
**/*.metadata.json
**/*.js
dist
!app/tsconfig.json
!rollup-config.js
22 changes: 22 additions & 0 deletions public/docs/_examples/cb-third-party-lib/ts/aot/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!-- #docregion -->
<!DOCTYPE html>
<html>
<head>
<base href=/proxy/https/github.com/angular/angular.io/pull/3411/commits/&quot;/&quot;&gt;%3C/span>
<title>Angular Tour of Heroes</title>
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet" href=/proxy/https/github.com/angular/angular.io/pull/3411/commits/&quot;styles.css&quot;&gt;%3C/span>

<script src=/proxy/https/github.com/angular/angular.io/pull/3411/commits/&quot;shim.min.js&quot;&gt;&lt;/script&gt;%3C/span>
<script src=/proxy/https/github.com/angular/angular.io/pull/3411/commits/&quot;zone.min.js&quot;&gt;&lt;/script&gt;%3C/span>
<!-- #docregion moduleId -->
<script>window.module = 'aot';</script>
<!-- #enddocregion moduleId -->
</head>

<body>
<my-app>Loading...</my-app>
</body>
<script src=/proxy/https/github.com/angular/angular.io/pull/3411/commits/&quot;dist/build.js&quot;&gt;&lt;/script&gt;%3C/span>
</html>
Loading