Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for Elm 0.19 #142

Merged
merged 15 commits into from
Aug 29, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 2 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,40 +3,27 @@ sudo: false
cache:
directories:
- test/elm-stuff/build-artifacts
- sysconfcpus

os:
- osx
- linux

env:
matrix:
- ELM_VERSION=0.18 TARGET_NODE_VERSION=node
- ELM_VERSION=0.18 TARGET_NODE_VERSION=4.2
- ELM_VERSION=0.19 TARGET_NODE_VERSION=node
- ELM_VERSION=0.19 TARGET_NODE_VERSION=4.2

before_install:
- if [ ${TRAVIS_OS_NAME} == "osx" ];
then brew update; brew install nvm; mkdir ~/.nvm; export NVM_DIR=~/.nvm; source $(brew --prefix nvm)/nvm.sh;
fi
- | # epic build time improvement - see https://github.com/elm-lang/elm-compiler/issues/1473#issuecomment-245704142
if [ ! -d sysconfcpus/bin ];
then
git clone https://github.com/obmarg/libsysconfcpus.git;
cd libsysconfcpus;
./configure --prefix=$TRAVIS_BUILD_DIR/sysconfcpus;
make && make install;
cd ..;
fi

install:
- nvm install $TARGET_NODE_VERSION
- nvm use $TARGET_NODE_VERSION
- node --version
- npm --version
- npm install -g elm@$ELM_VERSION
- mv $(npm config get prefix)/bin/elm-make $(npm config get prefix)/bin/elm-make-old
- printf "#\041/bin/bash\n\necho \"Running elm-make with sysconfcpus -n 2\"\n\n$TRAVIS_BUILD_DIR/sysconfcpus/bin/sysconfcpus -n 2 elm-make-old \"\$@\"" > $(npm config get prefix)/bin/elm-make
- chmod +x $(npm config get prefix)/bin/elm-make
- npm install

script:
Expand Down
15 changes: 0 additions & 15 deletions example-wp2/elm-package.json

This file was deleted.

28 changes: 28 additions & 0 deletions example-wp2/elm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"version": "0.0.0",
"type": "application",
"summary": "Example using webpack 2",
"repository": "https://github.com/elm-community/elm-webpack-loader.git",
"license": "BSD-3-Clause",
"source-directories": [
"src"
],
"elm-version": "0.19.0",
"dependencies": {
"direct": {
"elm/browser": "1.0.0",
"elm/core": "1.0.0",
"elm/html": "1.0.0"
},
"indirect": {
"elm/json": "1.0.0",
"elm/time": "1.0.0",
"elm/url": "1.0.0",
"elm/virtual-dom": "1.0.0"
}
},
"test-dependencies": {
"direct": {},
"indirect": {}
}
}
3 changes: 1 addition & 2 deletions example-wp2/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ module.exports = {
// loader: "elm-webpack-loader",
loader: '../index.js',
options: {
debug: true,
warn: true
debug: true
}
}
]
Expand Down
15 changes: 0 additions & 15 deletions example-wp4/elm-package.json

This file was deleted.

28 changes: 28 additions & 0 deletions example-wp4/elm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"version": "0.0.0",
"type": "application",
"summary": "Example using webpack 4",
"repository": "https://github.com/elm-community/elm-webpack-loader.git",
"license": "BSD-3-Clause",
"source-directories": [
"src"
],
"elm-version": "0.19.0",
"dependencies": {
"direct": {
"elm/browser": "1.0.0",
"elm/core": "1.0.0",
"elm/html": "1.0.0"
},
"indirect": {
"elm/json": "1.0.0",
"elm/time": "1.0.0",
"elm/url": "1.0.0",
"elm/virtual-dom": "1.0.0"
}
},
"test-dependencies": {
"direct": {},
"indirect": {}
}
}
Loading