-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: merge pull request #72 from Questionable-Content-Extensions/re…
…lease/1.1.0 Release version 1.1.0
- Loading branch information
Showing
70 changed files
with
30,354 additions
and
38,722 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
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,4 +2,7 @@ node_modules | |
|
||
# Ignore artifacts: | ||
build | ||
coverage | ||
coverage | ||
|
||
dist | ||
storybook-static |
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
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
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 |
---|---|---|
|
@@ -62,24 +62,41 @@ const userscriptHeader = `\ | |
// ==/UserScript==` | ||
|
||
const pjson = require('./package.json') | ||
const dependencies = pjson.dependencies | ||
const devDependencies = pjson.devDependencies | ||
function pjsonDependency(dependency) { | ||
if (dependency in dependencies) { | ||
return `${dependency}@${dependencies[dependency]}` | ||
} else if (dependency in devDependencies) { | ||
return `${dependency}@${devDependencies[dependency]}` | ||
} else { | ||
return null | ||
} | ||
} | ||
|
||
const userscriptHeaderVariables = { | ||
version: pjson.version, | ||
'redux-logger-js': | ||
'https://unpkg.com/[email protected]/dist/redux-logger.js', | ||
'redux-logger-js': `https://unpkg.com/${pjsonDependency( | ||
'redux-logger' | ||
)}/dist/redux-logger.js`, | ||
development: { | ||
name: 'Questionable Content Extensions Development Script', | ||
description: | ||
'Development mode for Questionable Content Extensions Script. ' + | ||
'Loads the script directly from the last output of `npm start` on page refresh.', | ||
connect: 'localhost', | ||
'react-js': 'https://unpkg.com/react@17/umd/react.development.js', | ||
'react-dom-js': | ||
'https://unpkg.com/react-dom@17/umd/react-dom.development.js', | ||
'react-redux-js': | ||
'https://unpkg.com/[email protected]/dist/react-redux.js', | ||
'redux-toolkit-js': | ||
'https://unpkg.com/@reduxjs/[email protected]/dist/redux-toolkit.umd.js', | ||
'react-js': `https://unpkg.com/${pjsonDependency( | ||
'react' | ||
)}/umd/react.development.js`, | ||
'react-dom-js': `https://unpkg.com/${pjsonDependency( | ||
'react-dom' | ||
)}/umd/react-dom.development.js`, | ||
'react-redux-js': `https://unpkg.com/${pjsonDependency( | ||
'react-redux' | ||
)}/dist/react-redux.js`, | ||
'redux-toolkit-js': `https://unpkg.com/${pjsonDependency( | ||
'@reduxjs/toolkit' | ||
)}/dist/redux-toolkit.umd.js`, | ||
version: pjson.version + '+development', | ||
}, | ||
production: { | ||
|
@@ -88,13 +105,18 @@ const userscriptHeaderVariables = { | |
'Converts questionablecontent.net into a single-page application and adds ' + | ||
'extra features, such as character, location and storyline navigation.', | ||
connect: 'questionablextensions.net', | ||
'react-js': 'https://unpkg.com/react@17/umd/react.production.min.js', | ||
'react-dom-js': | ||
'https://unpkg.com/react-dom@17/umd/react-dom.production.min.js', | ||
'react-redux-js': | ||
'https://unpkg.com/[email protected]/dist/react-redux.min.js', | ||
'redux-toolkit-js': | ||
'https://unpkg.com/@reduxjs/[email protected]/dist/redux-toolkit.umd.min.js', | ||
'react-js': `https://unpkg.com/${pjsonDependency( | ||
'react' | ||
)}/umd/react.production.min.js`, | ||
'react-dom-js': `https://unpkg.com/${pjsonDependency( | ||
'react-dom' | ||
)}/umd/react-dom.production.min.js`, | ||
'react-redux-js': `https://unpkg.com/${pjsonDependency( | ||
'react-redux' | ||
)}/dist/react-redux.min.js`, | ||
'redux-toolkit-js': `https://unpkg.com/${pjsonDependency( | ||
'@reduxjs/toolkit' | ||
)}/dist/redux-toolkit.umd.min.js`, | ||
}, | ||
} | ||
|
||
|
Oops, something went wrong.