Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #242 from alepop/154-make-files-organisation-clearer
Browse files Browse the repository at this point in the history
Make files organisation clearer - Closes #154
  • Loading branch information
slaweet authored May 19, 2017
2 parents 6668dc9 + 038484d commit 62034bb
Show file tree
Hide file tree
Showing 161 changed files with 132 additions and 144 deletions.
File renamed without changes.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ dist
node_modules
npm-debug.log
src/.nyc_output
src/coverage
coverage
src/e2e-test-screenshots
app/report.html
app/*.map
*.sw[pon]
app/app.js
2 changes: 1 addition & 1 deletion src/Gruntfile.js → Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function (grunt) {
fix: false,
},
all: {
src: ['app/**/*.js', 'spec/**/*.js', 'test/**/*.js', '../app/main.js', '*.js'],
src: ['src/**/*.js', 'e2e-test/**/*.js', 'test/**/*.js', 'app/main.js', '*.js'],
},
},
});
Expand Down
13 changes: 6 additions & 7 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,10 @@ node('lisk-nano-01'){
stage ('Build Nano') {
try {
sh '''#!/bin/bash
# Install Electron
npm install
# Install Electron
npm install
# Build nano
cd $WORKSPACE/src
cd $WORKSPACE
npm install
# Add coveralls config file
Expand All @@ -72,7 +71,7 @@ node('lisk-nano-01'){
try {
sh '''
# Run test
cd $WORKSPACE/src
cd $WORKSPACE
npm run test
'''
} catch (err) {
Expand All @@ -86,9 +85,9 @@ node('lisk-nano-01'){
sh '''
# Prepare lisk core for testing
bash ~/tx.sh
# Run Dev build and Build
cd $WORKSPACE/src
cd $WORKSPACE
export NODE_ENV=
npm run dev &> .lisk-nano.log &
sleep 30
Expand Down
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
git clone https://github.com/LiskHQ/lisk-nano.git
cd lisk-nano
npm install
cd src
npm install
npm run dev
```

Expand Down Expand Up @@ -90,7 +88,6 @@ Make sure that the Lisk version of the node matches version in https://github.co
Start the development version of lisk-nano:

```
cd src
npm run dev
```

Expand Down Expand Up @@ -123,7 +120,7 @@ You should have received a copy of the [GNU General Public License](https://gith

This program also incorporates work previously released with lisk-nano `0.1.2` (and earlier) versions under the [MIT License](https://opensource.org/licenses/MIT). To comply with the requirements of that license, the following permission notice, applicable to those parts of the code only, is included below:

Copyright © 2016-2017 Lisk Foundation
Copyright © 2016-2017 Lisk Foundation
Copyright © 2015 Crypti

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
Expand Down
1 change: 0 additions & 1 deletion app/index.html

This file was deleted.

2 changes: 1 addition & 1 deletion app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function createWindow() {
const menu = Menu.buildFromTemplate(template);
Menu.setApplicationMenu(menu);

win.loadURL(`file://${__dirname}/index.html`);
win.loadURL(`file://${__dirname}/dist/index.html`);

win.on('closed', () => win = null);

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/karma.conf.js → karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const webpackConfig = require('./webpack.config.babel');
const preprocessors = {};
// preprocessors[entry] = ['webpack'];
preprocessors['**/*.html'] = ['ng-html2js'];
const libs = path.join(__dirname, 'app', 'libs.js');
const app = path.join(__dirname, 'app', 'lisk-nano.js');
const libs = path.join(__dirname, 'src', 'libs.js');
const app = path.join(__dirname, 'src', 'liskNano.js');
const testLibs = path.join(__dirname, 'test', 'libs.js');
const test = path.join(__dirname, 'test', 'test.js');
preprocessors[libs] = ['webpack'];
Expand Down
101 changes: 100 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
"bugs": "https://github.com/LiskHQ/lisk-nano/issues",
"main": "main.js",
"scripts": {
"build": "webpack --profile --progress --display-modules --display-exclude --display-chunks --display-cached --display-cached-assets",
"dev": "webpack-dev-server --host 0.0.0.0 --profile --progress",
"e2e-test": "protractor e2e-test/conf.js",
"test": "grunt eslint && export NODE_ENV=test && karma start",
"test-live": "export NODE_ENV=test && export LIVE=true && karma start",
"start": "electron app",
"dist:win": "build --win",
"dist:mac": "build --mac",
Expand All @@ -17,9 +22,103 @@
"type": "git",
"url": "https://github.com/LiskHQ/lisk-nano"
},
"dependencies": {
"angular": "=1.5.8",
"angular-animate": "=1.5.8",
"angular-aria": "=1.5.8",
"angular-cookies": "=1.5.8",
"angular-material": "=1.1.1",
"angular-material-data-table": "=0.10.9",
"angular-messages": "=1.5.8",
"angular-ui-router": "=1.0.0-rc.1",
"angular-svg-round-progressbar": "=0.4.8",
"babel-polyfill": "=6.9.1",
"bignumber.js": "=4.0.0",
"bitcore-mnemonic": "=1.1.1",
"debug": "=2.2.0",
"jquery": "=2.2.4",
"lisk-js": "=0.4.1",
"lodash": "=4.16.4",
"moment": "=2.15.1",
"ng-infinite-scroll": "=1.3.0",
"numeral": "=1.5.3",
"jasmine-spec-reporter": "=3.3.0"
},
"devDependencies": {
"angular-mocks": "=1.5.8",
"babel-core": "=6.9.1",
"babel-loader": "=6.2.4",
"babel-plugin-istanbul": "=4.0.0",
"babel-plugin-syntax-trailing-function-commas": "=6.22.0",
"babel-preset-es2015": "=6.9.0",
"chai": "=3.5.0",
"clean-webpack-plugin": "=0.1.9",
"css-loader": "=0.23.1",
"electron": "=1.6.2",
"electron-builder": "=16.8.3"
"electron-builder": "=16.8.3",
"eslint-config-airbnb": "=14.1.0",
"eslint-config-google": "^0.7.1",
"eslint-plugin-html": "^2.0.3",
"eslint-plugin-import": "=2.2.0",
"exports-loader": "=0.6.3",
"extract-text-webpack-plugin": "=1.0.1",
"file-loader": "=0.9.0",
"grunt": "=1.0.1",
"grunt-eslint": "=19.0.0",
"grunt-newer": "=1.2.0",
"html-webpack-plugin": "=2.19.0",
"imports-loader": "=0.6.5",
"jit-grunt": "=0.10.0",
"json-loader": "=0.5.4",
"karma": "=1.4.1",
"karma-babel-preprocessor": "=6.0.1",
"karma-chai": "=0.1.0",
"karma-chrome-launcher": "=2.0.0",
"karma-coverage": "=1.1.1",
"karma-coveralls": "=1.1.2",
"karma-jenkins-reporter": "0.0.2",
"karma-mocha": "=1.3.0",
"karma-mocha-reporter": "=2.2.2",
"karma-ng-html2js-preprocessor": "=1.0.0",
"karma-phantomjs-launcher": "=1.0.4",
"karma-verbose-reporter": "=0.0.6",
"karma-webpack": "=2.0.2",
"less": "=2.7.1",
"less-loader": "=2.2.3",
"mocha": "=3.2.0",
"nyc": "=10.1.2",
"phantomjs": "=2.1.7",
"phantomjs-prebuilt": "=2.1.14",
"protractor": "=5.1.1",
"pug": "=2.0.0-beta11",
"pug-cli": "=1.0.0-alpha6",
"pug-loader": "=2.3.0",
"raw-loader": "=0.5.1",
"should": "=11.2.0",
"sinon": "=2.0.0",
"sinon-chai": "=2.8.0",
"style-loader": "=0.13.1",
"url-loader": "=0.5.7",
"webpack": "=1.13.1",
"webpack-bundle-analyzer": "=2.4.0",
"webpack-dev-server": "=1.14.1",
"webpack-merge": "=0.14.1",
"webpack-validator": "=2.2.6"
},
"babel": {
"presets": [
"es2015"
],
"plugins": [
"syntax-trailing-function-commas"
],
"env": {
"test": {
"plugins": [
"istanbul"
]
}
}
},
"build": {
"appId": "io.lisk.nano",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ div.dialog-delegate-registration(aria-label='Vote for delegates')
div.fee Fee: {{$ctrl.form.fee}} LSK
md-divider
div(layout='row')
p.info-icon-wrapper
p.info-icon-wrapper
i.material-icons info
p
span Becoming a delegate requires registration. You may choose your own delegate name, which can be used to promote your delegate. Only the top 101 delegates are eligible to forge. All fees are shared equally between the top 101 delegates.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import lisk from 'lisk-js';
* @submodule signMessage
*/
app.component('signMessage', {
template: require('./sign-message.pug')(),
template: require('./signMessage.pug')(),
/**
* The signMessage component constructor class
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import lisk from 'lisk-js';
* @submodule signMessage
*/
app.component('verifyMessage', {
template: require('./verify-message.pug')(),
template: require('./verifyMessage.pug')(),
controllerAs: '$ctrl',
/**
* The verifyMessage component constructor class
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/app/index.js → src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import './libs';
import './lisk-nano';
import './liskNano';

angular.element(document).ready(() => {
angular.bootstrap(document, ['app']);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions src/app/lisk-nano.js → src/liskNano.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ import './components/lsk/lsk';
import './components/forging/forging';
import './components/delegates/delegates';
import './components/delegates/vote';
import './components/sign-verify/sign-message';
import './components/sign-verify/verify-message';
import './components/delegate-registration/delegateRegistration';
import './components/signVerify/signMessage';
import './components/signVerify/verifyMessage';
import './components/delegateRegistration/delegateRegistration';

import './services/api/peers';
import './services/lsk';
import './services/dialog';
import './services/passphrase';
import './services/sign-verify';
import './services/signVerify';
import './services/account';
import './services/api/delegateApi';
import './services/api/forgingApi';
Expand Down
108 changes: 0 additions & 108 deletions src/package.json

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions src/test/test.js → test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ require('./components/transfer/transferModalDirective.spec');
require('./components/top/top.spec');
require('./components/timestamp/timestamp.spec');
require('./components/transactions/transactions.spec');
require('./components/sign-verify/sign-message.spec');
require('./components/sign-verify/verify-message.spec');
require('./components/delegate-registration/delegateRegistration.spec.js');
require('./components/signVerify/signMessage.spec');
require('./components/signVerify/verifyMessage.spec');
require('./components/delegateRegistration/delegateRegistration.spec.js');

require('./services/passphrase.spec');
require('./services/sign-verify.spec');
require('./services/signVerify.spec');
require('./services/lsk.spec');
require('./services/api/peers.spec');
require('./services/api/delegateApi.spec');
Expand Down
Loading

0 comments on commit 62034bb

Please sign in to comment.