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:
|
exclude_paths:
|
||||||
- "test/"
|
- "test/"
|
||||||
- "old_test/"
|
- "old_test/"
|
||||||
- "boilerplate/"
|
- "templates/boilerplate/"
|
||||||
- "demo/"
|
- "templates/demo/"
|
||||||
- "js/"
|
- "js/"
|
||||||
- "test_app/"
|
- "test_apps/test_app/"
|
||||||
|
- "test_apps/contracts_app/"
|
||||||
- "docs/"
|
- "docs/"
|
||||||
checks:
|
checks:
|
||||||
similar-code:
|
similar-code:
|
||||||
|
|
|
@ -2,18 +2,23 @@ node_modules
|
||||||
TODO
|
TODO
|
||||||
NOTES
|
NOTES
|
||||||
.node-xmlhttprequest-sync-*
|
.node-xmlhttprequest-sync-*
|
||||||
demo/dist/
|
templates/demo/dist/
|
||||||
demo/.embark/development/
|
templates/demo/.embark/development/
|
||||||
demo/config/production/password
|
templates/demo/config/production/password
|
||||||
demo/node_modules/
|
templates/demo/node_modules/
|
||||||
boilerplate/dist/
|
templates/boilerplate/dist/
|
||||||
docs/_build
|
docs/_build
|
||||||
docs/utils/__pycache_
|
docs/utils/__pycache_
|
||||||
test_app/dist/
|
test_apps/test_app/dist/
|
||||||
test_app/.embark/development/
|
test_apps/test_app/.embark/development/
|
||||||
test_app/config/production/password
|
test_apps/test_app/config/production/password
|
||||||
test_app/node_modules/
|
test_apps/test_app/node_modules/
|
||||||
test_app/chains.json
|
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
|
.idea
|
||||||
.eslintrc.json
|
.eslintrc.json
|
||||||
.embark/
|
.embark/
|
||||||
|
|
|
@ -45,8 +45,8 @@ var Blockchain = function(options) {
|
||||||
|
|
||||||
if (this.blockchainConfig === {} || JSON.stringify(this.blockchainConfig) === '{"enabled":true}') {
|
if (this.blockchainConfig === {} || JSON.stringify(this.blockchainConfig) === '{"enabled":true}') {
|
||||||
this.config.account = {};
|
this.config.account = {};
|
||||||
this.config.account.password = fs.embarkPath("boilerplate/config/development/password");
|
this.config.account.password = fs.embarkPath("templates/boilerplate/config/development/password");
|
||||||
this.config.genesisBlock = fs.embarkPath("boilerplate/config/development/genesis.json");
|
this.config.genesisBlock = fs.embarkPath("templates/boilerplate/config/development/genesis.json");
|
||||||
this.config.datadir = fs.embarkPath(".embark/development/datadir");
|
this.config.datadir = fs.embarkPath(".embark/development/datadir");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ class TemplateGenerator {
|
||||||
}
|
}
|
||||||
|
|
||||||
generate(destinationFolder, name) {
|
generate(destinationFolder, name) {
|
||||||
let templatePath = fs.embarkPath(this.templateName);
|
let templatePath = fs.embarkPath(utils.joinPath('templates', this.templateName));
|
||||||
console.log('Initializing Embark Template....'.green);
|
console.log('Initializing Embark Template....'.green);
|
||||||
let fspath = utils.joinPath(destinationFolder, name);
|
let fspath = utils.joinPath(destinationFolder, name);
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue