Skip to content

Commit

Permalink
fix: update setup config
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyBeldone committed Dec 9, 2020
1 parent 063b5d3 commit 1839830
Show file tree
Hide file tree
Showing 5 changed files with 181 additions and 107 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,7 @@ typings/
# next.js build output
.next

dist
dist

setupCopy
setup/package.json
163 changes: 83 additions & 80 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,82 +1,85 @@
{
"name": "open-source-starter",
"version": "1.1.0",
"description": "Open source project starter",
"main": "index.js",
"author": "Jimmy Beldone <[email protected]>",
"repository": {
"type": "git",
"url": "https://github.com/JimmyBeldone/open-source-starter.git"
},
"bugs": {
"email": "[email protected]",
"url": "https://github.com/JimmyBeldone/open-source-starter/issues"
},
"scripts": {
"commit": "git-cz",
"setup": "node setup/setupMessage.js && yarn && node setup/setup.js",
"lint": "eslint src --fix",
"pretty": "prettier --write 'src/**/*.js'",
"test": "jest --coverage",
"prepare": "yarn clean && cross-env NODE_ENV=production yarn build",
"clean": "rimraf ./dist",
"build": "babel src --out-dir dist --ignore 'src/**/*.spec.js','src/**/*.test.js'",
"semantic-release": "semantic-release"
},
"license": "MIT",
"private": false,
"devDependencies": {
"@babel/cli": "7.12.8",
"@babel/core": "7.12.9",
"@babel/preset-env": "7.12.7",
"@semantic-release/changelog": "5.0.1",
"@semantic-release/git": "9.0.0",
"babel-eslint": "10.1.0",
"babel-jest": "26.6.3",
"chalk": "^4.1.0",
"commitizen": "4.2.2",
"cross-env": "7.0.3",
"cz-conventional-changelog": "3.3.0",
"eslint": "7.15.0",
"eslint-config-airbnb-base": "14.2.1",
"eslint-config-prettier": "7.0.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jest": "24.1.3",
"eslint-plugin-prettier": "3.2.0",
"husky": "4.3.5",
"jest": "26.6.3",
"lint-staged": "10.5.3",
"prettier": "2.2.1",
"prompts": "^2.4.0",
"replace": "^1.2.0",
"rimraf": "^3.0.2",
"semantic-release": "17.3.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"{src}/**/*.js": [
"eslint --fix",
"prettier --write"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"keywords": [
"boilerplate",
"starterkit",
"starter kit",
"starter",
"webpack",
"open source",
"code formatter",
"babel"
],
"dependencies": {}
"name": "open-source-starter",
"version": "1.1.0",
"description": "Open source project starter",
"main": "index.js",
"author": "Jimmy Beldone <[email protected]>",
"repository": {
"type": "git",
"url": "https://github.com/JimmyBeldone/open-source-starter.git"
},
"bugs": {
"email": "[email protected]",
"url": "https://github.com/JimmyBeldone/open-source-starter/issues"
},
"scripts": {
"commit": "git-cz",
"setup": "node setup/setupMessage.js && yarn && node setup/setup.js && yarn start",
"setup:copy": "rimraf setupCopy && cp ./package.json ./setup/package.json && cp -r ./setup ./setupCopy",
"setup:test": "yarn setup:copy && node setup/setupMessage.js && yarn && yarn setup:test:init && yarn start",
"setup:test:init": "cross-env MODE=test node setup/setup.js",
"lint": "eslint src --fix",
"pretty": "prettier --write 'src/**/*.js'",
"test": "jest --coverage",
"prepare": "yarn clean && cross-env NODE_ENV=production yarn build",
"clean": "rimraf ./dist",
"build": "babel src --out-dir dist --ignore 'src/**/*.spec.js','src/**/*.test.js'",
"semantic-release": "semantic-release"
},
"license": "MIT",
"private": false,
"devDependencies": {
"@babel/cli": "7.12.8",
"@babel/core": "7.12.9",
"@babel/preset-env": "7.12.7",
"@semantic-release/changelog": "5.0.1",
"@semantic-release/git": "9.0.0",
"babel-eslint": "10.1.0",
"babel-jest": "26.6.3",
"chalk": "^4.1.0",
"commitizen": "4.2.2",
"cross-env": "7.0.3",
"cz-conventional-changelog": "3.3.0",
"eslint": "7.15.0",
"eslint-config-airbnb-base": "14.2.1",
"eslint-config-prettier": "7.0.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jest": "24.1.3",
"eslint-plugin-prettier": "3.2.0",
"husky": "4.3.5",
"jest": "26.6.3",
"lint-staged": "10.5.3",
"prettier": "2.2.1",
"prompts": "^2.4.0",
"replace": "^1.2.0",
"rimraf": "^3.0.2",
"semantic-release": "17.3.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"{src}/**/*.js": [
"eslint --fix",
"prettier --write"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"keywords": [
"boilerplate",
"starterkit",
"starter kit",
"starter",
"webpack",
"open source",
"code formatter",
"babel"
],
"dependencies": {}
}
1 change: 1 addition & 0 deletions setup/constants.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const icons = {
biceps: 0x1f4aa,
broom: 0x1f9f9,
check: 0x2705,
coffee: 0x2615,
cross: 0x274c,
Expand Down
39 changes: 26 additions & 13 deletions setup/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,45 @@ Not ready, I get it. Maybe next time ! ${unicode(icons.wink)}
`;

const intalledMessage = `
${unicode(icons.check)} Alright ! Dependencies installed ! \n
${unicode(icons.trash)} Preparing to delete local git repository...
${unicode(icons.check)} Alright ! Dependencies installed !
${chalkBg(' ')}
${unicode(icons.trash)} Preparing to delete local git repository...\n
`;

const pkgIntroMesage = `${unicode(
icons.tree,
)} Now let's pimp your package.json file \n`;
const pkgIntroMesage = `
${chalkBg(' ')}
const finalMessage = `
${unicode(icons.check)} Your package.json is set !
${unicode(icons.tree)} Now let's pimp your package.json file \n
`;

const pkgAllSetMessage = `\n${unicode(
icons.check,
)} Your package.json is set !\n`;

const cleanUpMessage = `
${chalkBg(' ')}
${unicode(icons.rocket)} Open Source Starter Initialized ${unicode(
icons.lemon,
)}
${unicode(icons.broom)} Cleaning up setup files... \n\n`;

${unicode(icons.biceps)} Go build something great !
const finalMessage = `
${chalkBg(' ')}
Now configure semantic-release with:
$ npx semantic-release-cli setup
${unicode(icons.check)} Open Source Starter Initialized ${unicode(icons.lemon)}
${unicode(icons.biceps)} Go build something great !
${chalkBg(' ')}
${unicode(icons.rocket)} Starting server ...
`;

const gitDeleteMessage = `\n${unicode(
Expand All @@ -51,9 +62,11 @@ const gitNoDeleteMessage = `\n${unicode(

module.exports = {
cancelMessage,
cleanUpMessage,
finalMessage,
gitDeleteMessage,
gitNoDeleteMessage,
intalledMessage,
pkgAllSetMessage,
pkgIntroMesage,
};
Loading

0 comments on commit 1839830

Please sign in to comment.