1.0.1 • Published 5 years ago
@trigram/template-lite v1.0.1
New Project
Bootstrapped with Create Snowpack App (CSA) - trigram-template-lite
- Snowpack dev server
- React
- Typescript
- Tailwind - configured via postcss
- @ alias for src/
- Opinionated view structure
Changes from @snowpack/template-react-typescript
Tailwind support
- @snowpack/plugin-postcss (depends on
postcss&postcss-cli)
- @snowpack/plugin-postcss (depends on
- postcss.config.js - requires
tailwindcssandautoprefixer
- postcss.config.js - requires
- tailwind.config.js - config & theme file for tailwind
- /src/index.css includes tailwind postcss modules
- /src/views/App.tsx uses tailwind classes
Alias
@alias for/srcallows absolute access to/srcroot from anywhere- added in
snowpack.config.jsaliasconfig - added in
tsconfig.jsonpathconfig
Structure
- More opinionated structure,
/viewsand/componentsunder/ui
Components
- Added simple Button and Header components as well as HBox & VBox layout convenience components
- TODO: More complete themeable skeleton component set
util
- Added css utility for working with tailwind
TODO
- Add Image optimization
- Accessibility
Available Scripts
npm start
Runs the app in the development mode. Open http://localhost:8080 to view it in the browser.
The page will reload if you make edits. You will also see any lint errors in the console.
npm run build
Builds a static copy of your site to the build/ folder.
Your app is ready to be deployed!
For the best production performance: Add a build bundler plugin like "@snowpack/plugin-webpack" to your snowpack.config.js config file.
npm test
Launches the application test runner.
Run with the --watch flag (npm test -- --watch) to run in interactive watch mode.