Merge pull request #183 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-css.git" master > /dev/null 2>&1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
setup_git
|
||||
commit_website_files
|
||||
upload_files
|
||||
28
config.js
28
config.js
@ -1,28 +0,0 @@
|
||||
module.exports = {
|
||||
// Project metadata
|
||||
name: `30 seconds of CSS`,
|
||||
description: `A curated collection of useful CSS snippets you can understand in 30 seconds or less.`,
|
||||
shortName: `30s`,
|
||||
repositoryUrl: `https://github.com/30-seconds/30-seconds-of-css`,
|
||||
siteUrl: `https://css.30secondsofcode.org`,
|
||||
// Path information
|
||||
snippetPath: `snippets`,
|
||||
snippetDataPath: `snippet_data`,
|
||||
assetPath: `assets`,
|
||||
pagePath: `src/docs/pages`,
|
||||
staticPartsPath: `src/static-parts`,
|
||||
// General information
|
||||
language: {
|
||||
short: `css`,
|
||||
long: `CSS`,
|
||||
},
|
||||
secondLanguage: {
|
||||
short: `html`,
|
||||
long: `HTML`
|
||||
},
|
||||
optionalLanguage:{
|
||||
short: `js`,
|
||||
long: `JavaScript`
|
||||
},
|
||||
parser: '_30cssParser'
|
||||
}
|
||||
4
languageFix.css
Normal file
4
languageFix.css
Normal file
@ -0,0 +1,4 @@
|
||||
/* This file is here only to tag the repository language. Do not delete, please! */
|
||||
html {
|
||||
margin: 0;
|
||||
}
|
||||
2284
package-lock.json
generated
2284
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
14
package.json
14
package.json
@ -1,14 +0,0 @@
|
||||
{
|
||||
"name": "30-seconds-of-css",
|
||||
"version": "0.0.0",
|
||||
"description": "A curated collection of useful CSS snippets.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"extractor": "extract-snippet-data config.js"
|
||||
},
|
||||
"author": "atomiks",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@30-seconds/integration-tools": "^2.2.0"
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user