Commit 82644e44 authored by Rosanny Sihombing's avatar Rosanny Sihombing
Browse files

add babel

parent 3d43fe71
{
"presets": [
"@babel/preset-env", "@babel/preset-typescript", "minify"
]
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -18,10 +18,11 @@
"scripts": {
"start:dev": "nodemon ./src/app.ts",
"start": "nodemon ./built/app.js",
"build": "tsc -build",
"clean": "tsc -build --clean",
"test": "jest",
"clean-code": "ts-standard --fix"
"clean-code": "ts-standard --fix",
"check-types": "tsc --noEmit",
"clean": "rm -rf ./built",
"build": "babel src --out-dir built --extensions .ts --copy-files"
},
"dependencies": {
"async": "^3.1.0",
......@@ -47,6 +48,10 @@
"pug": "^3.0.2"
},
"devDependencies": {
"@babel/cli": "^7.18.6",
"@babel/core": "^7.18.6",
"@babel/preset-env": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@types/async": "^3.2.6",
"@types/bcryptjs": "^2.4.2",
"@types/compression": "^1.7.0",
......@@ -63,9 +68,12 @@
"@types/nodemailer": "^6.4.1",
"@types/passport": "^1.0.6",
"@types/passport-strategy": "^0.2.35",
"@types/supertest": "^2.0.12",
"@types/xml2js": "^0.4.8",
"babel-preset-minify": "^0.5.2",
"jest": "^28.1.1",
"nodemon": "^2.0.1",
"supertest": "^6.2.3",
"ts-jest": "^28.0.5",
"ts-node": "^9.1.1",
"ts-standard": "^11.0.0",
......
{
"exclude": ["node_modules", "__test", "jest.config.js"],
"compilerOptions": {
"target": "es6",
// Target latest version of ECMAScript.
"target": "esnext",
// Search under node_modules for non-relative imports.
"moduleResolution": "node",
"module": "commonjs",
"rootDir": "./",
"outDir": "./built",
"esModuleInterop": true,
// Enable strictest settings like strictNullChecks & noImplicitAny.
"strict": true,
"allowJs": true
}
// Disallow features that require cross-file information for emit. Ensure that Babel can safely transpile files in the TypeScript project
"isolatedModules": true,
// Import non-ES modules as default imports.
"esModuleInterop": true,
// Process & infer types from .js files.
"allowJs": true,
// Don't emit; allow Babel to transform files.
"noEmit": true
},
"include": [
"src"
]
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment