Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Commit

Permalink
Move views path
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Aug 24, 2015
1 parent 28a930e commit d2fdcba
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ gulp.task(
gulp.task(
'compile-haml',
function () {
gulp.src('src/*.haml')
gulp.src('src/**/*.haml')
.pipe(haml())
.pipe(gulp.dest('app'));
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"license": "MIT",
"scripts": {
"start": "npm run compile && electron .",
"compile": "gulp compile",
"compile": "rm -rf app && gulp compile",
"build": "rm -f access_token.json && find . -name .DS_Store | xargs rm && rm -rf packages && npm run package && npm run zip",
"package": "electron-packager . Nocturn --arch=x64 --out=packages/v0.0.1 --platform=darwin,linux,win32 --version=0.31.0 --ignore=packages/*",
"zip": "npm run zip-darwin && npm run zip-linux && npm run zip-win32",
Expand Down
2 changes: 1 addition & 1 deletion src/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ app.on('ready', ->

mainRoutine = ->
mainWindow = new BrowserWindow({ width: 350, height: 640 })
mainWindow.loadUrl('file://' + __dirname + '/index.html')
mainWindow.loadUrl('file://' + __dirname + '/views/index.html')
mainWindow.on('closed', ->
mainWindow = null
app.quit()
Expand Down
4 changes: 2 additions & 2 deletions src/index.haml → src/views/index.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
%meta{ charset: "utf-8" }
%link{ rel: "stylesheet", href: "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" }
%link{ rel: "stylesheet", href: "https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" }
%link{ rel: "stylesheet", href: "stylesheets/application.css" }
%link{ rel: "stylesheet", href: "../stylesheets/application.css" }
:javascript
require('coffee-script/register');
require('./application');
require('../application');
%body
.current_user{ data-id: 0, name: "" }
Expand Down

0 comments on commit d2fdcba

Please sign in to comment.