add boilerplate app

This commit is contained in:
Iuri Matias 2015-05-24 08:58:17 -04:00
parent 48018d2194
commit 04083e5fab
9 changed files with 118 additions and 0 deletions

View File

@ -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)

View File

View File

View File

@ -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>

View File

View File

@ -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:

View File

@ -0,0 +1 @@
dev_password

View File

@ -0,0 +1,2 @@
host: localhost
port: 8000

31
boilerplate/package.json Normal file
View File

@ -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"
}
}