Skip to content

Commit

Permalink
Merge pull request #342 from clark800/remove-cpp
Browse files Browse the repository at this point in the history
Remove src/cpp and clean up files
  • Loading branch information
clark800 committed May 14, 2015
2 parents ab943f3 + c57d528 commit e66978f
Show file tree
Hide file tree
Showing 59 changed files with 507 additions and 542 deletions.
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
deploy
lib-cov
coverage.html
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ node_js:
before_script:
- npm install -g eslint
- curl 'https://raw.githubusercontent.com/ripple/javascript-style-guide/master/eslintrc' > ./eslintrc
- eslint --reset -c ./eslintrc $(git --no-pager diff --name-only --diff-filter=AM --relative $(git merge-base FETCH_HEAD origin/HEAD) FETCH_HEAD | grep "\.js$")
- eslint --reset -c ./eslintrc $(git --no-pager diff --name-only -M100% --diff-filter=AM --relative $(git merge-base FETCH_HEAD origin/HEAD) FETCH_HEAD | grep "\.js$")
script: MOCHA_REPORTER=tap npm test --coverage
after_success:
- npm run coveralls
Expand Down
14 changes: 7 additions & 7 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function logPluginError(error) {
gulp.task('build', function(callback) {
webpack({
cache: true,
entry: './src/js/ripple/index.js',
entry: './src/index.js',
output: {
library: 'ripple',
path: './build/',
Expand All @@ -41,7 +41,7 @@ gulp.task('build-min', ['build'], function() {
gulp.task('build-debug', function(callback) {
webpack({
cache: true,
entry: './src/js/ripple/index.js',
entry: './src/index.js',
output: {
library: 'ripple',
path: './build/',
Expand All @@ -66,7 +66,7 @@ function buildUseError(cons) {
gulp.task('build-core', function(callback) {
webpack({
entry: [
'./src/js/ripple/remote.js'
'./src/remote.js'
],
externals: [
{
Expand Down Expand Up @@ -115,21 +115,21 @@ gulp.task('bower', ['bower-build', 'bower-build-min', 'bower-build-debug',
'bower-version']);

gulp.task('watch', function() {
gulp.watch('src/js/ripple/*', ['build-debug']);
gulp.watch('src/*', ['build-debug']);
});

// To use this, each javascript file must have /* @flow */ on the first line
gulp.task('typecheck', function() {
return gulp.src('src/js/ripple/*.js')
return gulp.src('src/*.js')
.pipe(flow({ // note: do not set the 'all' option, it is broken
weak: true, // remove this after all errors are addressed
killFlow: true
}));
});

gulp.task('strip', function() {
return gulp.src('src/js/ripple/*.js')
.pipe(watch('src/js/ripple/*.js'))
return gulp.src('src/*.js')
.pipe(watch('src/*.js'))
.pipe(cleanDest('out')) // delete outdated output file before stripping
.pipe(plumber()) // prevent an error in one file from ending build
.pipe(react({stripTypes: true}).on('error', logPluginError))
Expand Down
3 changes: 0 additions & 3 deletions deploy/start rippled.bat

This file was deleted.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"Makefile",
"Gulpfile.js"
],
"main": "src/js/ripple",
"main": "src/",
"directories": {
"test": "test"
},
Expand Down Expand Up @@ -47,11 +47,11 @@
"yargs": "~1.3.1"
},
"scripts": {
"build": "node_modules/.bin/gulp",
"build": "gulp",
"postinstall": "cd node_modules/sjcl; ./configure --with-all --compress=none; make",
"test": "./node_modules/.bin/istanbul test -x build/sjcl.js -x src/js/jsbn/* ./node_modules/mocha/bin/_mocha -- --reporter ${MOCHA_REPORTER:=spec} --timeout 10000 --slow 500 test/*-test.js",
"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",
"lint": "if ! [ -f eslintrc ]; then curl -o eslintrc 'https://raw.githubusercontent.com/ripple/javascript-style-guide/master/eslintrc'; fi; eslint --reset -c eslintrc src/js/ripple/*.js",
"test": "istanbul test _mocha",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"lint": "if ! [ -f eslintrc ]; then curl -o eslintrc 'https://raw.githubusercontent.com/ripple/javascript-style-guide/master/eslintrc'; fi; eslint --reset -c eslintrc src/*.js",
"perf": "./scripts/perf_test.sh"
},
"repository": {
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.
126 changes: 0 additions & 126 deletions src/cpp/TransactionErr.cpp

This file was deleted.

153 changes: 0 additions & 153 deletions src/cpp/TransactionErr.h

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions src/js/ripple/index.js → src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ exports.TransactionQueue = require('./transactionqueue').TransactionQueue;
exports.RangeSet = require('./rangeset').RangeSet;
exports.convertBase = require('./baseconverter');

exports._test = {
PathFind: require('./pathfind').PathFind,
TransactionManager: require('./transactionmanager').TransactionManager
};

// Important: We do not guarantee any specific version of SJCL or for any
// specific features to be included. The version and configuration may change at
// any time without warning.
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.
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.
2 changes: 1 addition & 1 deletion src/js/ripple/utils.js → src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,6 @@ exports.fromTimestamp = fromTimestamp;
exports.getMantissaDecimalString = getMantissaDecimalString;

exports.sjcl = require('sjcl');
require('../sjcl-custom');
require('./sjcl-custom');

// vim:sw=2:sts=2:ts=8:et
1 change: 1 addition & 0 deletions test/mocha.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--reporter spec --timeout 10000 --slow 500
Loading

0 comments on commit e66978f

Please sign in to comment.