A minimalist elm project; it includes a build system implemented with gulp and rollup.
npm install -g yo
npm install -g git:<url of this repository>
Or clone this repository and install with npm link.
npm link
Create a new project.
mkdir my-project && cd my-project
yo elm-b .
Create an elm json file (not included in the generator in order to have the last available libraries).
npx elm init
Create the compiled files and start watching.
npx gulp init
npx gulp watch
- src/index.html
- src/Main.elm
- styles/main.scss
- main-rollup.js
- gulpfile.js
- rollup-config.js
- package.json - The name of the project is inserted here.
- elm : 0.19.0-bugfix6
- gulp
- gulp-elm
- gulp-sass
- rollup
Required for gulp pipe operations:
- vinyl-buffer
- vinyl-source-stream
Required for rollup operations:
- rollup-plugin-commonjs : 8.4.1
- rollup-plugin-json
- rollup-plugin-node-resolve
- rollup-plugin-postcss
- rollup-stream