Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Moecube Store
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Moecube Store
Commits
27ee0d71
Commit
27ee0d71
authored
May 03, 2016
by
Foxandxss
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: add systemjs.config.js
parent
c15f1a74
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
0 deletions
+51
-0
.gitignore
.gitignore
+1
-0
systemjs.config.js
systemjs.config.js
+50
-0
No files found.
.gitignore
View file @
27ee0d71
...
@@ -13,3 +13,4 @@ _temp
...
@@ -13,3 +13,4 @@ _temp
!karma*.js
!karma*.js
!protractor*.js
!protractor*.js
!wallaby.js
!wallaby.js
!systemjs.config.js
systemjs.config.js
0 → 100644
View file @
27ee0d71
/**
* System configuration for Angular 2 samples
* Adjust as necessary for your application needs.
* Override at the last minute with global.filterSystemConfig (as plunkers do)
*/
(
function
(
global
)
{
// map tells the System loader where to look for things
var
map
=
{
'
app
'
:
'
app
'
,
// 'dist',
'
rxjs
'
:
'
node_modules/rxjs
'
,
'
angular2-in-memory-web-api
'
:
'
node_modules/angular2-in-memory-web-api
'
,
'
@angular
'
:
'
node_modules/@angular
'
};
// packages tells the System loader how to load when no filename and/or no extension
var
packages
=
{
'
app
'
:
{
main
:
'
main.js
'
,
defaultExtension
:
'
js
'
},
'
rxjs
'
:
{
defaultExtension
:
'
js
'
},
'
angular2-in-memory-web-api
'
:
{
defaultExtension
:
'
js
'
},
};
var
packageNames
=
[
'
@angular/common
'
,
'
@angular/compiler
'
,
'
@angular/core
'
,
'
@angular/http
'
,
'
@angular/platform-browser
'
,
'
@angular/platform-browser-dynamic
'
,
'
@angular/router-deprecated
'
,
'
@angular/testing
'
,
'
@angular/upgrade
'
,
];
// add package entries for angular packages in the form '@angular/common': { main: 'index.js', defaultExtension: 'js' }
packageNames
.
forEach
(
function
(
pkgName
)
{
packages
[
pkgName
]
=
{
main
:
'
index.js
'
,
defaultExtension
:
'
js
'
};
});
var
config
=
{
map
:
map
,
packages
:
packages
}
// filterSystemConfig - index.html's chance to modify config before we register it.
if
(
global
.
filterSystemConfig
)
{
global
.
filterSystemConfig
(
config
);
}
System
.
config
(
config
);
})(
this
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment