dupski / subpackage Goto Github PK
View Code? Open in Web Editor NEWUtility for managing NodeJS projects with sub-packages
License: MIT License
Utility for managing NodeJS projects with sub-packages
License: MIT License
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)?
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" }
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.