Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/argyleink/shortstack
🥞 minimal Rollup + PostCSS modern syntax starter template
https://github.com/argyleink/shortstack
babel babel-preset-env bundler postcss postcss-preset-env rollup
Last synced: 5 days ago
JSON representation
🥞 minimal Rollup + PostCSS modern syntax starter template
- Host: GitHub
- URL: https://github.com/argyleink/shortstack
- Owner: argyleink
- Created: 2018-06-19T04:48:24.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-01-09T14:43:06.000Z (almost 2 years ago)
- Last Synced: 2024-10-28T16:13:51.190Z (8 days ago)
- Topics: babel, babel-preset-env, bundler, postcss, postcss-preset-env, rollup
- Language: JavaScript
- Homepage: https://shortstacks.netlify.com
- Size: 886 KB
- Stars: 168
- Watchers: 5
- Forks: 21
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Netlify Status](https://api.netlify.com/api/v1/badges/59a03ed4-bf70-4441-b65c-200bcd61c013/deploy-status)](https://app.netlify.com/sites/shortstax/deploys)
### CSS
[PostCSS](https://postcss.org) to **bundle**, **import from NPM, local or remote URLs**, plus [postcss-preset-env](https://preset-env.cssdb.org/) for **latest CSS features**.### JS
[Rollup](https://rollupjs.org) to **bundle**, **treeshake**, **import from NPM, local or remote URLs**, **import processed CSS**, plus [babel-preset-env](https://babeljs.io/docs/en/babel-preset-env) for **latest JS features**.### Servers
[Browsersync](https://www.browsersync.io) with all the goodies for local dev: **live reload**, **hot swap CSS**, **scroll syncing**, **remote debugging**, [etc](https://www.browsersync.io). Prod server is just a static server.
> Watch me break it down on [YouTube!](https://links.argyle.ink/shortstack)
## Getting Started
[use this as a Github template](https://github.com/argyleink/shortstack/generate)OR
#### Clone Shortstack into a new folder
1. `mkdir new-project-name && cd $_`
1. `git clone --depth=1 https://github.com/argyleink/shortstack.git . && rm -rf ./.git`OR (essentially the same thing with npx+degit)
1. `npx degit argyleink/shortstack#main`
#### Install tools and spin it up
1. `npm i`
1. `npm start`
## Development
Running `npm start` runs Browsersync, Rollup and Postcss concurrently, watching changes to your files in `./app` and refreshes connected browsers.## Production
Running `npm run build` compiles and minifies your code in `app` and outputs the optimised result to a folder called `dist` that's ready for static hosting.Running `npm run production` will build your project and start a server at `dist`.