-
Notifications
You must be signed in to change notification settings - Fork 0
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
Chore/179551806/convert to ts #11
base: master
Are you sure you want to change the base?
Changes from 6 commits
ad62097
5ccfc5a
0dbb879
bf31a32
0e85fab
14ce022
7ee7281
cd19364
df3b753
cf550bb
9230399
6724119
0ace726
4f7200f
13f5d2c
7557d31
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"presets": [ | ||
["@babel/preset-env", {"targets": {"node": "current"}}], | ||
"@babel/preset-typescript" | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
.gitignore | ||
.travis.yml | ||
test/ | ||
lib/ | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
registry=https://registry.npmjs.org/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
language: node_js | ||
node_js: | ||
- '8' | ||
- "14" |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -4,24 +4,22 @@ formatters for good eggs | |||||
|
||||||
[![Build Status](http://img.shields.io/travis/goodeggs/goodeggs-formatters.svg?style=flat-square)](https://travis-ci.org/goodeggs/goodeggs-formatters) | ||||||
|
||||||
|
||||||
## Usage | ||||||
|
||||||
``` | ||||||
npm install goodeggs-formatters | ||||||
yarn install goodeggs-formatters | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No such thing!
Suggested change
|
||||||
``` | ||||||
|
||||||
```coffeescript | ||||||
goodeggsFormatters = require 'goodeggs-formatters' | ||||||
``` | ||||||
|
||||||
|
||||||
## Contributing | ||||||
|
||||||
``` | ||||||
$ git clone https://github.com/goodeggs/goodeggs-formatters && cd goodeggs-formatters | ||||||
$ npm install | ||||||
$ npm test | ||||||
$ yarn install | ||||||
$ yarn test | ||||||
``` | ||||||
|
||||||
_Module scaffold generated by [generator-goodeggs-npm](https://github.com/goodeggs/generator-goodeggs-npm)._ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,10 @@ | |
"Michael Kebbekus <[email protected]>", | ||
"Michelle Becker <[email protected]>" | ||
], | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org/", | ||
"access": "public" | ||
}, | ||
Comment on lines
+10
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like this repo was also strangely public but published to our private registry. It's weird, but let's not change that now. Please undo this change! |
||
"license": "Private", | ||
"main": "lib/index.js", | ||
"repository": { | ||
|
@@ -25,27 +29,27 @@ | |
"underscore": "^1.7.0" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.26.0", | ||
"babel-core": "^6.26.3", | ||
"babel-preset-es2015": "^6.24.1", | ||
"@babel/core": "^7.15.8", | ||
"@babel/preset-env": "^7.15.8", | ||
"@babel/preset-typescript": "^7.15.0", | ||
"@goodeggs/tsconfig": "^1.0.0", | ||
"@types/accounting": "^0.4.2", | ||
"@types/jest": "^27.0.2", | ||
"@types/node": "^16.10.2", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You're testing on node 14 so maybe use 14 here? |
||
"@types/sinon": "^10.0.4", | ||
"@types/underscore": "^1.11.3", | ||
"babel-jest": "^27.2.4", | ||
"chai": "^1.10.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove? you switched to jest, so should be unused now |
||
"jest": "^27.2.4", | ||
"mocha": "~1.x.x", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here, remove? |
||
"sinon": "^1.12.2" | ||
}, | ||
"babel": { | ||
"sourceMaps": "inline", | ||
"presets": [ | ||
"es2015" | ||
] | ||
"sinon": "^11.1.2", | ||
"typescript": "^4.4.3" | ||
}, | ||
"scripts": { | ||
"compile": "babel -d lib/ src/", | ||
"compile": "yarn clean && tsc -p tsconfig.build.json", | ||
"clean": "rm -rf lib", | ||
"prepublish": "npm run compile", | ||
"pretest": "npm run compile", | ||
"test": "mocha" | ||
}, | ||
"publishConfig": { | ||
"registry": "https://npm.goodeggs.com/", | ||
"always-auth": true | ||
"test": "yarn tsc && jest", | ||
"tsc": "tsc" | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we do this, we'll publish an unusable package that doesn't include the built code, which is the only useful thing to include!