Tailwind, side barr, add new component button, layour of route
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
const fs = require('fs');
|
||||
|
||||
const type = process.argv[2];
|
||||
|
||||
const pkg = require('../package_template.json');
|
||||
for (const key in pkg['merge-configs'][type]) {
|
||||
Object.assign(pkg[key], pkg['merge-configs'][type][key]);
|
||||
}
|
||||
delete pkg['merge-configs'];
|
||||
fs.writeFileSync(
|
||||
__dirname + '/../package.json',
|
||||
JSON.stringify(pkg, null, ' ') + '\n'
|
||||
);
|
||||
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
if [ "$CI" ]; then
|
||||
(umask 0077; echo "$SSH_KEY" > ~/ssh_key; echo "$SSH_KEY_ROLLUP" > ~/ssh_key_rollup; echo "$SSH_KEY_WEBPACK" > ~/ssh_key_webpack)
|
||||
git config user.email '[email protected]'
|
||||
git config user.name '[bot]'
|
||||
fi
|
||||
|
||||
# branch names
|
||||
ROLLUP=rollup
|
||||
WEBPACK=webpack
|
||||
|
||||
./create-branches.sh $ROLLUP $WEBPACK
|
||||
|
||||
# force push rollup and webpack branches and repos
|
||||
GIT_SSH_COMMAND='ssh -o StrictHostKeyChecking=accept-new -i ~/ssh_key' git push [email protected]:sveltejs/sapper-template.git $ROLLUP $WEBPACK -f
|
||||
GIT_SSH_COMMAND='ssh -o StrictHostKeyChecking=accept-new -i ~/ssh_key_rollup' git push [email protected]:sveltejs/sapper-template-rollup.git $ROLLUP:master -f
|
||||
GIT_SSH_COMMAND='ssh -o StrictHostKeyChecking=accept-new -i ~/ssh_key_webpack' git push [email protected]:sveltejs/sapper-template-webpack.git $WEBPACK:master -f
|
||||
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
cd "$(dirname "$0")"/..
|
||||
|
||||
HEAD=$(git rev-parse HEAD)
|
||||
|
||||
ROLLUP=${1:-rollup}
|
||||
WEBPACK=${2:-webpack}
|
||||
|
||||
echo "Creating $ROLLUP and $WEBPACK branches from $REV"
|
||||
|
||||
# create the $ROLLUP branch off the current HEAD
|
||||
git symbolic-ref HEAD refs/heads/$ROLLUP
|
||||
git reset $HEAD --hard
|
||||
node _template/build-pkg.js rollup
|
||||
git rm -r --cached .github _template package_template.json webpack.config.js
|
||||
git add package.json
|
||||
git commit -m 'Sapper template for Rollup'
|
||||
|
||||
# create the $WEBPACK branch off the current HEAD
|
||||
git symbolic-ref HEAD refs/heads/$WEBPACK
|
||||
git reset $HEAD --hard
|
||||
node _template/build-pkg.js webpack
|
||||
git rm -r --cached .github _template package_template.json rollup.config.js
|
||||
git add package.json
|
||||
git commit -m 'Sapper template for webpack'
|
||||
Reference in New Issue
Block a user