initial commit
This commit is contained in:
16
generator/template/spago.dhall
Normal file
16
generator/template/spago.dhall
Normal file
@@ -0,0 +1,16 @@
|
||||
{-
|
||||
Welcome to a Spago project!
|
||||
You can edit this file as you like.
|
||||
-}
|
||||
{ name = "my-project"
|
||||
, dependencies =
|
||||
[ "arrays"
|
||||
, "console"
|
||||
, "effect"
|
||||
, "psci-support"
|
||||
, "record-extra"
|
||||
, "typelevel-prelude"
|
||||
]
|
||||
, packages = ./packages.dhall
|
||||
, sources = [ "src/**/*.purs", "node_modules/vue-cli-plugin-pure-vue/src/**/*.purs", "test/**/*.purs" ]
|
||||
}
|
||||
21
generator/template/vue.config.js
Normal file
21
generator/template/vue.config.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
chainWebpack: config => {
|
||||
// Purescript Loader
|
||||
config.module
|
||||
.rule('purescript')
|
||||
.test(/\.purs$/)
|
||||
.use('purs-loader')
|
||||
.loader('purs-loader')
|
||||
.tap(() => ({
|
||||
// bundle: true,
|
||||
// spago: true,
|
||||
src: [
|
||||
path.join('src', '**', '*.purs'),
|
||||
path.join('node_modules', 'vue-cli-plugin-pure-vue', 'src', '**', '*.purs'),
|
||||
path.join('.spago', '**', 'src', '**', '*.purs'),
|
||||
],
|
||||
}))
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user