Skip to content

Instantly share code, notes, and snippets.

@bodil
Last active September 21, 2017 13:18
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bodil/b2a8a76718e8c30bf121 to your computer and use it in GitHub Desktop.
Save bodil/b2a8a76718e8c30bf121 to your computer and use it in GitHub Desktop.
Who needs Pulp anyway?
{
"name": "lol",
"version": "1.0.0",
"main": "index.js",
"config": {
"main": "Main",
"testMain": "Test.Main"
},
"scripts": {
"compile": "psc -c -f 'src/**/*.js' -f 'bower_components/purescript-*/src/**/*.js' 'src/**/*.purs' 'bower_components/purescript-*/src/**/*.purs'",
"bundle": "psc-bundle 'output/*/*.js' -o $npm_package_main -m $npm_package_config_main && echo \"module.exports = PS[\\\"$npm_package_config_main\\\"];\" >> $npm_package_main",
"build": "npm run compile && npm run bundle",
"prepublish": "bower install && npm run build",
"compile-test": "psc -c -f 'src/**/*.js' -f 'test/**/*.js' -f 'bower_components/purescript-*/src/**/*.js' 'src/**/*.purs' 'test/**/*.purs' 'bower_components/purescript-*/src/**/*.purs'",
"bundle-test": "psc-bundle 'output/*/*.js' -o test.js -m $npm_package_config_testMain --main $npm_package_config_testMain",
"test": "npm run compile-test && npm run bundle-test && node test.js && rm -f test.js"
},
"devDependencies": {
"bower": "^1.6.5",
"purescript": "^0.7.4"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment