0.1.9 • Published 12 months ago

testchatbotai v0.1.9

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

ChatbotAI-test

Step per creare la libreria:

  • Creare un repository
  • Lanciare il comando npm init e inserire i dati richiesti. Questo processo andrà a creare il file package.json
  • Installare le dipendenze necessarie:
    • React: npm install react react-dom
    • Babel/webpack: npm install --save-dev babel-loader @babel/core @babel/preset-env @babel/preset-react webpack webpack-cli webpack-dev-server
    • Typescript (opzionale ma consigliato): npm install --save-dev typescript @types/react @types/react-dom
  • Configurazione Babel:
    • Crea un file di configurazione Babel babel.config.js:
      module.exports = {
          presets: ["@babel/preset-env", "@babel/preset-react"]
      };
  • Configurazione webpack:
    • Crea un file di configurazione Webpack webpack.config.js:
      const path = require('path');
      module.exports = {
          entry: './src/index.js',
          output: {
              path: path.resolve(__dirname, 'dist'),
              filename: 'index.js',
              library: 'MyReactComponents',
              libraryTarget: 'umd',
              umdNamedDefine: true
          },
          module: {
              rules: [
              {
               test: /\.js$/,
                  exclude: /node_modules/,
                  use: {
                      loader: 'babel-loader'
                  }
              }
              ]
          },
          resolve: {
              extensions: ['.js', '.jsx']
          },
          externals: {
           react: {
                  commonjs: 'react',
                  commonjs2: 'react',
                  amd: 'react',
                  root: 'React'
              }
          }
      };
0.1.9

12 months ago

0.1.8

12 months ago

0.1.7

12 months ago

0.1.6

12 months ago

0.1.5

12 months ago

0.1.4

12 months ago

0.1.3

12 months ago

0.1.2

12 months ago

0.1.1

12 months ago

0.1.0

12 months ago