Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit c3cb57d

Browse files
committed
update example
1 parent 1bc3fd6 commit c3cb57d

29 files changed

+273
-290
lines changed

gulpfile.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ var regularPlunker = require(path.resolve(TOOLS_PATH, 'plunker-builder/regularPl
5151
var embeddedPlunker = require(path.resolve(TOOLS_PATH, 'plunker-builder/embeddedPlunker'));
5252
var fsUtils = require(path.resolve(TOOLS_PATH, 'fs-utils/fsUtils'));
5353

54-
var publish = require(path.resolve(EXAMPLES_PATH + '/cb-third-party-lib/hero-profile/publish'));
55-
5654
const WWW = argv.page ? 'www-pages' : 'www'
5755

5856
const isSilent = !!argv.silent;
@@ -447,7 +445,7 @@ gulp.task('add-example-boilerplate', function() {
447445
fsUtils.addSymlink(realPath, linkPath);
448446
});
449447

450-
publish().then(() => copyExampleBoilerplate());
448+
return copyExampleBoilerplate();
451449
});
452450

453451

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
bundles/
2+
dist/
3+
node_modules/
4+
src/**/*.ngfactory.ts
5+
src/**/*.ngsummary.json
6+
src/**/*.ngstyle.ts
7+
debug.log
8+
npm-debug.log
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Ignore eveything by default.
2+
/*
3+
4+
# Only publish these files/folders:
5+
!bundles/
6+
!dist/
7+
!LICENSE
8+
!package.json
9+
!README.md

public/docs/_examples/cb-third-party-lib/hero-profile/index.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

public/docs/_examples/cb-third-party-lib/hero-profile/inline-resources.js

Lines changed: 0 additions & 137 deletions
This file was deleted.
Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,32 @@
11
{
22
"name": "hero-profile",
3-
"version": "0.0.1",
3+
"version": "1.0.0",
4+
"description": "",
45
"main": "bundles/hero-profile.umd.js",
5-
"module": "index.js",
6-
"typings": "index.d.ts",
6+
"module": "dist/index.js",
7+
"typings": "dist/index.d.ts",
78
"author": "",
8-
"licenses": [
9-
{
10-
"type": "MIT",
11-
"url": "https://github.com/angular/angular.io/blob/master/LICENSE"
12-
}
13-
]
14-
}
9+
"license": "MIT",
10+
"repository": {},
11+
"scripts": {
12+
"prebuild": "npm run clean",
13+
"build": "ngc && node copy-dist-files.js && rollup -c rollup-config.js",
14+
"clean": "rimraf bundles dist dist-spec src/**/*.ngfactory.ts src/**/*.ngsummary.json src/**/*.ngstyle.ts"
15+
},
16+
"peerDependencies": {
17+
"@angular/core": ">=2.0.0 <5.0.0 || >=4.0.0-beta <5.0.0"
18+
},
19+
"devDependencies": {
20+
"@angular/compiler": "^2.4.8",
21+
"@angular/compiler-cli": "^2.4.8",
22+
"@angular/core": "^2.4.8",
23+
"@types/node": "^7.0.5",
24+
"glob": "^7.1.1",
25+
"rimraf": "^2.6.1",
26+
"rollup": "^0.36.0",
27+
"rollup-plugin-angular-inline": "^1.0.0",
28+
"rxjs": "^5.0.1",
29+
"typescript": "~2.0.10",
30+
"zone.js": "^0.7.2"
31+
}
32+
}

public/docs/_examples/cb-third-party-lib/hero-profile/publish.js

Lines changed: 0 additions & 59 deletions
This file was deleted.
Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
// #docregion
2+
import angularInline from 'rollup-plugin-angular-inline';
3+
24
export default {
3-
entry: './public/docs/_examples/cb-third-party-lib/hero-profile/index.js',
4-
dest: './public/docs/_examples/cb-third-party-lib/hero-profile/bundles/hero-profile.umd.js',
5+
entry: './dist/index.js',
6+
dest: './bundles/hero-profile.umd.js',
57
format: 'umd',
6-
moduleName: 'ng.heroProfile',
8+
moduleName: 'heroProfile',
79
globals: {
810
'@angular/core': 'ng.core'
9-
}
10-
}
11+
},
12+
plugins: [
13+
angularInline({ include: './dist/**/*.component.js' })
14+
]
15+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// #docregion
2+
export { HeroProfileComponent } from './lib/hero-profile.component';
3+
export { HeroProfileModule } from './lib/hero-profile.module';
4+
export { Hero } from './lib/hero';

0 commit comments

Comments
 (0)