Skip to content
This repository has been archived by the owner on Sep 10, 2023. It is now read-only.

Commit

Permalink
Install XO and replace standard and fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
fmiras committed Mar 18, 2018
1 parent 9f23f6f commit 732468a
Show file tree
Hide file tree
Showing 4 changed files with 1,412 additions and 232 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* text=auto
*.js text eol=lf
bin/* text eol=lf
*.ai binary
3 changes: 2 additions & 1 deletion bin/next-pkg → bin/next-pkg.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env node
const { copy, remove } = require('fs-extra')
const { join } = require('path')
const { copy, remove } = require('fs-extra')
const { exec } = require('pkg')

const pkg = require(join(process.cwd(), 'package.json'))

const finalServerPath = join(process.cwd(), '.next-pkg/server.js')
Expand Down
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,23 @@
"lib"
],
"bin": {
"next-pkg": "bin/next-pkg"
"next-pkg": "bin/next-pkg.js"
},
"xo": {
"extends": "prettier",
"rules": {
"import/no-unresolved": 0
}
},
"scripts": {
"test": "standard"
"test": "xo"
},
"dependencies": {
"fs-extra": "5.0.0"
},
"devDependencies": {
"standard": "11.0.0"
"prettier": "1.11.1",
"xo": "0.20.3"
},
"peerDependencies": {
"next": "^5.0.0",
Expand Down
Loading

0 comments on commit 732468a

Please sign in to comment.