Merge pull request #197 from 30-seconds/disintegration-tools
Integration-tools cleanup
This commit is contained in:
13
.travis.yml
13
.travis.yml
@ -1,13 +0,0 @@
|
||||
language: node_js
|
||||
cache:
|
||||
directories:
|
||||
- node_modules
|
||||
node_js:
|
||||
- lts/*
|
||||
before_install:
|
||||
- git fetch --unshallow
|
||||
script:
|
||||
- npm run extractor
|
||||
after_success:
|
||||
- chmod +x .travis/push.sh
|
||||
- .travis/push.sh
|
||||
@ -1,35 +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 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-python.git" master > /dev/null 2>&1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
setup_git
|
||||
commit_website_files
|
||||
upload_files
|
||||
19
config.js
19
config.js
@ -1,19 +0,0 @@
|
||||
module.exports = {
|
||||
// Project metadata
|
||||
name: `30 seconds of python`,
|
||||
description: `A curated collection of useful Python snippets that you can understand in 30 seconds or less.`,
|
||||
shortName: `30s`,
|
||||
repositoryUrl: `https://github.com/30-seconds/30-seconds-of-python`,
|
||||
siteUrl: `https://python.30secondsofcode.org`,
|
||||
// Path information
|
||||
snippetPath: `snippets`,
|
||||
snippetDataPath: `snippet_data`,
|
||||
assetPath: `assets`,
|
||||
pagePath: `src/docs/pages`,
|
||||
staticPartsPath: `src/static-parts`,
|
||||
// General information
|
||||
language: {
|
||||
short: `py`,
|
||||
long: `Python`
|
||||
},
|
||||
};
|
||||
2243
package-lock.json
generated
2243
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
23
package.json
23
package.json
@ -1,23 +0,0 @@
|
||||
{
|
||||
"name": "30-seconds-of-python",
|
||||
"version": "1.0.0",
|
||||
"description": "A curated collection of useful Python snippets that you can understand in 30 seconds or less.",
|
||||
"main": "config.js",
|
||||
"scripts": {
|
||||
"extractor": "extract-snippet-data config.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/30-seconds/30-seconds-of-python.git"
|
||||
},
|
||||
"author": "Stefan Fejes (ns.fejes.stefan@gmail.com)",
|
||||
"license": "CC0-1.0",
|
||||
"bugs": {
|
||||
"url": "https://github.com/30-seconds/30-seconds-of-pythong-code/issues"
|
||||
},
|
||||
"homepage": "https://github.com/30-seconds/30-seconds-of-python",
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@30-seconds/integration-tools": "^1.3.4"
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user