0.0.28 • Published 8 years ago
@any-ui/firebase v0.0.28
Mindhive Packages
Monorepo for our NPM packages using Lerna and with inspiration from Bable and Jest
Getting started
- First thing run
yarn bootstrapto install npm dependencies, compile build scripts and build any packages
Basics
yarn new <package>creates a new packageyarn buildbuilds all packages notignoredyarn clean:builddeletes all compiled packagesyarn clean:allrunsclean:buildthen deletes allnode_modulesfor all packages and the projectyarn pubnot implemented yet....
Commands
in root dir
yarn bootstrapwill:- Clean any compiled code and npm packages
- Install all project and sub package npm dependencies
- Compile build scripts from ES6 source
- Compile all packages
yarn new package-name:- Creates
src/packages/package-name - Copies
./init/default-package->./packages/package-name - Runs
npm initin./packages/package-namepulling default values from./init/npm-init.js
- Creates
yarn buildbuildssrc/packages/*->./packages/*- runs the
build.jsscript - Iterates over
packagesbuilding each in turn - No need to update EVERY package if we change our build :)
mhpconfig,jsonsets packages toignore
- runs the
yarn testruns thetestscript in each package- By default, all test scripts point to
./scripts/test.sh No need to update EVERY package if we change our build :)
- By default, all test scripts point to
yarn clean:buildremoves all./packages/*yarn clean:allremoves all./node_modules&&./src/packages/*/node_modulesand runsclean:build
mhpconfig.json
{
"mindhive-packages": "0.0.1",
"ignore": [
"documents",
"richtext",
"styles"
],
"sourcePath": "./src/packages",
"outPath": "./packages",
"registry": "https://registry.npmjs.org/",
}Structure
root
|-compiled_scripts .... DON'T EDIT, see src/scripts
|-init .... template/defaults for new package
|-packages .... our COMPILED npm packages
|-src
|-- scripts .... scripts ES6 source
|-- packages .... packages ES6 source