initialize the purescript project

This commit is contained in:
KtorZ 2017-06-22 14:20:17 +02:00
parent fd43068cdf
commit 2c8601441e
No known key found for this signature in database
GPG Key ID: 3F72E8BC2894C015
5 changed files with 58 additions and 8 deletions

16
.eslintrc Normal file
View File

@ -0,0 +1,16 @@
{
"extends": "airbnb",
"env": {
"commonjs": true
},
"globals": {
"indexedDB": true,
"PS": true
},
"rules": {
"indent": ["error", 4],
"no-param-reassign": 0,
"import/no-unresolved": 0,
"no-underscore-dangle": 0
}
}

16
.gitignore vendored
View File

@ -1,8 +1,8 @@
# Dependencies
.psci_modules
bower_components
node_modules
# Generated files
.psci
output
/bower_components/
/node_modules/
/.pulp-cache/
/output/
/generated-docs/
/.psc*
/.purs*
/.psa*

16
bower.json Normal file
View File

@ -0,0 +1,16 @@
{
"name": "purescript-indexeddb",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"output"
],
"dependencies": {
"purescript-prelude": "^3.0.0",
"purescript-console": "^3.0.0"
},
"devDependencies": {
"purescript-psci-support": "^3.0.0"
}
}

9
index.html Normal file
View File

@ -0,0 +1,9 @@
<!doctype html>
<html>
<head>
<title>IDB</title>
</head>
<body>
<script src="/bundle.js"></script>
</body>
</html>

9
test/Main.purs Normal file
View File

@ -0,0 +1,9 @@
module Test.Main where
import Prelude
import Control.Monad.Eff (Eff)
import Control.Monad.Eff.Console (CONSOLE, log)
main :: forall e. Eff (console :: CONSOLE | e) Unit
main = do
log "You should add some tests."