GithubHelp home page GithubHelp logo

weifund-contracts's Issues

Cannot install or build from github repo as is

Issue Type

  • Bug
  • Feature

Description

  1. The current script configuration in the package.json prevents building of this package.
  2. Resolving that, there appear to be some important files missing from the /src/lib directory.

Steps to reproduce (first issue)

  1. Clone a fresh copy of the repo
  2. Run npm install that will return linter errors of the format:
/Users/primary/Projects/weifund-project/weifund-contracts/internals/scripts/testContributionEthjs.js 
4:27  error    Unable to resolve path to module '../../src/lib/contracts.json'  import/no-unresolved

I was able to partially resolve the issue with this change: maurelian@3ada2fd, which moves linting and (most) testing to after the build steps.

Steps to reproduce (next issue)

After the previous fix above:

  1. Run npm install
  2. This time the contracts build successfully, but eventually I run into:

Error: while writting output JSON file ./src/lib/contracts.json: Error: ENOENT: no such file or directory, open '/Users/primary/temp/weifund-contracts/src/lib/contracts.json'
Error: while writting output JSON file ./src/lib/contracts.json: Error: ENOENT: no such file or directory, open '/Users/primary/temp/weifund-contracts/src/lib/contracts.json'
    at fs.writeFile (/Users/primary/temp/weifund-contracts/node_modules/wafr/bin/wafr.js:54:13)
    at fs.js:1305:7
    at FSReqWrap.oncomplete (fs.js:123:15)

I can get past this just by running mkdir lib. but then I run into an issue with this import:

https://github.com/weifund/weifund-contracts/blob/master/src/index.js#L2

Possible solution: Maybe everyone already working on this has some files in /src/lib/ that haven't been checked in since updates were made to the gitignore file?

Versions

  • node v6.5.0
  • npm v3.10.3

Build fails in node 6.9.1

On OS X 10.12.2, without the full xcode installed I get:

> node-gyp rebuild

gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.