@infosoftas/s4-orders-js-sdk 0.0.1-alpha1 → 0.0.1-alpha1b

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/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # INFO-Subscription JS/TS Order SDK
2
+
3
+ Currently a work in progress
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infosoftas/s4-orders-js-sdk",
3
- "version" : "0.0.1-alpha1",
3
+ "version": "0.0.1-alpha1b",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && webpack --env mode=production"
6
6
  },
package/.prettierignore DELETED
@@ -1 +0,0 @@
1
- node_modules
package/.prettierrc.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "trailingComma": "es5",
3
- "tabWidth": 4,
4
- "semi": true,
5
- "singleQuote": true,
6
- "endOfLine": "auto"
7
- }
package/tsconfig.json DELETED
@@ -1,41 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es5",
4
- "lib": ["dom", "dom.iterable", "esnext"],
5
- "downlevelIteration": true,
6
- "allowJs": true,
7
- "checkJs": false,
8
- "skipLibCheck": true,
9
- "esModuleInterop": true,
10
- "allowSyntheticDefaultImports": true,
11
- "strict": true,
12
- "forceConsistentCasingInFileNames": true,
13
- "noFallthroughCasesInSwitch": true,
14
- "module": "esnext",
15
- "moduleResolution": "node",
16
- "resolveJsonModule": true,
17
- "isolatedModules": false,
18
- "noEmit": false,
19
- "noImplicitAny": true,
20
- "jsx": "react-jsx",
21
- "baseUrl": "src",
22
- "sourceMap": true,
23
- "inlineSources": true,
24
- "sourceRoot": "/",
25
- "paths": {
26
- "*": ["*"],
27
- "API": ["api"],
28
- "API/*": ["api/*"],
29
- "Component/*": ["components/*"],
30
- "Utils/*": ["utils/*"],
31
- "Hooks/*": ["hooks/*"],
32
- "Models/*": ["models/*"],
33
- "Types/*": ["types/*"],
34
- "Enums/*": ["enums/*"],
35
- "Constants/*": ["constants/*"],
36
- "Assets/*": ["assets/*"]
37
- }
38
- },
39
- "include": ["src"],
40
- "exclude": ["node_modules"]
41
- }
package/webpack.config.js DELETED
@@ -1,103 +0,0 @@
1
- const path = require('path');
2
- const MiniCssExtractPlugin = require('mini-css-extract-plugin');
3
- const Dotenv = require('dotenv-webpack');
4
-
5
- const envEnum = {
6
- qa: 'qa',
7
- dev: 'dev',
8
- prod: 'production',
9
- };
10
-
11
- module.exports = (env) => {
12
- const enableSourceMap = env.mode === 'dev' ? true : false;
13
-
14
- return {
15
- mode: env.mode,
16
- target: 'web',
17
- entry: './src/index.tsx',
18
- devtool: enableSourceMap ? 'inline-source-map' : false,
19
- experiments: {
20
- outputModule: true,
21
- },
22
- resolve: {
23
- extensions: ['.js', '.jsx', '.ts', '.tsx'],
24
- alias: {
25
- Src: path.resolve(__dirname, 'src'),
26
- API: path.resolve(__dirname, 'src/api'),
27
- Component: path.resolve(__dirname, 'src/components'),
28
- Utils: path.resolve(__dirname, 'src/utils'),
29
- Hooks: path.resolve(__dirname, 'src/hooks'),
30
- Models: path.resolve(__dirname, 'src/models'),
31
- Types: path.resolve(__dirname, 'src/types'),
32
- Enums: path.resolve(__dirname, 'src/enums'),
33
- Constants: path.resolve(__dirname, 'src/constants'),
34
- Assets: path.resolve(__dirname, 'src/assets'),
35
- },
36
- },
37
- output: {
38
- filename: 'script.js',
39
- path: path.resolve(__dirname, 'dist'),
40
- publicPath: '/',
41
- library: {
42
- type: 'module',
43
- },
44
- clean: true,
45
- asyncChunks: false,
46
- },
47
- plugins: [
48
- new MiniCssExtractPlugin({
49
- filename: 'css/style.css',
50
- }),
51
- new Dotenv({
52
- path: `./.env.${
53
- env.mode === envEnum.prod ? 'prod' : env.mode || 'prod'
54
- }`, // Path to .env file (this is the default)
55
- safe: false, // load .env.example (defaults to "false" which does not use dotenv-safe)
56
- }),
57
- ],
58
- module: {
59
- rules: [
60
- {
61
- test: /\.(js|jsx)$/,
62
- exclude: /node_modules/,
63
- use: {
64
- loader: 'babel-loader',
65
- options: {
66
- presets: [
67
- '@babel/preset-env',
68
- '@babel/preset-react',
69
- '@babel/preset-typescript',
70
- ],
71
- },
72
- },
73
- },
74
- {
75
- test: /\.(ts|tsx)$/,
76
- exclude: /node_modules/,
77
- use: ['ts-loader'],
78
- },
79
- {
80
- test: /\.scss$/,
81
- use: [
82
- {
83
- loader: 'style-loader',
84
- },
85
- {
86
- loader: 'css-loader', // translates CSS into CommonJS
87
- options: { sourceMap: enableSourceMap },
88
- },
89
- {
90
- loader: 'sass-loader', // compiles Scss to CSS
91
- options: {
92
- sourceMap: enableSourceMap,
93
- sassOptions: {
94
- javascriptEnabled: true,
95
- },
96
- },
97
- },
98
- ],
99
- },
100
- ],
101
- },
102
- };
103
- };