add boilerplate app
This commit is contained in:
parent
48018d2194
commit
04083e5fab
|
@ -0,0 +1,54 @@
|
||||||
|
module.exports = (grunt) ->
|
||||||
|
|
||||||
|
grunt.config.merge
|
||||||
|
files:
|
||||||
|
js:
|
||||||
|
src: [
|
||||||
|
"app/js/**/*.js"
|
||||||
|
]
|
||||||
|
|
||||||
|
css:
|
||||||
|
src: [
|
||||||
|
"app/css/**/*.css"
|
||||||
|
]
|
||||||
|
|
||||||
|
html:
|
||||||
|
src: [
|
||||||
|
"app/html/**/*.html"
|
||||||
|
]
|
||||||
|
|
||||||
|
contracts:
|
||||||
|
src: [
|
||||||
|
"app/contracts/**/*.sol"
|
||||||
|
]
|
||||||
|
|
||||||
|
concat:
|
||||||
|
app:
|
||||||
|
src: ["<%= files.web3 %>", 'generated/tmp/abi.js', "<%= files.js.src %>", "<%= files.coffee.compiled %>"]
|
||||||
|
dest: "generated/dapp/js/app.min.js"
|
||||||
|
css:
|
||||||
|
src: "<%= files.css.src %>"
|
||||||
|
dest: "generated/dapp/css/app.min.css"
|
||||||
|
|
||||||
|
copy:
|
||||||
|
html:
|
||||||
|
files:
|
||||||
|
"generated/dapp/index.html" : "<%= files.html.src %>"
|
||||||
|
"dist/dapp/index.html" : "<%= files.html.src %>"
|
||||||
|
css:
|
||||||
|
files:
|
||||||
|
"dist/dapp/css/app.min.css" : "<%= files.css.src %>"
|
||||||
|
contracts:
|
||||||
|
files:
|
||||||
|
"dist/contracts/": '<%= files.contracts.src %>'
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
contracts: '<%= files.contracts.src %>'
|
||||||
|
dest: 'generated/tmp/abi.js'
|
||||||
|
|
||||||
|
grunt.loadNpmTasks "embark-framework"
|
||||||
|
|
||||||
|
# loading external tasks (aka: plugins)
|
||||||
|
# Loads all plugins that match "grunt-", in this case all of our current plugins
|
||||||
|
require('matchdep').filterAll('grunt-*').forEach(grunt.loadNpmTasks)
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Embark</title>
|
||||||
|
<link rel="stylesheet" href="css/app.min.css">
|
||||||
|
<script src="js/app.min.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,21 @@
|
||||||
|
development:
|
||||||
|
rpc_host: localhost
|
||||||
|
rpc_port: 8101
|
||||||
|
rpc_whitelist: "*"
|
||||||
|
minerthreads: 1
|
||||||
|
datadir: /tmp/embark
|
||||||
|
mine_when_needed: true
|
||||||
|
console: false
|
||||||
|
account:
|
||||||
|
init: true
|
||||||
|
password: config/password
|
||||||
|
staging:
|
||||||
|
rpc_host: localhost
|
||||||
|
rpc_port: 8101
|
||||||
|
rpc_whitelist: "*"
|
||||||
|
datadir: default
|
||||||
|
network_id: 0
|
||||||
|
console: true
|
||||||
|
account:
|
||||||
|
init: false
|
||||||
|
address:
|
|
@ -0,0 +1 @@
|
||||||
|
dev_password
|
|
@ -0,0 +1,2 @@
|
||||||
|
host: localhost
|
||||||
|
port: 8000
|
|
@ -0,0 +1,31 @@
|
||||||
|
{
|
||||||
|
"name": "app_name",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"description": "",
|
||||||
|
"main": "Gruntfile.js",
|
||||||
|
"scripts": {
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
},
|
||||||
|
"author": "",
|
||||||
|
"license": "ISC",
|
||||||
|
"homepage": "",
|
||||||
|
"devDependencies": {
|
||||||
|
"embark-framework": "^0.0.1",
|
||||||
|
"commander": "^2.8.1",
|
||||||
|
"compression": "^1.4.3",
|
||||||
|
"execSync": "^1.0.2",
|
||||||
|
"express": "^4.12.3",
|
||||||
|
"grunt-contrib-clean": "^0.6.0",
|
||||||
|
"grunt-contrib-coffee": "^0.13.0",
|
||||||
|
"grunt-contrib-concat": "^0.5.1",
|
||||||
|
"grunt-contrib-copy": "^0.8.0",
|
||||||
|
"grunt-contrib-uglify": "^0.9.1",
|
||||||
|
"grunt-contrib-watch": "^0.6.1",
|
||||||
|
"matchdep": "^0.3.0",
|
||||||
|
"read-yaml": "^1.0.0",
|
||||||
|
"shelljs": "^0.4.0",
|
||||||
|
"string": "^3.1.1",
|
||||||
|
"web3": "^0.3.4",
|
||||||
|
"wrench": "^1.5.8"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue