generator-smag

generator-smag for Solid webapps

generator-smag

generator-smag for Solid webapps, provide :

prerequis

# change permission
sudo chown -R $USER {path}
#example
sudo chown -R $USER /usr/local/lib/node_modules

install

one line :

npm install -g yo && mkdir cool-app && cd cool-app && npm install -g generator-smag && yo smag && npm run dev

or progressively :

npm install -g yo
mkdir cool-app && cd cool-app
npm install -g generator-smag
yo smag
npm run dev

npm run build

make a gh-pages branches & publish to gh-pages

https://stackoverflow.com/questions/36782467/set-subdirectory-as-website-root-on-github-pages

create subbranch with dist folder

git add dist -f && git commit -m "Initial dist subtree commit"
npm run build && git subtree push --prefix dist origin gh-pages


just for me

npm publish –access public

debug

https://yeoman.io/authoring/debugging.html