mirror of https://github.com/embarklabs/embark.git
move demo and boilerplate to a templates folder
This commit is contained in:
parent
f031b8b7f7
commit
a8e22ec45c
|
@ -30,10 +30,11 @@ ratings:
|
|||
exclude_paths:
|
||||
- "test/"
|
||||
- "old_test/"
|
||||
- "boilerplate/"
|
||||
- "demo/"
|
||||
- "templates/boilerplate/"
|
||||
- "templates/demo/"
|
||||
- "js/"
|
||||
- "test_app/"
|
||||
- "test_apps/test_app/"
|
||||
- "test_apps/contracts_app/"
|
||||
- "docs/"
|
||||
checks:
|
||||
similar-code:
|
||||
|
|
|
@ -2,18 +2,23 @@ node_modules
|
|||
TODO
|
||||
NOTES
|
||||
.node-xmlhttprequest-sync-*
|
||||
demo/dist/
|
||||
demo/.embark/development/
|
||||
demo/config/production/password
|
||||
demo/node_modules/
|
||||
boilerplate/dist/
|
||||
templates/demo/dist/
|
||||
templates/demo/.embark/development/
|
||||
templates/demo/config/production/password
|
||||
templates/demo/node_modules/
|
||||
templates/boilerplate/dist/
|
||||
docs/_build
|
||||
docs/utils/__pycache_
|
||||
test_app/dist/
|
||||
test_app/.embark/development/
|
||||
test_app/config/production/password
|
||||
test_app/node_modules/
|
||||
test_app/chains.json
|
||||
test_apps/test_app/dist/
|
||||
test_apps/test_app/.embark/development/
|
||||
test_apps/test_app/config/production/password
|
||||
test_apps/test_app/node_modules/
|
||||
test_apps/test_app/chains.json
|
||||
test_apps/contracts_app/build/
|
||||
test_apps/contracts_app/.embark/development/
|
||||
test_apps/contracts_app/config/production/password
|
||||
test_apps/contracts_app/node_modules/
|
||||
test_apps/contracts_app/chains.json
|
||||
.idea
|
||||
.eslintrc.json
|
||||
.embark/
|
||||
|
|
|
@ -45,8 +45,8 @@ var Blockchain = function(options) {
|
|||
|
||||
if (this.blockchainConfig === {} || JSON.stringify(this.blockchainConfig) === '{"enabled":true}') {
|
||||
this.config.account = {};
|
||||
this.config.account.password = fs.embarkPath("boilerplate/config/development/password");
|
||||
this.config.genesisBlock = fs.embarkPath("boilerplate/config/development/genesis.json");
|
||||
this.config.account.password = fs.embarkPath("templates/boilerplate/config/development/password");
|
||||
this.config.genesisBlock = fs.embarkPath("templates/boilerplate/config/development/genesis.json");
|
||||
this.config.datadir = fs.embarkPath(".embark/development/datadir");
|
||||
}
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ class TemplateGenerator {
|
|||
}
|
||||
|
||||
generate(destinationFolder, name) {
|
||||
let templatePath = fs.embarkPath(this.templateName);
|
||||
let templatePath = fs.embarkPath(utils.joinPath('templates', this.templateName));
|
||||
console.log('Initializing Embark Template....'.green);
|
||||
let fspath = utils.joinPath(destinationFolder, name);
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue