Skip to content
This repository was archived by the owner on Jan 5, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
root = true

[*]
indent_style = tab
# indent_size =
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
Expand Down
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"rules": {
"indent": [
"error",
"tab",
2,
{ "SwitchCase": 1 }
],
"linebreak-style": [
Expand Down
6 changes: 3 additions & 3 deletions env.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
'API_BASE_URL': JSON.stringify('https://concerns.stage.lafayette.edu'),
'AUTH_BASE_URL': JSON.stringify('http://authority.lafayette.edu/ns'),
'SEARCH_BASE_URL': JSON.stringify('https://concerns.stage.lafayette.edu/catalog.json')
'API_BASE_URL': JSON.stringify('https://concerns.stage.lafayette.edu'),
'AUTH_BASE_URL': JSON.stringify('http://authority.lafayette.edu/ns'),
'SEARCH_BASE_URL': JSON.stringify('https://concerns.stage.lafayette.edu/catalog.json')
}
202 changes: 101 additions & 101 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,105 +1,105 @@
const webpack = require('webpack')

module.exports = function(config) {
config.set({

// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',


// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['mocha'],


// list of files / patterns to load in the browser
files: [
'test.webpack.js'
],


// list of files to exclude
exclude: [
],

// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
'test.webpack.js': [ 'webpack', 'sourcemap' ],
},

webpack: {
module: {
loaders: [
{
test: /\.jsx?$/,
loader: 'babel-loader',
query: {
presets: ['es2015', 'react']
},
},
{
test: /\.json$/,
loader: 'json-loader',
},
{
test: /\.txt$/,
loader: 'raw-loader',
},
{
test: /\.css$/,
loader: 'css-loader',
},
],
},
externals: {
'react/addons': true,
'react/lib/ExecutionEnvironment': true,
'react/lib/ReactContext': true,
},
plugins: [
new webpack.DefinePlugin({
'process.env': {
API_BASE_URL: JSON.stringify('http://example.org'),
AUTH_BASE_URL: JSON.stringify('http://auth.example.org/ns'),
SEARCH_BASE_URL: JSON.stringify('/catalog.json'),
},
})
],
devtool: '#inline-source-map',
node: {
fs: 'empty',
}
},
webpackServer: {
noInfo: true,
},

// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['mocha'],

// web server port
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_INFO,

// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: [
'PhantomJS',
],

// Concurrency level
// how many browser should be started simultaneous
concurrency: Infinity
})
config.set({

// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',


// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['mocha'],


// list of files / patterns to load in the browser
files: [
'test.webpack.js'
],


// list of files to exclude
exclude: [
],

// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
'test.webpack.js': [ 'webpack', 'sourcemap' ],
},

webpack: {
module: {
loaders: [
{
test: /\.jsx?$/,
loader: 'babel-loader',
query: {
presets: ['es2015', 'react']
},
},
{
test: /\.json$/,
loader: 'json-loader',
},
{
test: /\.txt$/,
loader: 'raw-loader',
},
{
test: /\.css$/,
loader: 'css-loader',
},
],
},
externals: {
'react/addons': true,
'react/lib/ExecutionEnvironment': true,
'react/lib/ReactContext': true,
},
plugins: [
new webpack.DefinePlugin({
'process.env': {
API_BASE_URL: JSON.stringify('http://example.org'),
AUTH_BASE_URL: JSON.stringify('http://auth.example.org/ns'),
SEARCH_BASE_URL: JSON.stringify('/catalog.json'),
},
})
],
devtool: '#inline-source-map',
node: {
fs: 'empty',
}
},
webpackServer: {
noInfo: true,
},

// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['mocha'],

// web server port
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_INFO,

// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: [
'PhantomJS',
],

// Concurrency level
// how many browser should be started simultaneous
concurrency: Infinity
})
}
Loading