Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //webpack.config.js
- const path = require('path');
- module.exports = {
- entry: path.join(__dirname, './src/app.ts'),
- output: {
- filename: 'app.js',
- path: __dirname
- },
- module: {
- rules: [
- {
- test: /.tsx?$/,
- loader: 'ts-loader',
- exclude: /node_modules/,
- },
- ]
- },
- resolve: {
- extensions: [".tsx", ".ts", ".js"]
- },
- };
- //tsconfig.json
- {
- "compilerOptions": {
- "module": "commonjs",
- "target": "es5",
- "lib": ["es2018", "dom"],
- "sourceMap": true
- },
- "exclude": [
- "node_modules"
- ]
- }
- //package.json
- {
- "name": "gym-system",
- "version": "1.0.0",
- "description": "",
- "private": true,
- "scripts": {
- "start": "webpack-dev-server",
- "test": "echo "Error: no test specified" && exit 1"
- },
- "keywords": [],
- "author": "",
- "license": "ISC",
- "dependencies": {
- "body-parser": "^1.19.0",
- "express": "^4.16.4",
- "knex": "^0.16.5",
- "objection": "^1.6.8",
- "tiny-lr": "^1.1.1",
- "tslint": "^5.18.0"
- },
- "devDependencies": {
- "@types/express": "^4.16.1",
- "@types/lodash": "^4.14.136",
- "objection": "^1.6.8",
- "pg": "^7.10.0",
- "ts-loader": "^6.0.4",
- "tslint-config-airbnb": "^5.11.1",
- "typescript": "^2.9.2",
- "webpack": "^4.36.1",
- "webpack-cli": "^3.3.6",
- "webpack-dev-server": "^3.7.2"
- }
- }
- Estrutura do projeto
- -src
- --app.ts
- -webpackconfig.js
- -package.json
- -tsconfig.json
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement