This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var remote = require('remote'); | |
var Tray = remote.require('tray'); | |
var Menu = remote.require('menu'); | |
var path = require('path'); | |
var trayIcon = null; | |
if (process.platform === 'darwin') { | |
trayIcon = new Tray(path.join(__dirname, 'img/tray-iconTemplate.png')); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... imports | |
export default class FacadeService implements IFacadeService { | |
private dataService:IDataService; | |
private uiStateService:IUIStateService; | |
constructor(dataService:IDataService, uiStateService:IUIStateService) { | |
this.dataService = dataService; | |
this.uiStateService = uiStateService; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... imports | |
export default class DeckController { | |
private facadeService:IFacadeService; | |
constructor(facadeService:IFacadeService) { | |
this.facadeService = facadeService; | |
} | |
public getDecks():IDeck[] { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir submodules | |
git submodule add https://github.com/comsysto/blog-css-architecture-css-repository submodules/styles | |
mv styles/* submodules/styles | |
rm styles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd submodules/styles | |
git add . | |
git commit -m "pulling out source css" | |
git push | |
cd .. | |
cd .. | |
git add . | |
git commit -m "pulled out source css" | |
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
... | |
"main": "index.js", | |
"scripts": { | |
"start": "node server.js", | |
"build": "node-sass --include-path styles styles/styles.scss styles/styles.css", | |
"getCss": "cp submodules/styles/styles.css styles/styles.css" | |
} | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Pull the dependency out into a submodule | |
cd submodules/styles | |
git submodule add https://github.com/comsysto/blog-css-architecture-css-dependency submodules/bootstrap | |
mv bootstrap-sass-master/* submodules/bootstrap | |
rm -rf bootstrap-sass-master | |
cd submodules/bootstrap | |
git add . | |
git commit -m "pulled out CSS dependency" | |
git push | |
// Update your CSS repository with the new reference |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import "submodules/bootstrap/assets/stylesheets/bootstrap"; | |
$almostBlack: #333; | |
html, body { | |
background-color: $almostBlack; | |
color: $gray-light; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "blog-css-architecture", | |
"version": "1.0.0", | |
"description": "Main project for the CSS architecture blog", | |
"scripts": { | |
"build": "node-sass styles.scss styles.css" | |
}, | |
"author": "Kristian Poslek <kristian.poslek@gmail.com>", | |
"license": "MIT", | |
"devDependencies": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install -g angular-cli | |
ng new my-angular-application | |
cd my-angular-application | |
ng serve |