bash-3.2$ lerna bootstrap
lerna bootstrap
lerna notice cli v3.20.2
lerna info Bootstrapping 3 packages
lerna info Symlinking packages and binaries
lerna success Bootstrapped 3 packages
bash-3.2$ npm run build
npm run build
> @accordproject/concerto-ui@ build /Users/jeromesimeon/git/gold/concerto-ui
> lerna exec -- npm run build
lerna notice cli v3.20.2
lerna info Executing command in 3 packages: "npm run build"
> @accordproject/[email protected] build /Users/jeromesimeon/git/gold/concerto-ui/packages/concerto-ui-core
> rm -rf dist && NODE_ENV=production babel src --out-dir dist --ignore '**/*.spec.js,**/*.test.js,samples,__snapshots__,**/*.stories.js'
Successfully compiled 4 files with Babel.
> @accordproject/[email protected] build /Users/jeromesimeon/git/gold/concerto-ui/packages/concerto-ui-react
> rm -rf dist && NODE_ENV=production babel src --out-dir dist --copy-files --ignore '**/*.spec.js,**/*.test.js,samples,__snapshots__,**/*.stories.js'
Successfully compiled 6 files with Babel.
> @accordproject/[email protected] build /Users/jeromesimeon/git/gold/concerto-ui/packages/concerto-ui-react-demo
> react-scripts build
Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade`
Compiled successfully.
File sizes after gzip:
290.16 KB build/static/js/2.0c104230.chunk.js
97.26 KB build/static/css/2.0554bc4f.chunk.css
7.42 KB build/static/js/main.8ff4c625.chunk.js
762 B build/static/js/runtime~main.a8a9905a.js
456 B build/static/css/main.c681997c.chunk.css
The project was built assuming it is hosted at the server root.
You can control this with the homepage field in your package.json.
For example, add this to build it for GitHub Pages:
"homepage" : "http://myname.github.io/myapp",
The build folder is ready to be deployed.
You may serve it with a static server:
npm install -g serve
serve -s build
Find out more about deployment here:
https://bit.ly/CRA-deploy
lerna success exec Executed command in 3 packages: "npm run build"
bash-3.2$ npm run demo:react
npm run demo:react
> @accordproject/concerto-ui@ demo:react /Users/jeromesimeon/git/gold/concerto-ui
> cd packages/concerto-ui-react-demo && npm run start
> @accordproject/[email protected] start /Users/jeromesimeon/git/gold/concerto-ui/packages/concerto-ui-react-demo
> react-scripts start
�[3JStarting the development server...
Browserslist: caniuse-lite is outdated. Please run next command `yarn upgrade`
�[3JCompiled successfully!
You can now view @accordproject/concerto-ui-react-demo in the browser.
Local: http://localhost:3000/
On Your Network: http://10.0.1.8:3000/
Note that the development build is not optimized.
To create a production build, use npm run build.
bash-3.2$ pwd
pwd
/Users/jeromesimeon/git/gold/concerto-ui
bash-3.2$