-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply new project base from change-project-base
- Loading branch information
Showing
82 changed files
with
1,193 additions
and
1,109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
|
||
# 2 space indentation | ||
[**.*] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
/__build__ | ||
/__server_build__ | ||
/node_modules | ||
/coverage | ||
node_modules/ | ||
.DS_Store | ||
npm-debug.log | ||
|
||
/dist/ | ||
/doc/ | ||
|
||
compiled/ | ||
dist/ | ||
coverage/ | ||
.idea | ||
.vscode | ||
yarn.lock | ||
/.vscode | ||
release/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
language: node_js | ||
|
||
node_js: | ||
- "6" | ||
- "node" | ||
- '6' | ||
- 'node' | ||
|
||
env: | ||
- CXX=g++-4.8 | ||
- CXX=g++-4.8 | ||
|
||
install: | ||
- ./install-peers.sh | ||
- npm install | ||
- npm install | ||
|
||
after_script: | ||
- codeclimate-test-reporter < coverage/lcov.info | ||
|
||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- g++-4.8 | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- g++-4.8 | ||
|
||
git: | ||
depth: 4 | ||
depth: 4 | ||
|
||
sudo: false | ||
sudo: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
Copyright (c) 2016, Makina Corpus | ||
All rights reserved. | ||
(The MIT License) | ||
|
||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
Copyright (c) 2016 Swimlane <[email protected]> | ||
|
||
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
Neither the name of the Makina Corpus nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. | ||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
'Software'), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,16 @@ | ||
/** | ||
* @author: @AngularClass | ||
*/ | ||
const path = require('path'); | ||
|
||
var path = require('path'); | ||
const ENV = process.env.NODE_ENV; | ||
const pkg = require('../package.json'); | ||
const ROOT = path.resolve(__dirname, '..'); | ||
|
||
// Helper functions | ||
var ROOT = path.resolve(__dirname, '..'); | ||
|
||
console.log('root directory:', root() + '\n'); | ||
|
||
function hasProcessFlag(flag) { | ||
return process.argv.join('').indexOf(flag) > -1; | ||
} | ||
|
||
function root(args) { | ||
exports.dir = function(args) { | ||
args = Array.prototype.slice.call(arguments, 0); | ||
return path.join.apply(path, [ROOT].concat(args)); | ||
} | ||
|
||
|
||
exports.hasProcessFlag = hasProcessFlag; | ||
exports.root = root; | ||
exports.ENV = JSON.stringify(ENV); | ||
exports.IS_PRODUCTION = ENV === 'production'; | ||
exports.IS_PACKAGE = ENV === 'package'; | ||
exports.IS_DEV = ENV === 'dev' || ENV === 'development'; | ||
exports.APP_VERSION = JSON.stringify(pkg.version); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,35 @@ | ||
module.exports = function(config) { | ||
var testWebpackConfig = require('./webpack.test.js'); | ||
const testWebpackConfig = require('./webpack.test'); | ||
|
||
config.set({ | ||
|
||
// base path that will be used to resolve all patterns (e.g. files, exclude) | ||
module.exports = function(config) { | ||
var configuration = { | ||
basePath: '', | ||
|
||
/* | ||
* Frameworks to use | ||
* | ||
* available frameworks: https://npmjs.org/browse/keyword/karma-adapter | ||
*/ | ||
singleRun: true, | ||
frameworks: ['jasmine'], | ||
|
||
// list of files to exclude | ||
exclude: [ ], | ||
|
||
/* | ||
* list of files / patterns to load in the browser | ||
* | ||
* we are building the test environment in ./spec-bundle.js | ||
*/ | ||
files: [ { pattern: './config/spec-bundle.js', watched: true} ], | ||
|
||
/* | ||
* preprocess matching files before serving them to the browser | ||
* available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor | ||
*/ | ||
preprocessors: { './config/spec-bundle.js': ['coverage', 'webpack', 'sourcemap'] }, | ||
|
||
// Webpack Config at ./webpack.test.js | ||
webpack: testWebpackConfig, | ||
|
||
coverageReporter: { | ||
dir : 'coverage/', | ||
reporters: [ | ||
{ type: 'text-summary' }, | ||
{ type: 'json' }, | ||
{ type: 'html' } | ||
] | ||
exclude: [], | ||
files: [ | ||
{ pattern: './config/spec-bundle.js', watched: false } | ||
], | ||
preprocessors: { | ||
'./config/spec-bundle.js': ['coverage', 'webpack', 'sourcemap'] | ||
}, | ||
|
||
// Webpack please don't spam the console when running in karma! | ||
webpackServer: { noInfo: true }, | ||
|
||
/* | ||
* test results reporter to use | ||
* | ||
* possible values: 'dots', 'progress' | ||
* available reporters: https://npmjs.org/browse/keyword/karma-reporter | ||
*/ | ||
reporters: [ 'mocha', 'coverage' ], | ||
|
||
// web server port | ||
webpack: testWebpackConfig({ env: 'test' }), | ||
webpackMiddleware: { stats: 'errors-only'}, | ||
reporters: [ 'mocha', 'coverage', 'remap-coverage' ], | ||
port: 9876, | ||
|
||
// enable / disable colors in the output (reporters and logs) | ||
colors: true, | ||
|
||
/* | ||
* level of logging | ||
* possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG | ||
*/ | ||
logLevel: config.LOG_DEBUG, | ||
|
||
// enable / disable watching file and executing tests whenever any file changes | ||
autoWatch: true, | ||
|
||
/* | ||
* start these browsers | ||
* available browser launchers: https://npmjs.org/browse/keyword/karma-launcher | ||
*/ | ||
browsers: [ | ||
// 'Chrome', | ||
'PhantomJS' | ||
], | ||
|
||
/* | ||
* Continuous Integration mode | ||
* if true, Karma captures browsers, runs the tests and exits | ||
*/ | ||
singleRun: true | ||
}); | ||
|
||
logLevel: config.LOG_INFO, | ||
autoWatch: false, | ||
browsers: ['PhantomJS'], | ||
coverageReporter: { | ||
type: 'in-memory' | ||
}, | ||
remapCoverageReporter: { | ||
'text-summary': null, | ||
json: './coverage/coverage.json', | ||
html: './coverage/html', | ||
lcovonly: './coverage/lcov.info' | ||
} | ||
}; | ||
|
||
config.set(configuration); | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const replace = require("replace"); | ||
const fs = require('fs-extra') | ||
|
||
/** | ||
* This replaces all the TypeScript references | ||
* to other types that for some reason TypeScript | ||
* keeps generating. This hack is insane ... | ||
*/ | ||
replace({ | ||
regex: '/// <reference types="core-js" />', | ||
replacement: '', | ||
paths: ['./release'], | ||
recursive: true, | ||
silent: false | ||
}); | ||
|
||
/** | ||
* ngc output pathing is totally wrong | ||
*/ | ||
fs.copySync('./release/src', './release'); | ||
fs.removeSync('./release/node_modules') | ||
fs.removeSync('./release/src') |
Oops, something went wrong.