Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add core tests - file management & package.json rules #749

Merged
merged 1 commit into from
May 18, 2017

Conversation

DenisCarriere
Copy link
Member

@DenisCarriere DenisCarriere commented May 18, 2017

Intent with this PR is to keep the package.json attributes & standard TurfJS files consistent.

Here's a summary of the new packages/turf/test.js:

  • required files
    • test.js
    • bench.js
    • index.js
    • index.d.ts
    • README.md
    • types.ts (optional for now)
  • invalid dependencies (should be used as devDependencies)
    • tape
    • benchmark
    • eslint (handled at root level)
  • strict version dependencies
    • jsts (v1.3.0)
  • duplicated dependencies (also included in devDependencies)
  • check if files exists from package.json
  • Confirm MIT license
  • correct scoped name @turf/module-name
  • Pre-defined attributes in package.json
  • Parsing dependencies from index.js
    • require('module') should be included in dependencies in package.json
    • no duplicate require (ex: only require @turf/helpers once)

- required files
  - test.js
  - bench.js
  - index.js
  - index.d.ts
  - README.md
  - types.ts (optional for now)
- invalid dependencies (should be used as devDependencies)
  - tape
  - benchmark
  - eslint (handled at root level)
- strict version dependencies
  - jsts (v1.3.0)
- duplicated dependencies (also included in devDependencies)
- check if `files` exists from package.json
- Confirm MIT license
- correct scoped name `@turf/module-name`
- Pre-defined attributes in package.json
- Parsing dependencies from `index.js`
  - require('module') should be included in `dependencies` in package.json
  - no duplicate `require` (ex: only require `@turf/helpers` once)
@DenisCarriere DenisCarriere added this to the 4.4.0 milestone May 18, 2017
@DenisCarriere DenisCarriere self-assigned this May 18, 2017
@DenisCarriere DenisCarriere merged commit 723c4d9 into master May 18, 2017
@DenisCarriere DenisCarriere deleted the turf-test branch May 18, 2017 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant