Skip to content

Commit

Permalink
initial restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
antonybudianto committed May 25, 2016
1 parent b9a3c30 commit 62a5db9
Show file tree
Hide file tree
Showing 96 changed files with 6,515 additions and 32 deletions.
2 changes: 0 additions & 2 deletions assets/styles/bootstrap.scss

This file was deleted.

15 changes: 12 additions & 3 deletions gulp.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
var historyApiFallback = require('connect-history-api-fallback')

module.exports = function () {
var root = '';
var root = 'src/';
var app = root + 'app/';
var test = root + 'test/';
var tmp = root + 'tmp/';
var tmpApp = tmp + 'app/';
var tmpTest = tmp + 'test/';
var testHelper = test + 'test-helpers/';
var e2e = test + 'e2e/';
var tmpE2E = tmpTest + 'e2e/';
var assets = root + 'assets/';
var assetsPath = {
styles: assets + 'styles/',
Expand Down Expand Up @@ -41,8 +44,11 @@ module.exports = function () {
dev: {
port: 3000,
server: {
baseDir: './',
middleware: [historyApiFallback()]
baseDir: './src/',
middleware: [historyApiFallback()],
routes: {
"/node_modules": "node_modules"
}
},
files: [
"index.html",
Expand Down Expand Up @@ -81,6 +87,9 @@ module.exports = function () {
app: app,
test: test,
tmp: tmp,
tmpApp: tmpApp,
tmpTest: tmpTest,
tmpE2E: tmpE2E,
testHelper: testHelper,
e2e: e2e,
e2eConfig: e2eConfig,
Expand Down
2 changes: 1 addition & 1 deletion karma-test-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function onlySpecFiles(path) {
// Normalize paths to module names.
function file2moduleName(filePath) {
return filePath.replace(/\\/g, '/')
.replace(/^\/base\//, '')
.replace(/^\/base\/src\/tmp\//, '')
.replace(/\.js/, '');
}

Expand Down
29 changes: 14 additions & 15 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ module.exports = function(config) {
'systemjs', 'zone.js', 'font-awesome'
];
var configuration = {
basePath: '',
basePath: './',

frameworks: ['jasmine'],
browsers: ['PhantomJS'],
reporters: ['progress', 'coverage'],

preprocessors: {
'tmp/app/**/!(*.spec)+(.js)': ['coverage'],
'tmp/app/**/*.js': ['sourcemap'],
'tmp/test/**/*.js': ['sourcemap']
'src/tmp/app/**/!(*.spec)+(.js)': ['coverage'],
'src/tmp/app/**/*.js': ['sourcemap'],
'src/tmp/test/**/*.js': ['sourcemap']
},

// Generate json used for remap-istanbul
Expand All @@ -35,29 +35,28 @@ module.exports = function(config) {
'node_modules/zone.js/dist/fake-async-test.js',
'node_modules/systemjs/dist/system.src.js',

'tmp/test/test-helpers/global/**/*.js',
'systemjs.conf.js',
'src/tmp/test/test-helpers/global/**/*.js',
'src/systemjs.conf.js',
'karma-test-shim.js',

{ pattern: 'tmp/app/**/*.js', included: false },
{ pattern: 'tmp/test/test-helpers/*.js', included: false },
{ pattern: 'src/tmp/app/**/*.js', included: false },
{ pattern: 'src/tmp/test/test-helpers/*.js', included: false },

// paths loaded via Angular's component compiler
// (these paths need to be rewritten, see proxies section)
{ pattern: 'app/**/*.html', included: false },
{ pattern: 'app/**/*.css', included: false },
{ pattern: 'src/app/**/*.html', included: false },
{ pattern: 'src/app/**/*.css', included: false },

// paths to support debugging with source maps in dev tools
{ pattern: 'app/**/*.ts', included: false, watched: false },
{ pattern: 'tmp/app/**/*.js.map', included: false, watched: false }
{ pattern: 'src/app/**/*.ts', included: false, watched: false },
{ pattern: 'src/tmp/app/**/*.js.map', included: false, watched: false }
],

// proxied base paths
proxies: {
// required for component assests fetched by Angular's compiler
"/app/": "/base/app/",
"/tmp/app/": "/base/tmp/app/",
"/tmp/test/": "/base/tmp/test/",
"/app/": "/base/src/app/",
"/tmp/": "/base/src/tmp/",
"/node_modules/": "/base/node_modules/"
},

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
2 changes: 2 additions & 0 deletions src/assets/styles/bootstrap.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import 'bootstrap.variables';
@import '../../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap';
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 62a5db9

Please sign in to comment.