Skip to content
This repository was archived by the owner on Jul 3, 2024. It is now read-only.

Commit 4c37eb4

Browse files
committed
Initial Commit
0 parents  commit 4c37eb4

29 files changed

+5299
-0
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.idea/
2+
!.idea/codeStyleSettings.xml
3+
4+
node_modules/
5+
npm-debug.log
6+
7+
lib/

.npmignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.git/
2+
.idea/
3+
node_modules/
4+
npm-debug.log
5+
6+
src/
7+
test/
8+
9+
.gitignore
10+
.npmignore
11+
12+
index.ts
13+
14+
tsconfig.json
15+
tslint.json
16+
17+
webpack.config.js
18+
karma.conf.js

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# @normalized-db/denormalizer
2+
3+
Denormalize `JavaScript` objects from a normalized data structure based on a simple schema
4+
(implemented with `TypeScript`).
5+
6+
**Author**: Sandro Schmid <[email protected]>
7+
8+
---
9+
10+
**Note**: This library is under active development and not completely ready yet.
11+
12+
---
13+
14+
## Installation
15+
16+
- `npm install --save @normalized-db/denormalizer`

index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './src';

karma.conf.js

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
const webpackConfig = require('./webpack.config.js');
2+
3+
module.exports = function (config) {
4+
config.set({
5+
6+
// base path that will be used to resolve all patterns (eg. files, exclude)
7+
basePath: '',
8+
9+
// frameworks to use
10+
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
11+
frameworks: ['mocha'],
12+
13+
// list of files / patterns to load in the browser
14+
files: [
15+
'lib/index.js',
16+
'test/**/*.spec.ts'
17+
],
18+
19+
// list of files to exclude
20+
exclude: [],
21+
22+
// webpack configuration
23+
webpack: {
24+
devtool: 'inline-source-map',
25+
module: webpackConfig.module,
26+
resolve: webpackConfig.resolve
27+
},
28+
29+
webpackMiddleware: {
30+
quiet: true,
31+
stats: {
32+
colors: true
33+
}
34+
},
35+
36+
// preprocess matching files before serving them to the browser
37+
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
38+
preprocessors: {
39+
'**/*.spec.ts': ['webpack', 'sourcemap']
40+
},
41+
42+
// test results reporter to use
43+
// possible values: 'dots', 'progress'
44+
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
45+
reporters: ['mocha'],
46+
47+
// web server port
48+
port: 9876,
49+
50+
// enable / disable colors in the output (reporters and logs)
51+
colors: true,
52+
53+
// level of logging
54+
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
55+
logLevel: config.LOG_INFO,
56+
57+
// enable / disable watching file and executing tests whenever any file changes
58+
autoWatch: true,
59+
60+
// start these browsers
61+
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
62+
browsers: ['Chrome'],
63+
64+
// Continuous Integration mode
65+
// if true, Karma captures browsers, runs the tests and exits
66+
singleRun: false,
67+
68+
// Concurrency level
69+
// how many browser should be started simultaneous
70+
concurrency: Infinity
71+
});
72+
};

0 commit comments

Comments
 (0)