Coder Social home page Coder Social logo

Comments (2)

david-fong avatar david-fong commented on June 29, 2024 1

Hey Leslie! I see! Thanks for the comprehensive explanation. I really appreciate you writing that all out :) Feel free to close this issue.

from jssh.

lcfyi avatar lcfyi commented on June 29, 2024

Hey David, it is intentional. It's the unfortunate result of my CD pipeline.

I had originally wanted this project to be an npm package that handled the terminal interface for you (ie. you can inject your own config, and this package would handle all the I/O), but I reworked it when I realized I didn't actually want to publish a library. The rework resulted in the current plugin architecture that's dynamically initialized during the build process.

Currently, I use Netlify for the build and deployment but their CI/CD doesn't include the ability to define stages. Thus, I needed to chain commands together to simulate a test/build pipeline (ie. the testing and build stages shared the same dependencies). I had also originally wanted a pre-prod environment that I could deploy to, but when I tried setting NODE_ENV flags to differentiate the environments, the devDependencies wouldn't install on prod causing the chained build process to fail.

At that point I just shifted all the previous devDependencies into regular dependencies since it didn't make a huge difference for my deployment or development. I also discovered that Netlify's local toolchain worked pretty well so I abandoned bothering to set up stages. ¯\_(ツ)_/¯

tl;dr: yes, they can be devDependencies as long as NODE_ENV is not set to production.

from jssh.

Related Issues (11)

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.