npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

amplify-form-vue

v0.2.1

Published

"sass": "^1.57.1" "@syncfusion/ej2-base": "^20.4.44", "@syncfusion/ej2-data": "^20.4.44", "@syncfusion/ej2-inputs": "^20.4.42", "@syncfusion/ej2-vue-base": "^20.4.42", "@syncfusion/ej2-vue-buttons": "^20.4.44", "bootstrap": "^5.2.3", "bootstrap-icons": "^

Downloads

32

Readme

dependencias

"sass": "^1.57.1" "@syncfusion/ej2-base": "^20.4.44", "@syncfusion/ej2-data": "^20.4.44", "@syncfusion/ej2-inputs": "^20.4.42", "@syncfusion/ej2-vue-base": "^20.4.42", "@syncfusion/ej2-vue-buttons": "^20.4.44", "bootstrap": "^5.2.3", "bootstrap-icons": "^1.10.3", "@syncfusion/ej2-vue-inputs": "^20.4.42", "vue-class-component": "^8.0.0-rc.1" Pacote instalavel para criar formulários e grid s de forma fácil baseado no

dicas pro eu do futuro como fazer pacote instalavel

adicionei essa essas configs no vite.config.ts->defineConfig ao lado de plugins

build: {
    lib: {
      entry: resolve(__dirname, "src/index.ts"),
      name: 'amplify-form-vue',
      fileName: (format) => `amplify-form-vue.${format}.ts`,
    },
    rollupOptions: {
      // make sure to externalize deps that shouldn't be bundled
      // into your library
      external: [
        'vue',
        '@aws-amplify/api',
        'aws-amplify',
        '@syncfusion/ej2-base',
        '@syncfusion/ej2-data',
        '@syncfusion/ej2-inputs',
        '@syncfusion/ej2-vue-base',
        '@syncfusion/ej2-vue-buttons',
        '@syncfusion/ej2-vue-inputs',
        "bootstrap",
        "bootstrap-icons",
        "lodash",
        "lodash.debounce",
        "@syncfusion/ej2-vue-grids",
        "cpf-cnpj-validator"
      ],
      output: {
        // Provide global variables to use in the UMD build
        // for externalized deps
        
        globals: {
          vue: 'Vue',
          '@syncfusion/ej2-base': '@syncfusion/ej2-base',
          '@syncfusion/ej2-data': '@syncfusion/ej2-data',
          '@syncfusion/ej2-inputs': '@syncfusion/ej2-inputs',
          '@syncfusion/ej2-vue-base': '@syncfusion/ej2-vue-base',
          '@syncfusion/ej2-vue-buttons': '@syncfusion/ej2-vue-buttons',
          '@syncfusion/ej2-vue-inputs': '@syncfusion/ej2-vue-inputs',
          "bootstrap": "bootstrap",
          "bootstrap-icons": "bootstrap-icons",
          "lodash": "lodash",
          "lodash.debounce": "lodash.debounce",
          '@aws-amplify/api': '@aws-amplify/api',
          'aws-amplify': 'aws-amplify',
          "@syncfusion/ej2-vue-grids":"@syncfusion/ej2-vue-grids",
          "cpf-cnpj-validator":"cpf-cnpj-validator"
        }
      }
    }
  }

em tsconfig.json->compilerOptions vou testar se precisa adicionar: //TODO

   "outDir": "dist",
    "declaration": true,
    "sourceMap": true

em package.json adicionei:

...
   "type":"module",
   //add a paritr daqui
   "files":[
      "dist"
   ],
   "main": "./dist/<NOME>.umd.cjs",
   "module": "./dist/<NOME>.es.js",
   "types": "./dist/index.d.ts",
   "exports": {
      ".": {
         "import": "./dist/<NOME>.es.js",
         "require": "./dist/<NOME>.umd.ts"
      },
      "./dist/style.scss": "./dist/style.scss"
   },

substituindo pelo nome do pacote, no caso, amplify-grid-form-vue