Integrations-tools disintegration
This commit is contained in:
17
.travis.yml
17
.travis.yml
@ -1,17 +0,0 @@
|
|||||||
language: node_js
|
|
||||||
cache:
|
|
||||||
directories:
|
|
||||||
- node_modules
|
|
||||||
node_js:
|
|
||||||
- lts/*
|
|
||||||
before_install:
|
|
||||||
- git fetch --unshallow
|
|
||||||
- npm install -g semistandard
|
|
||||||
- npm install -g prettier
|
|
||||||
- npm install -g eslint
|
|
||||||
script:
|
|
||||||
- npm run extractor
|
|
||||||
after_success:
|
|
||||||
- chmod +x .travis/push.sh
|
|
||||||
- .travis/push.sh
|
|
||||||
group: deprecated-2017Q4
|
|
||||||
@ -1,36 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
setup_git() {
|
|
||||||
git config --global user.email "30secondsofcode@gmail.com"
|
|
||||||
git config --global user.name "30secondsofcode"
|
|
||||||
}
|
|
||||||
|
|
||||||
commit_website_files() {
|
|
||||||
if [ $TRAVIS_EVENT_TYPE != "pull_request" ]; then
|
|
||||||
if [ $TRAVIS_BRANCH == "master" ]; then
|
|
||||||
echo "Committing to master branch..."
|
|
||||||
git checkout master
|
|
||||||
git add *
|
|
||||||
if [ $TRAVIS_EVENT_TYPE == "cron" ]; then
|
|
||||||
git commit --message "Travis build: $TRAVIS_BUILD_NUMBER [cron]"
|
|
||||||
elif [ $TRAVIS_EVENT_TYPE == "api" ]; then
|
|
||||||
git commit --message "Travis build: $TRAVIS_BUILD_NUMBER [custom]"
|
|
||||||
else
|
|
||||||
git reset coverage/*
|
|
||||||
git commit --message "Travis build: $TRAVIS_BUILD_NUMBER"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
upload_files() {
|
|
||||||
if [ $TRAVIS_EVENT_TYPE != "pull_request" ]; then
|
|
||||||
if [ $TRAVIS_BRANCH == "master" ]; then
|
|
||||||
echo "Pushing to master branch..."
|
|
||||||
git push --quiet "https://${GH_TOKEN}@github.com/30-seconds/30-seconds-of-code.git" master > /dev/null 2>&1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
setup_git
|
|
||||||
commit_website_files
|
|
||||||
upload_files
|
|
||||||
20
config.js
20
config.js
@ -1,20 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
// Project metadata
|
|
||||||
name: `30 seconds of code`,
|
|
||||||
description: `Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.`,
|
|
||||||
shortName: `30s`,
|
|
||||||
repositoryUrl: `https://github.com/30-seconds/30-seconds-of-code`,
|
|
||||||
siteUrl: `https://www.30secondsofcode.org`,
|
|
||||||
// Path information
|
|
||||||
snippetPath: `snippets`,
|
|
||||||
snippetDataPath: `snippet_data`,
|
|
||||||
// General information
|
|
||||||
language: {
|
|
||||||
short: `js`,
|
|
||||||
long: `JavaScript`
|
|
||||||
},
|
|
||||||
// Requirable JSONs
|
|
||||||
requirables: [
|
|
||||||
`snippets.json`
|
|
||||||
]
|
|
||||||
};
|
|
||||||
1
languageFix.js
Normal file
1
languageFix.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
console.log('This file is here only to tag the repository language. Do not delete, please!');
|
||||||
2379
package-lock.json
generated
2379
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
31
package.json
31
package.json
@ -1,31 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "30-seconds-of-code",
|
|
||||||
"description": "A collection of useful JavaScript snippets.",
|
|
||||||
"version": "1.2.3",
|
|
||||||
"main": "dist/_30s.js",
|
|
||||||
"module": "dist/_30s.esm.js",
|
|
||||||
"sideEffects": false,
|
|
||||||
"scripts": {
|
|
||||||
"linter": "node ./scripts/lint.js",
|
|
||||||
"extractor": "extract-snippet-data config.js"
|
|
||||||
},
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "git+https://github.com/30-seconds/30-seconds-of-code.git"
|
|
||||||
},
|
|
||||||
"keywords": [
|
|
||||||
"javascript",
|
|
||||||
"snippets",
|
|
||||||
"list"
|
|
||||||
],
|
|
||||||
"author": "Chalarangelo (chalarangelo@gmail.com)",
|
|
||||||
"license": "CC0-1.0",
|
|
||||||
"bugs": {
|
|
||||||
"url": "https://github.com/30-seconds/30-seconds-of-code/issues"
|
|
||||||
},
|
|
||||||
"homepage": "https://30secondsofcode.org/",
|
|
||||||
"dependencies": {},
|
|
||||||
"devDependencies": {
|
|
||||||
"@30-seconds/integration-tools": "^2.0.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user