Giter Site home page Giter Site logo

pika-plugin-minify's People

Contributors

michael-klein avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pika-plugin-minify's Issues

tries to minify index.js file in dist-types... But there isn't one.

When I add pika-plugin-minify to my pika build pipeline I get the following error:

Error: ENOENT: no such file or directory, open '/Users/marklyck/colony/colony-ui/pkg/dist-types/index.js'

My library is build with Typescript and this is my pika setup:

"@pika/pack": {
        "pipeline": [
            ["@pika/plugin-ts-standard-pkg"],
            ["@pika/plugin-build-web"],
            ["pika-plugin-minify"]
        ]
    },

nothing special... But yet this minify plugin is trying to minify a non-existent index.js file in the types output?

This is completely preventing me from using pika for any production ready code.

Full output:

[5/6] Running pika-plugin-minify...
internal/fs/utils.js:220
    throw err;
    ^

Error: ENOENT: no such file or directory, open '/Users/marklyck/colony/colony-ui/pkg/dist-types/index.js'
    at Object.openSync (fs.js:440:3)
    at Object.readFileSync (fs.js:342:35)
    at /Users/marklyck/colony/colony-ui/node_modules/pika-plugin-minify/dist-node/index.js:71:27
    at FSReqCallback.oncomplete (fs.js:159:5) {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: '/Users/marklyck/colony/colony-ui/pkg/dist-types/index.js'
}
Error: Command failed with exit code 1 (EPERM): npx pika-pack
    at makeError (/usr/local/lib/node_modules/@pika/cli/node_modules/execa/lib/error.js:59:11)
    at handlePromise (/usr/local/lib/node_modules/@pika/cli/node_modules/execa/index.js:112:26)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async runExternalCommand (/usr/local/lib/node_modules/@pika/cli/dist-node/index.js:83:5)
    at async cli (/usr/local/lib/node_modules/@pika/cli/dist-node/index.js:141:43)
(base)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.