Require jquery and bootstrap
parent
9c5f6f7e6d
commit
5691605ca6
|
@ -253,6 +253,15 @@
|
|||
"type-is": "~1.6.15"
|
||||
}
|
||||
},
|
||||
"bootstrap": {
|
||||
"version": "4.0.0-alpha.6",
|
||||
"resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-4.0.0-alpha.6.tgz",
|
||||
"integrity": "sha1-T1TdM6wN6sOyhAe8LffsYIhpycg=",
|
||||
"requires": {
|
||||
"jquery": ">=1.9.1",
|
||||
"tether": "^1.4.0"
|
||||
}
|
||||
},
|
||||
"brace-expansion": {
|
||||
"version": "1.1.8",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz",
|
||||
|
@ -2383,6 +2392,11 @@
|
|||
"isarray": "1.0.0"
|
||||
}
|
||||
},
|
||||
"jquery": {
|
||||
"version": "3.3.1",
|
||||
"resolved": "https://registry.npmjs.org/jquery/-/jquery-3.3.1.tgz",
|
||||
"integrity": "sha512-Ubldcmxp5np52/ENotGxlLe6aGMvmF4R8S6tZjsP6Knsaxd/xp3Zrh50cG93lR6nPXyUFwzN3ZSOQI0wRJNdGg=="
|
||||
},
|
||||
"json-loader": {
|
||||
"version": "0.5.7",
|
||||
"resolved": "https://registry.npmjs.org/json-loader/-/json-loader-0.5.7.tgz",
|
||||
|
@ -3584,6 +3598,11 @@
|
|||
"resolved": "https://registry.npmjs.org/tapable/-/tapable-0.2.8.tgz",
|
||||
"integrity": "sha1-mTcqXJmb8t8WCvwNdL7U9HlIzSI="
|
||||
},
|
||||
"tether": {
|
||||
"version": "1.4.4",
|
||||
"resolved": "https://registry.npmjs.org/tether/-/tether-1.4.4.tgz",
|
||||
"integrity": "sha512-bagKeRRo3vEynHnO3GB7/jB3Q4YIf0mN7gXM/nR0wZvNHkPrwmZemg1w0C32JZP0prHZUwxGwoX5CdA7tuIDEw=="
|
||||
},
|
||||
"through": {
|
||||
"version": "2.3.8",
|
||||
"resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
|
||||
|
|
|
@ -18,7 +18,9 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@types/express": "^4.11.0",
|
||||
"bootstrap": "^4.0.0-alpha.6",
|
||||
"express": "^4.16.2",
|
||||
"jquery": "^3.3.1",
|
||||
"ts-loader": "^3.2.0",
|
||||
"twig": "^1.12.0",
|
||||
"typescript": "^2.6.2"
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
var webpack = require('webpack');
|
||||
var path = require('path');
|
||||
var fs = require('fs');
|
||||
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
|
||||
|
||||
var nodeModules = {};
|
||||
fs.readdirSync('node_modules')
|
||||
.filter(function (x) {
|
||||
return ['.bin'].indexOf(x) === -1;
|
||||
})
|
||||
.forEach(function (mod) {
|
||||
nodeModules[mod] = 'commonjs ' + mod;
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
entry: './src/index.ts',
|
||||
target: 'node',
|
||||
output: {
|
||||
filename: 'index.js',
|
||||
path: path.resolve(__dirname, 'dist')
|
||||
},
|
||||
devtool: 'source-map',
|
||||
plugins: [
|
||||
new UglifyJsPlugin({
|
||||
test: /\.js($|\?)/i
|
||||
})
|
||||
],
|
||||
resolve: {
|
||||
// Add `.ts` and `.tsx` as a resolvable extension.
|
||||
extensions: ['.ts', '.tsx', '.js']
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
// all files with a `.ts` or `.tsx` extension will be handled by `ts-loader`
|
||||
{ test: /\.tsx?$/, loader: 'ts-loader' }
|
||||
]
|
||||
},
|
||||
externals: nodeModules
|
||||
};
|
Loading…
Reference in New Issue