0.1.1 • Published 7 years ago
r-ts-wp-template v0.1.1
React Template
Getting Started
Install template:
1) create and navigate to folder for new component
2) run npm init or create package.json file manually
3) install latest or specific template package version:
npm install r-ts-wp-template@latest --no-save4) install automatically added dependencies
npm install5) enjoy
Running development server
Run webpack dev server (for assets):
npm startVisit http://localhost:3000/.
Building assets (index.html and bundle) for dev or prod
For development use
npm run devpack:server
npm run devpack:clientFor develompent watch client build
npm run devpack:client:watchFor production use
npm run prodpack:server
npm run prodpack:clientProfiling
For profile file creation use
npm run profileThen use created file stats.json for bundle analysis with means of https://alexkuz.github.io/webpack-chart/
Testing
--no-save