mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
Auto-infer nightly state from branch
This commit is contained in:
parent
02334aeafc
commit
dc6d9c2fac
|
@ -14,6 +14,9 @@ const models = require('./meta/languages.json')
|
||||||
const universe = require('./meta/universe.json')
|
const universe = require('./meta/universe.json')
|
||||||
|
|
||||||
const DEFAULT_TEMPLATE = path.resolve('./src/templates/index.js')
|
const DEFAULT_TEMPLATE = path.resolve('./src/templates/index.js')
|
||||||
|
const NIGHTLY_BRANCHES = ['spacy.io-develop']
|
||||||
|
|
||||||
|
const isNightly = !!+process.env.SPACY_NIGHTLY || NIGHTLY_BRANCHES.includes(process.env.BRANCH)
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
siteMetadata: {
|
siteMetadata: {
|
||||||
|
@ -22,6 +25,7 @@ module.exports = {
|
||||||
sidebars,
|
sidebars,
|
||||||
...models,
|
...models,
|
||||||
universe,
|
universe,
|
||||||
|
nightly: isNightly,
|
||||||
},
|
},
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
"companyUrl": "https://explosion.ai",
|
"companyUrl": "https://explosion.ai",
|
||||||
"repo": "explosion/spaCy",
|
"repo": "explosion/spaCy",
|
||||||
"modelsRepo": "explosion/spacy-models",
|
"modelsRepo": "explosion/spacy-models",
|
||||||
"nightly": true,
|
|
||||||
"social": {
|
"social": {
|
||||||
"twitter": "spacy_io",
|
"twitter": "spacy_io",
|
||||||
"github": "explosion"
|
"github": "explosion"
|
||||||
|
|
|
@ -52,6 +52,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "gatsby build",
|
"build": "gatsby build",
|
||||||
"dev": "gatsby develop",
|
"dev": "gatsby develop",
|
||||||
|
"dev:nightly": "BRANCH=spacy.io-develop npm run dev",
|
||||||
"lint": "eslint **",
|
"lint": "eslint **",
|
||||||
"clear": "rm -rf .cache",
|
"clear": "rm -rf .cache",
|
||||||
"test": "echo \"Write tests! -> https://gatsby.app/unit-testing\""
|
"test": "echo \"Write tests! -> https://gatsby.app/unit-testing\""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user