Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = {
},
extends: ['prettier'],
globals: {
TEST_TARGET: 'readable',
example: 'readonly'
},
parser: 'babel-eslint',
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ npm-debug.log

# development
.cache
.env
.env*
.firebase
tmp
dist
stages
yarn.lock

*.sample
Expand Down
2 changes: 2 additions & 0 deletions app/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// HACK BRN: Temporary hack until we can lean on package.json exports
export * from '../src/app'
2 changes: 2 additions & 0 deletions auth/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// HACK BRN: Temporary hack until we can lean on package.json exports
export * from '../src/auth'
10 changes: 10 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
module.exports = {
ignore: [/(node_modules)/],
plugins: [
[
'module-resolver',
{
alias: {
'^react-native$': 'react-native-web'
}
}
]
],
presets: [
[
'@babel/preset-env',
Expand Down
2 changes: 2 additions & 0 deletions base64/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// HACK BRN: Temporary hack until we can lean on package.json exports
export * from '../src/base64'
22 changes: 9 additions & 13 deletions bin/moltres
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
#!/usr/bin/env node

const program = require('commander')

const pack = require('../package.json')

program
.version(pack.version)
.command('init', 'initialize a new project')
.command('run', 'run a script')
.parse(process.argv)

if (!program.args.length) {
program.help()
}
const { setupCli } = require('../index.cli')

setupCli()
.then((cli) => cli.exec(process.argv))
.catch((error) => {
// eslint-disable-next-line no-console
console.error(error)
process.exit(1)
})
56 changes: 0 additions & 56 deletions bin/moltres-init

This file was deleted.

55 changes: 0 additions & 55 deletions bin/moltres-run

This file was deleted.

2 changes: 2 additions & 0 deletions buffer/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// HACK BRN: Temporary hack until we can lean on package.json exports
export * from '../src/buffer'
2 changes: 2 additions & 0 deletions canvas/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// HACK BRN: Temporary hack until we can lean on package.json exports
export * from '../src/canvas'
2 changes: 2 additions & 0 deletions cli/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// HACK BRN: Temporary hack until we can lean on package.json exports
export * from '../src/cli'
2 changes: 2 additions & 0 deletions clipboard/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// HACK BRN: Temporary hack until we can lean on package.json exports
export * from '../src/clipboard'
2 changes: 2 additions & 0 deletions config/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// HACK BRN: Temporary hack until we can lean on package.json exports
export * from '../src/config'
2 changes: 2 additions & 0 deletions constants/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// HACK BRN: Temporary hack until we can lean on package.json exports
export * from '../src/constants'
2 changes: 2 additions & 0 deletions context/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// HACK BRN: Temporary hack until we can lean on package.json exports
export * from '../src/context'
2 changes: 2 additions & 0 deletions core/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// HACK BRN: Temporary hack until we can lean on package.json exports
export * from '../src/core'
2 changes: 2 additions & 0 deletions core/modules/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// HACK BRN: Temporary hack until we can lean on package.json exports
export * from '../../src/core/modules'
2 changes: 2 additions & 0 deletions crypto/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// HACK BRN: Temporary hack until we can lean on package.json exports
export * from '../src/crypto'
2 changes: 2 additions & 0 deletions db/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// HACK BRN: Temporary hack until we can lean on package.json exports
export * from '../src/db'
4 changes: 4 additions & 0 deletions docs/CLI.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# CLI Commands

<!-- AUTO-GENERATED-CONTENT:START (CLI) -->
<!-- AUTO-GENERATED-CONTENT:END -->
2 changes: 2 additions & 0 deletions error/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// HACK BRN: Temporary hack until we can lean on package.json exports
export * from '../src/error'
2 changes: 2 additions & 0 deletions express/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// HACK BRN: Temporary hack until we can lean on package.json exports
export * from '../src/express'
131 changes: 131 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
{
"firestore": {
"predeploy": "npm run database:predeploy",
"rules": "firestore.min.rules",
"indexes": "firestore.indexes.json"
},
"functions": {
"source": ".",
"ignore": [
"**/__mocks__/**",
"**/.semaphore/**",
"**/node_modules/**",
"**/bin/**",
"**/docs/**",
"**/migrations/**",
"**/scripts/**",
"**/src/**",
"**/tmp/**",
"*.log",
"*.test.js",
".browserlistrc",
".codecov.yml",
".editorconfig",
".env-*",
".eslintcache",
".eslintignore",
".eslintrc.js",
".expo/**",
".expo-shared/**",
".firebaserc",
".gitignore",
".lintstagedrc.json",
".nvmrc",
".prettierignore",
".semaphore/**",
"babel.config.js",
"CHANGELOG.md",
"CODE_OF_CONDUCT.md",
"CONTRIBUTING.md",
"database.rules.json",
"DEVELOPMENT.md",
"firebase.json",
"firestore.indexes.json",
"firestore.min.rules",
"firestore.rules",
"jest.config.js",
"NOTES.md",
"package-lock.json",
"prettier.config.js",
"README.md",
"storage.rules",
"TODO",
"TODO.md"
]
},
"hosting": {
"appAssociation": "AUTO",
"public": "public",
"ignore": [
"firebase.json",
"**/node_modules/**"
],
"headers": [
{
"source": "**/*.*.js",
"headers": [
{
"key": "Cache-Control",
"value": "public,max-age=31536000,immutable"
}
]
},
{
"source": "**/*.css",
"headers": [
{
"key": "Cache-Control",
"value": "public,max-age=31536000"
}
]
},
{
"source": "**/*.@(jpg|jpeg|gif|png|ico)",
"headers": [
{
"key": "Cache-Control",
"value": "public,max-age=31536000"
}
]
}
],
"rewrites": [
{ "source": "/link/**", "dynamicLinks": true },
{ "source": "/events/**", "function": "events" },
{ "source": "/graphql", "function": "graphql" },
{
"source": "**",
"function": "app"
}
]
},
"storage": {
"rules": "storage.rules"
},
"database": {
"rules": "database.rules.json"
},
"emulators": {
"database": {
"port": 9000
},
"functions": {
"port": 5001
},
"firestore": {
"port": 8080
},
"hosting": {
"host": "0.0.0.0",
"port": 5000
},
"pubsub": {
"port": 8085
},
"ui": {
"enabled": true,
"host": "localhost",
"port": 4000
}
}
}
2 changes: 2 additions & 0 deletions firebase/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// HACK BRN: Temporary hack until we can lean on package.json exports
export * from '../src/firebase'
Loading