@n1k1t/mock-server 0.1.47 → 0.1.49
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/lib/package.json +4 -3
- package/lib/webpack.config.d.ts.map +1 -1
- package/lib/webpack.config.js +39 -18
- package/lib/webpack.config.js.map +1 -1
- package/package.json +4 -3
- package/public/index.html +2 -3
- package/public/scripts/app.js +2 -0
- package/public/scripts/styles.js +1 -0
- package/public/scripts/main.js +0 -2539
- package/public/styles/main.css +0 -1042
- package/webpack.config.ts +0 -72
- /package/public/scripts/{main.js.LICENSE.txt → app.js.LICENSE.txt} +0 -0
package/webpack.config.ts
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import LiveReloadPlugin from 'webpack-livereload-plugin';
|
|
2
|
-
import path from 'path';
|
|
3
|
-
|
|
4
|
-
import { Configuration } from 'webpack';
|
|
5
|
-
|
|
6
|
-
import { TFunction } from './src/types';
|
|
7
|
-
import { cast } from './src/utils';
|
|
8
|
-
|
|
9
|
-
class LiveReloadWebpackPlugin extends LiveReloadPlugin {
|
|
10
|
-
apply(compiler: any) {
|
|
11
|
-
return super.apply(compiler);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export default cast<TFunction<Configuration[], [object, Pick<Configuration, 'mode'>]>>((env, options) => {
|
|
16
|
-
if (options.mode === 'development') {
|
|
17
|
-
require('./test');
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
return [
|
|
21
|
-
{
|
|
22
|
-
name: 'app',
|
|
23
|
-
target: 'web',
|
|
24
|
-
|
|
25
|
-
entry: path.join(__dirname, 'src', 'gui', 'app', 'main.ts'),
|
|
26
|
-
output: {
|
|
27
|
-
filename: 'main.js',
|
|
28
|
-
path: path.join(__dirname, 'public', 'scripts'),
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
module: {
|
|
32
|
-
rules: [{
|
|
33
|
-
test: /\.ts$/i,
|
|
34
|
-
loader: 'ts-loader',
|
|
35
|
-
|
|
36
|
-
options: {
|
|
37
|
-
configFile: path.join(__dirname, 'src', 'gui', 'app', 'tsconfig.json'),
|
|
38
|
-
},
|
|
39
|
-
}],
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
resolve: {
|
|
43
|
-
extensions: ['.js', '.ts', '.json', '.hbs'],
|
|
44
|
-
|
|
45
|
-
fallback: {
|
|
46
|
-
fs: false,
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
plugins: [new LiveReloadWebpackPlugin()],
|
|
51
|
-
},
|
|
52
|
-
// {
|
|
53
|
-
// name: 'app',
|
|
54
|
-
// target: 'web',
|
|
55
|
-
|
|
56
|
-
// entry: path.join(__dirname, 'src', 'gui', 'styles', 'main.scss'),
|
|
57
|
-
// output: {
|
|
58
|
-
// filename: 'main.css',
|
|
59
|
-
// path: path.join(__dirname, 'public', 'styles'),
|
|
60
|
-
// },
|
|
61
|
-
|
|
62
|
-
// module: {
|
|
63
|
-
// rules: [{
|
|
64
|
-
// test: /\.(sa|sc|c)ss$/i,
|
|
65
|
-
// use: ['style-loader', 'css-loader', 'sass-loader'],
|
|
66
|
-
// }],
|
|
67
|
-
// },
|
|
68
|
-
|
|
69
|
-
// plugins: [new LiveReloadWebpackPlugin()],
|
|
70
|
-
// }
|
|
71
|
-
];
|
|
72
|
-
});
|
|
File without changes
|