@qikdev/sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitlab-ci.yml +13 -0
- package/README.md +25 -0
- package/jsdoc.conf +10 -0
- package/package.json +46 -0
- package/src/api/qik.access.js +92 -0
- package/src/api/qik.api.js +406 -0
- package/src/api/qik.auth.js +980 -0
- package/src/api/qik.cache.js +57 -0
- package/src/api/qik.core.js +173 -0
- package/src/api/qik.utils.js +667 -0
- package/src/index.js +13 -0
- package/test/index.spec.js +36 -0
- package/test/mocha.opts +0 -0
- package/webpack.config.js +63 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// // /* global describe, it, before */
|
|
2
|
+
|
|
3
|
+
// import chai from 'chai';
|
|
4
|
+
import Qik from '../src/index.js';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var qik = new Qik();
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
// chai.expect();
|
|
11
|
+
|
|
12
|
+
// const expect = chai.expect;
|
|
13
|
+
|
|
14
|
+
// let qik;
|
|
15
|
+
|
|
16
|
+
// describe('Load Qik Core', () => {
|
|
17
|
+
// before(() => {
|
|
18
|
+
// qik = new QikCore();
|
|
19
|
+
// });
|
|
20
|
+
// describe('When i try and start Qik', () => {
|
|
21
|
+
// it('It should return a Qik instance', () => {
|
|
22
|
+
// expect(qik.auth);//.to.be.equal('Cat');
|
|
23
|
+
// });
|
|
24
|
+
// });
|
|
25
|
+
// });
|
|
26
|
+
|
|
27
|
+
// // describe('Given an instance of my Dog library', () => {
|
|
28
|
+
// // before(() => {
|
|
29
|
+
// // lib = new Dog();
|
|
30
|
+
// // });
|
|
31
|
+
// // describe('when I need the name', () => {
|
|
32
|
+
// // it('should return the name', () => {
|
|
33
|
+
// // expect(lib.name).to.be.equal('Dog');
|
|
34
|
+
// // });
|
|
35
|
+
// // });
|
|
36
|
+
// // });
|
package/test/mocha.opts
ADDED
|
File without changes
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
const webpack = require('webpack');
|
|
3
|
+
// var JsDocPlugin = require('jsdoc-webpack-plugin-v2');
|
|
4
|
+
|
|
5
|
+
module.exports = {
|
|
6
|
+
entry: './src/index.js',
|
|
7
|
+
output: {
|
|
8
|
+
filename: 'index.js',
|
|
9
|
+
library: 'qik',
|
|
10
|
+
libraryTarget: 'umd',
|
|
11
|
+
libraryExport: 'default',
|
|
12
|
+
path: path.resolve(__dirname, 'dist'),
|
|
13
|
+
globalObject: 'typeof self !== \'undefined\' ? self : this',
|
|
14
|
+
},
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
// module.exports = () => {
|
|
18
|
+
// return {
|
|
19
|
+
// output: {
|
|
20
|
+
// path: path.resolve(__dirname, 'build'),
|
|
21
|
+
// filename: 'app.js',
|
|
22
|
+
// },
|
|
23
|
+
// entry: './src/index.js',
|
|
24
|
+
plugins: [
|
|
25
|
+
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
|
|
26
|
+
],
|
|
27
|
+
// };
|
|
28
|
+
// };
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
// plugins: [
|
|
33
|
+
// new JsDocPlugin(
|
|
34
|
+
// // {
|
|
35
|
+
// // conf:path.join(__dirname, 'jsdoc.json'),
|
|
36
|
+
// // }
|
|
37
|
+
// )
|
|
38
|
+
// ],
|
|
39
|
+
optimization: {
|
|
40
|
+
// splitChunks: {
|
|
41
|
+
// chunks: 'all'
|
|
42
|
+
// }
|
|
43
|
+
},
|
|
44
|
+
|
|
45
|
+
externals: {
|
|
46
|
+
'axios': {
|
|
47
|
+
commonjs: 'axios',
|
|
48
|
+
commonjs2: 'axios',
|
|
49
|
+
amd: 'axios',
|
|
50
|
+
root: 'axios'
|
|
51
|
+
},
|
|
52
|
+
'axios-extensions': {
|
|
53
|
+
commonjs: 'axios-extensions',
|
|
54
|
+
commonjs2: 'axios-extensions',
|
|
55
|
+
amd: 'axios-extensions',
|
|
56
|
+
root: 'axios-extensions'
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
// output: {
|
|
60
|
+
// filename: 'main.js',
|
|
61
|
+
// path: path.resolve(__dirname, 'dist')
|
|
62
|
+
// }
|
|
63
|
+
};
|