Git Product home page Git Product logo

subpackage's People

Contributors

dupski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

subpackage's Issues

Yarn support

Hey I really like this module as it makes package.json configuration for project nice and tidy.

I have only one question - have you considered supporting yarn (maybe based on existance of yarn.lock file)?

Stop executing script when `--watch` found

I just started using this package, I must say its super cool. So far I found one blocker. When I was trying sudo npm run start-local from root dir it stopped executing the commands the moment it found --watch.

Here are the package.json:
Parent package.json:
"scripts": { "postinstall": "subpkg install", "build": "subpkg run clean; subpkg run build", "postbuild": "cp -r client/dist/* server/build/public; cp package.json server/build/", "start": "node index.js", "start-local": "subpkg run clean; subpkg run start" },

client package.json:
"scripts": { "postinstall": "echo client packages installed", "start": "npm-run-all --parallel test:watch open:src lint:watch", "open:src": "babel-node ./tools/srcServer", "lint:watch": "npm run lint -- --watch", "clean": "npm run remove-dist && mkdir dist", "remove-dist": "rimraf ./dist", "build": "babel-node tools/build.js", }

server package.json:
"scripts": { "postinstall": "echo server packages installed", "build:watch": "npm run build --watch", "clean": "rimraf build && mkdir -p build/public", "lint": "esw -f simple-detail --color src", "lint:watch": "npm run lint -- --watch", "prestart:dev": "npm run build", "serve:src": "babel-watch ./src/index.js", "start": "npm-run-all --parallel serve:src lint:watch" }

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.