-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update npm scripts fix: get new build working and prep lux for stable production use
- Loading branch information
1 parent
6bc225a
commit 4341f5c
Showing
98 changed files
with
1,115 additions
and
1,084 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[libs] | ||
interfaces | ||
decl | ||
|
||
[ignore] | ||
.*/dist/.* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
# compiled output | ||
dist/ | ||
/docs | ||
docs/ | ||
|
||
# dependencies | ||
node_modules/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,6 @@ sudo: true | |
language: node_js | ||
|
||
node_js: | ||
- '4' | ||
- '5' | ||
- '6' | ||
|
||
services: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import json from 'rollup-plugin-json'; | ||
import babel from 'rollup-plugin-babel'; | ||
import eslint from 'rollup-plugin-eslint'; | ||
import commonjs from 'rollup-plugin-commonjs'; | ||
import nodeResolve from 'rollup-plugin-node-resolve'; | ||
import { readdirSync } from 'fs'; | ||
import { join as joinPath } from 'path'; | ||
|
||
export default { | ||
external: readdirSync(joinPath(__dirname, '../node_modules')), | ||
|
||
banner: | ||
'require(\'source-map-support\').install();\n' + | ||
'const external = require;\n', | ||
|
||
plugins: [ | ||
json(), | ||
|
||
commonjs({ | ||
include: joinPath(__dirname, '../node_modules/**'), | ||
ignoreGlobal: true | ||
}), | ||
|
||
nodeResolve({ | ||
preferBuiltins: true | ||
}), | ||
|
||
eslint({ | ||
throwError: true, | ||
|
||
exclude: [ | ||
joinPath(__dirname, '../node_modules/**'), | ||
joinPath(__dirname, '../package.json') | ||
] | ||
}), | ||
|
||
babel() | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import babel from 'rollup-plugin-babel'; | ||
import commonjs from 'rollup-plugin-commonjs'; | ||
import multiEntry from 'rollup-plugin-multi-entry'; | ||
import nodeResolve from 'rollup-plugin-node-resolve'; | ||
import { readdirSync } from 'fs'; | ||
import { join as joinPath } from 'path'; | ||
|
||
export default { | ||
entry: [ | ||
joinPath(__dirname, '../test/index.js'), | ||
joinPath(__dirname, '../test/unit/**/*.js'), | ||
joinPath(__dirname, '../test/integration/**/*.js'), | ||
], | ||
|
||
external: [ | ||
...readdirSync(joinPath(__dirname, '../node_modules')), | ||
...readdirSync(joinPath(__dirname, '../test/test-app/node_modules')), | ||
joinPath(__dirname, '../test/test-app/dist/boot.js'), | ||
joinPath(__dirname, '../test/test-app/dist/bundle.js') | ||
], | ||
|
||
plugins: [ | ||
commonjs({ | ||
include: joinPath(__dirname, '../node_modules/**'), | ||
ignoreGlobal: true | ||
}), | ||
|
||
nodeResolve({ | ||
preferBuiltins: true | ||
}), | ||
|
||
babel(), | ||
|
||
multiEntry() | ||
], | ||
}; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import { | ||
Server as http$Server, | ||
IncomingMessage as http$IncomingMessage, | ||
ServerResponse as http$ServerResponse | ||
} from 'http'; | ||
|
||
import { Model } from '../src/packages/database'; | ||
|
||
type params = { | ||
data?: { | ||
id: number | string | Buffer; | ||
type: string; | ||
attributes?: Object; | ||
relationships?: Object; | ||
}; | ||
|
||
fields: Object; | ||
filter: Object; | ||
id?: number | string | Buffer; | ||
include: Array<string>; | ||
limit: number; | ||
page: number; | ||
sort: string; | ||
}; | ||
|
||
declare module 'http' { | ||
declare class Server extends http$Server {} | ||
|
||
declare class IncomingMessage extends http$IncomingMessage { | ||
params: params; | ||
record?: Model; | ||
|
||
parsedURL: { | ||
protocol?: string; | ||
slashes?: boolean; | ||
auth?: string; | ||
host?: string; | ||
port?: string; | ||
hostname?: string; | ||
hash?: string; | ||
search?: string; | ||
query?: any; | ||
pathname?: string; | ||
path?: string; | ||
href: string; | ||
}; | ||
} | ||
|
||
declare class ServerResponse extends http$ServerResponse {} | ||
|
||
declare function createServer( | ||
handler: (req: IncomingMessage, res: ServerResponse) => void | ||
): Server; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
type rollupOptions = { | ||
entry: string; | ||
onwarn?: Function; | ||
plugins?: Array<{}>; | ||
external?: Array<string>; | ||
}; | ||
|
||
type writeOptions = { | ||
dest: string; | ||
intro?: string; | ||
outro?: string; | ||
indent?: string | boolean; | ||
format?: 'amd' | 'cjs' | 'es6' | 'iife' | 'umd'; | ||
banner?: string; | ||
footer?: string; | ||
exports?: 'auto' | 'default' | 'named' | 'none'; | ||
globals?: {}; | ||
useStrict: boolean; | ||
sourceMap?: boolean; | ||
moduleId?: string; | ||
moduleName?: string; | ||
sourceMapFile?: string; | ||
}; | ||
|
||
declare function rollupPlugin(options?: {}): {}; | ||
|
||
declare module 'rollup' { | ||
declare class Bundle { | ||
write(options: writeOptions): Promise<void>; | ||
} | ||
|
||
declare function rollup(options: rollupOptions): Promise<Bundle>; | ||
} | ||
|
||
declare module 'rollup-plugin-alias' { | ||
declare var exports: rollupPlugin; | ||
} | ||
|
||
declare module 'rollup-plugin-babel' { | ||
declare var exports: rollupPlugin; | ||
} | ||
|
||
declare module 'rollup-plugin-commonjs' { | ||
declare var exports: rollupPlugin; | ||
} | ||
|
||
declare module 'rollup-plugin-eslint' { | ||
declare var exports: rollupPlugin; | ||
} | ||
|
||
declare module 'rollup-plugin-json' { | ||
declare var exports: rollupPlugin; | ||
} | ||
|
||
declare module 'rollup-plugin-node-resolve' { | ||
declare var exports: rollupPlugin; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.