Microfrontends shell with Piral
$ brew install node@14 node-sass
* For now, the node should install version 14 or earlier since the laste sass does not support the version 15 of node.
$ npm i piral-cli -g
$ npm i
$ npm run build
$ npm run docker
* you can skip this step if you need not sub sites
The url in code should be replaced to real pilet service if you want to use remote pilet service.
Currently, we use local 'sample-pilet-service' for developing.
const feedUrl = 'http://localhost:9000/api/v1/pilet';
-
To install 'sample-pilet-service'
$ npm install sample-pilet-service -g
-
Launch 'sample-pilet-service'
$ sample-pilet-service
$ npm run start
- If you meet following errors, please install or re-install Xcode Command Line Tool
To install Xcode Command Line Tool
npm ERR! No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'. npm ERR! npm ERR! No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'. npm ERR! npm ERR! No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'. npm ERR! npm ERR! gyp: No Xcode or CLT version detected!
To re-install Xcode Command Line Tool$ xcode-select --install
$ sudo rm -rf $(xcode-select -print-path) $ xcode-select --install