chore: rename modules/examples to modules/playground

The directory contains code authored in a style that makes it transpilable to dart. As such, these are not idiomatic examples of Angular 2 usage.

The main purpose of this directory is to enable experimentation with Angular within the angular/angular repository.

Closes #4342

Closes #4639
This commit is contained in:
kutyel
2015-10-10 00:25:17 +02:00
committed by Flavio Corpa Ríos
parent c3ab20cc87
commit e4e74ae65c
248 changed files with 190 additions and 190 deletions

View File

@ -36,34 +36,34 @@ const kServedPaths = [
'benchmarks_external/src/static_tree',
// Relative (to /modules) paths to example directories
'examples/src/animate',
'examples/src/benchpress',
'examples/src/model_driven_forms',
'examples/src/template_driven_forms',
'examples/src/person_management',
'examples/src/order_management',
'examples/src/gestures',
'examples/src/hello_world',
'examples/src/http',
'examples/src/jsonp',
'examples/src/key_events',
'examples/src/routing',
'examples/src/sourcemap',
'examples/src/todo',
'examples/src/zippy_component',
'examples/src/async',
'examples/src/material/button',
'examples/src/material/checkbox',
'examples/src/material/dialog',
'examples/src/material/grid_list',
'examples/src/material/input',
'examples/src/material/progress-linear',
'examples/src/material/radio',
'examples/src/material/switcher',
'examples/src/web_workers/kitchen_sink',
'examples/src/web_workers/todo',
'examples/src/web_workers/images',
'examples/src/web_workers/message_broker'
'playground/src/animate',
'playground/src/benchpress',
'playground/src/model_driven_forms',
'playground/src/template_driven_forms',
'playground/src/person_management',
'playground/src/order_management',
'playground/src/gestures',
'playground/src/hello_world',
'playground/src/http',
'playground/src/jsonp',
'playground/src/key_events',
'playground/src/routing',
'playground/src/sourcemap',
'playground/src/todo',
'playground/src/zippy_component',
'playground/src/async',
'playground/src/material/button',
'playground/src/material/checkbox',
'playground/src/material/dialog',
'playground/src/material/grid_list',
'playground/src/material/input',
'playground/src/material/progress-linear',
'playground/src/material/radio',
'playground/src/material/switcher',
'playground/src/web_workers/kitchen_sink',
'playground/src/web_workers/todo',
'playground/src/web_workers/images',
'playground/src/web_workers/message_broker'
];
@ -106,7 +106,7 @@ module.exports = function makeBrowserTree(options, destinationPath) {
};
modulesTree = replace(modulesTree, {
files: ["examples*/**/*.js"],
files: ["playground*/**/*.js"],
patterns: [{match: /\$SCRIPTS\$/, replacement: jsReplace('SCRIPTS')}]
});
@ -177,10 +177,10 @@ module.exports = function makeBrowserTree(options, destinationPath) {
return funnels;
}
var htmlTree = new Funnel(modulesTree,
{include: ['*/src/**/*.html', '**/examples/**/*.html'], destDir: '/'});
var htmlTree = new Funnel(
modulesTree, {include: ['*/src/**/*.html', '**/playground/**/*.html'], destDir: '/'});
htmlTree = replace(htmlTree, {
files: ['examples*/**/*.html'],
files: ['playground*/**/*.html'],
patterns: [
{match: /\$SCRIPTS\$/, replacement: htmlReplace('SCRIPTS')},
scriptPathPatternReplacement,
@ -210,7 +210,7 @@ module.exports = function makeBrowserTree(options, destinationPath) {
// We need to replace the regular angular bundle with the web-worker bundle
// for web-worker e2e tests.
htmlTree = replace(htmlTree, {
files: ['examples*/**/web_workers/**/*.html'],
files: ['playground*/**/web_workers/**/*.html'],
patterns: [{match: "/bundle/angular2.dev.js", replacement: "/bundle/web_worker/ui.dev.js"}]
});

View File

@ -18,10 +18,10 @@ var global_excludes = [
'angular2/examples/*/ts/**/*',
'angular2/src/http/**/*',
'angular2/test/http/**/*',
'examples/src/http/**/*',
'examples/test/http/**/*',
'examples/src/jsonp/**/*',
'examples/test/jsonp/**/*',
'playground/src/http/**/*',
'playground/test/http/**/*',
'playground/src/jsonp/**/*',
'playground/test/jsonp/**/*',
'upgrade/**/*'
];
@ -79,8 +79,8 @@ function fixDartFolderLayout(sourceTree) {
{pattern: /^benchmarks\//, insertion: 'web'},
{pattern: /^benchmarks_external\/test\//, insertion: ''},
{pattern: /^benchmarks_external\//, insertion: 'web'},
{pattern: /^examples\/test\//, insertion: ''},
{pattern: /^examples\//, insertion: 'web/'},
{pattern: /^playground\/test\//, insertion: ''},
{pattern: /^playground\//, insertion: 'web/'},
{pattern: /^[^\/]*\/test\//, insertion: ''},
{pattern: /^./, insertion: 'lib'}, // catch all.
];
@ -115,7 +115,7 @@ function getHtmlSourcesTree() {
function getExamplesJsonTree() {
// Copy JSON files
return modulesFunnel(['examples/**/*.json']);
return modulesFunnel(['playground/**/*.json']);
}
@ -154,7 +154,7 @@ function getDocsTree() {
var docs = modulesFunnel(['**/*.md', '**/*.png', '**/*.html', '**/*.css', '**/*.scss'],
['**/*.js.md', '**/*.dart.md', 'angular1_router/**/*']);
var assets = modulesFunnel(['examples/**/*.json']);
var assets = modulesFunnel(['playground/**/*.json']);
return mergeTrees([licenses, mdTree, docs, assets]);
}