Skip to content

Commit

Permalink
Add tools
Browse files Browse the repository at this point in the history
add eslint
add npm-watch
add README.md
modify js syntax
modify repository
  • Loading branch information
cancue committed May 6, 2018
1 parent 8af520e commit a706efc
Show file tree
Hide file tree
Showing 11 changed files with 3,997 additions and 146 deletions.
20 changes: 20 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"extends": "standard",
"rules": {
"no-control-regex": 0
},
"globals": {
"artifacts": true,
"web3": true,
"contract": true,
"assert": true,
"describe": true,
"context": true,
"before": true,
"beforeEach": true,
"after": true,
"afterEach": true,
"it": true,
"expect": true
}
}
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Ethername Smart Contract ([ethername.co](https://ethername.co))
> It is designed for any DAPPs to have username feature without extra implementation.
## Running the tests

### Prerequisites
You need truffle (https://github.com/trufflesuite/truffle) and ganache (https://github.com/trufflesuite/ganache-cli) to test.

```
ganache-cli
truffle migrate
```

### Manual Test
```
truffle test
```

### Auto Test
```
npm install
npm run watch
```

## Author
**M.H. Kang** <<guap.root@gmail.com>> (https://github.com/cancue)
8 changes: 4 additions & 4 deletions migrations/1_initial_migration.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var Migrations = artifacts.require("./Migrations.sol");
let Migrations = artifacts.require('./Migrations.sol')

module.exports = function(deployer) {
deployer.deploy(Migrations);
};
module.exports = function (deployer) {
deployer.deploy(Migrations)
}
6 changes: 2 additions & 4 deletions migrations/2_deploy_ethername.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
let Ethername = artifacts.require("./Ethername.sol")
let Ethername = artifacts.require('./Ethername.sol')

module.exports = function (deployer) {

deployer.deploy(Ethername)

};
}
Loading

0 comments on commit a706efc

Please sign in to comment.