Merge pull request #94 from 30-seconds/disintegration-tools

Integration-tools cleanup
This commit is contained in:
Angelos Chalaris
2020-05-02 19:57:40 +03:00
committed by GitHub
7 changed files with 1 additions and 3575 deletions

View File

@ -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

View File

@ -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-react.git" master > /dev/null 2>&1
fi
fi
}
setup_git
commit_website_files
upload_files

View File

@ -1,23 +0,0 @@
module.exports = {
// Project metadata
name: `30 seconds of React`,
description: `Curated collection of useful React snippets that you can understand in 30 seconds or less.`,
shortName: `30s`,
repositoryUrl: `https://github.com/30-seconds/30-seconds-of-react`,
siteUrl: `https://react.30secondsofcode.org`,
// Path information
snippetPath: `snippets`,
snippetDataPath: `snippet_data`,
assetPath: `assets`,
pagePath: `src/docs/pages`,
staticPartsPath: `src/static-parts`,
// General information
language: {
short: `jsx`,
long: `React`
},
optionalLanguage: {
short: `css`,
long: `CSS`
}
};

1
languageFix.jsx Normal file
View File

@ -0,0 +1 @@
console.log('This file is here only to tag the repository language. Do not delete, please!');

2300
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,31 +0,0 @@
{
"name": "30-seconds-of-react",
"version": "1.0.0",
"repository": {
"type": "git",
"url": "git+https://github.com/30-seconds/30-seconds-of-react.git"
},
"scripts": {
"extractor": "extract-snippet-data config.js"
},
"devDependencies": {
"@30-seconds/integration-tools": "^2.0.0"
},
"prettier": {
"singleQuote": true,
"printWidth": 100
},
"description": "Curated collection of useful React snippets that you can understand in 30 seconds or less.",
"main": "index.js",
"keywords": [
"react",
"snippets",
"javascript"
],
"author": "30-seconds (30secondsofcode@gmail.com)",
"license": "CC0-1.0",
"bugs": {
"url": "https://github.com/30-seconds/30-seconds-of-react/issues"
},
"homepage": "https://github.com/30-seconds/30-seconds-of-react#readme"
}

File diff suppressed because it is too large Load Diff