0.0.18 • Published 8 years ago
@mindhive/richtext v0.0.18
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 package
- yarn buildbuilds all packages not- ignored
- yarn clean:builddeletes all compiled packages
- yarn clean:allruns- clean:buildthen deletes all- node_modulesfor all packages and the project
- yarn 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 buildbuilds- src/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 to- ignore
 
- runs the 
- yarn testruns the- testscript 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 runs- clean: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 source0.0.18
8 years ago
0.0.17
8 years ago
0.0.16
8 years ago
0.0.15
8 years ago
0.0.14
8 years ago
0.0.13
8 years ago
0.0.12
8 years ago
0.0.11
8 years ago
0.0.10
8 years ago
0.0.9
8 years ago
0.0.8
8 years ago
0.0.7
8 years ago
0.0.6
8 years ago
0.0.5
8 years ago
0.0.4
8 years ago
0.0.3
8 years ago
0.0.2
8 years ago
0.0.1
8 years ago
0.0.0
8 years ago