refactor(build): explicitly mention src folder in imports
Export files are now directly under the module folder, e.g. `core/core.js`. With this, an import like `core/core` won’t need a path mapping (e.g. via `System.paths`) any more. This adds the `src` folder to all other import statements as well.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
var benchpress = require('../../../../tools/benchpress/index.js');
|
||||
describe('hello world', function () {
|
||||
fdescribe('hello world', function () {
|
||||
|
||||
afterEach(benchpress.verifyNoBrowserErrors);
|
||||
|
||||
describe('static reflection', function() {
|
||||
var URL = 'examples/web/hello_world/index_static.html';
|
||||
var URL = 'examples/src/hello_world/index_static.html';
|
||||
|
||||
it('should greet', function() {
|
||||
browser.get(URL);
|
||||
@@ -21,7 +21,7 @@ describe('hello world', function () {
|
||||
});
|
||||
|
||||
describe('dynamic reflection', function() {
|
||||
var URL = 'examples/web/hello_world/index.html';
|
||||
var URL = 'examples/src/hello_world/index.html';
|
||||
|
||||
it('should greet', function() {
|
||||
browser.get(URL);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import * as app from './index_common';
|
||||
import {reflector} from 'reflection/reflection';
|
||||
import {ReflectionCapabilities} from 'reflection/reflection_capabilities';
|
||||
import {reflector} from 'reflection/src/reflection';
|
||||
import {ReflectionCapabilities} from 'reflection/src/reflection_capabilities';
|
||||
|
||||
export function main() {
|
||||
// Initializing the reflector is only required for the Dart version of the application.
|
||||
|
||||
@@ -2,13 +2,13 @@ import * as app from './index_common';
|
||||
|
||||
import {Component, Decorator, TemplateConfig, NgElement} from 'angular/angular';
|
||||
import {Lexer, Parser, ChangeDetection, ChangeDetector} from 'change_detection/change_detection';
|
||||
import {LifeCycle} from 'core/life_cycle/life_cycle';
|
||||
import {LifeCycle} from 'core/src/life_cycle/life_cycle';
|
||||
|
||||
import {Compiler, CompilerCache} from 'core/compiler/compiler';
|
||||
import {DirectiveMetadataReader} from 'core/compiler/directive_metadata_reader';
|
||||
import {TemplateLoader} from 'core/compiler/template_loader';
|
||||
import {Compiler, CompilerCache} from 'core/src/compiler/compiler';
|
||||
import {DirectiveMetadataReader} from 'core/src/compiler/directive_metadata_reader';
|
||||
import {TemplateLoader} from 'core/src/compiler/template_loader';
|
||||
|
||||
import {reflector} from 'reflection/reflection';
|
||||
import {reflector} from 'reflection/src/reflection';
|
||||
|
||||
function setup() {
|
||||
reflector.registerType(app.HelloCmp, {
|
||||
|
||||
Reference in New Issue
Block a user