Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tesk9/elm-skeleton
Set up a new Elm project or add a feature to an existing project.
https://github.com/tesk9/elm-skeleton
elm elm-lang
Last synced: about 2 months ago
JSON representation
Set up a new Elm project or add a feature to an existing project.
- Host: GitHub
- URL: https://github.com/tesk9/elm-skeleton
- Owner: tesk9
- Created: 2016-12-16T23:02:21.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-18T04:10:56.000Z (about 7 years ago)
- Last Synced: 2024-11-16T08:17:42.742Z (about 2 months ago)
- Topics: elm, elm-lang
- Language: JavaScript
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Elm Skeleton
![](https://travis-ci.org/tesk9/elm-skeleton.svg?branch=master)
Set up a new Elm project or add a feature to an existing project.
The skeleton produced will be set up to be used as a `programWithFlags`, so will not work with elm-reactor.
### Install:
```
$ npm install -g elm-move
$ npm install -g elm-skeleton
```### To Use:
#### For a new project
```
$ elm-skeleton BrandNewProject
```Verify that the path and namespace are correct when prompted, and then include the new elm-package.json.
#### For building on an existing project
A larger project might have many elm-architecture-adherent folders and files.
Supposing the following folder structure, let's add another feature to `Miscellany/Doohickeys`.
```
assets
|
|-- elm
| |
| |-- Widgets
| |
| |-- Miscellany
| | |
| | |-- Doohickeys
| |
...
``````
$ cd assets/elm
$ elm-skeleton Miscellany/Doohickeys/Whatsit
```Verify that the prompt and namespace are correct when prompted.
```
Creating a new elm skeleton
Path: Miscellany/Doohickeys/Whatsit
Namespace: Miscellany-Doohickeys-Whatsit
Are the path and namespace correct?
1) Yes
2) No
#?
```Notice that the namespace we'll be using for the stylesheet matches the directory.
Do not add a new elm-package.json.