Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "andmattia"

Hi this is the output

Ok thanks for your reply.

Answer

Ok thanks for your support

Answer

Hi

I know that MongoDb is not supported but geneally speking is not possibile register a second UnitOfWork?

@maliming

it works, so now I need to publish on my private NPM this version beacuse every time to compile NPM overvrite the abp.js on base node_module dirs.

Any suggestion?

Hi

  1. download a AngularJs solution
  2. install NPM packege
  3. use webpack like const path = require('path');
module.exports = {
    entry: "./src/index.ts",
    //output: {
    //    filename: "../libs/custom/bundle.js"
    //},
    output: {
        path: path.resolve(__dirname, 'libs/custom'),
        filename: '[name].js'
    },
    resolve: {
        // Add '.ts' and '.tsx' as a resolvable extension.
        extensions: [".webpack.js", ".web.js", ".ts", ".tsx", ".js"]
    },
    optimization: {
        splitChunks: {
            chunks: 'all',
        },
    },
    module: {
        rules: [
            {
                test: /\.tsx?$/,
                exclude: [/node_modules/],
                loader: "ts-loader",
                //options: {
                //    configFile: "webpack_configs/tsconfig.webpack.json"
                //}
            }
        ]
    }
};
  1. add bundle.js vendor.js in layout.cshtml at the end
  @Scripts.Render("~/Bundles/App/metronic/js")
    @Scripts.Render("~/Bundles/Common/js")
    @Scripts.Render("~/Bundles/App/js")
    <script src="~/libs/custom/bundle.js"></script>

bundle need to be compile for prduction

"scripts": {
    "test": "echo",
    "compileTsc": "tsc",
    "dev": "rimraf dist && webpack --bail --progress --profile --mode development --display-error-details",
    "prod": "rimraf dist && webpack --mode production --progress"
  },

Hi

Yes I think is releted to this PR

Answer

Hi

thanks for suggestion.

I also need to ad a webpack script to works.!

Regards

Answer

Hi

thanks for the link but I see that is abp.d.ts file not a @types.

If I don't put on node_module/@type/abp/index.d.ts when I use on TS file i give the error error TS2688: Cannot find type definition file for 'abp'.

on my ts file

import * as angular from 'angular';
import * as abp from 'abp';

also I need to modify abp.d.ts file on top with this row

export as namespace abp;

declare const abp: abp;
export = abp;

declare namespace abp {

    let appPath: string;

Hi

I test a single call 1st and 2nd time and single call is around 443 ms about TTFB time. So if I call a whole site the time are that I attach on my screen shot above. Any idea?

Showing 41 to 50 of 136 entries