Skip to content

Commit

Permalink
grunt build working w requirejs, still requires manual ops
Browse files Browse the repository at this point in the history
  • Loading branch information
girishso committed Feb 28, 2014
1 parent 67bf41a commit 95196ff
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Gruntfile.js
Expand Up @@ -227,8 +227,9 @@ module.exports = function (grunt) {
options: {
baseUrl: "app/scripts",
mainConfigFile: "app/scripts/require.config.js",
include: ['require.config'],
name: "Main", // assumes a production build using almond
out: "main.js"
out: "dist/scripts/main.min.js"
}
}
},
Expand Down Expand Up @@ -354,6 +355,7 @@ module.exports = function (grunt) {
'useminPrepare',
'concurrent',
'haml',
'requirejs',
'cssmin',
'concat',
'uglify',
Expand Down
16 changes: 16 additions & 0 deletions Readme.md
@@ -0,0 +1,16 @@
# Steps to deploy
```
grunt build
```

Edit dist/index.html

```
<script src="https://cdn.firebase.com/v0/firebase-simple-login.js"></script>
<script src="scripts/a984ab86.main.js"></script>
<script data-main="scripts/main.min" src="scripts/20b30de2.require.js"></script>
</body>
```

Change last 2 <script>, to point to proper file

0 comments on commit 95196ff

Please sign in to comment.