Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a build script #8

Open
glaubinix opened this issue Oct 2, 2013 · 8 comments
Open

Add a build script #8

glaubinix opened this issue Oct 2, 2013 · 8 comments

Comments

@glaubinix
Copy link
Owner

We were talking already a couple of times about a build script
* merge js, css
* maybe build custom html with data from the config file and replace stuff like title
* maybe even merge everything into one single html file
* have different tasks for the different formats

A start would be actually figure out what sort of build script we want:
* grunt
* custom js file
* other option?

@BattleRattle
Copy link
Collaborator

Grunt looks pretty promising to me. There are so many plugins available. I think we should use that.

@BattleRattle
Copy link
Collaborator

OK, 3 weeks without any objection or suggestions for alternatives. So I guess, Grunt it is.

@BattleRattle
Copy link
Collaborator

Whoops, I accidently closed this issue. Of course, integrating Grunt is still a TODO :D

@BattleRattle BattleRattle reopened this Oct 23, 2013
@glaubinix
Copy link
Owner Author

I would start with the js part. Ok if I take uglify.js to minify or do you have any other preferences? Any ideas for css?

@BattleRattle
Copy link
Collaborator

What about UglifyCss? :)

@glaubinix
Copy link
Owner Author

I think the easiest would be to add the grunt watch task and every time you change something the merged css and js files are rebuild and in the index.hml you only add the final files but not the dev files. What do you think?

@glaubinix
Copy link
Owner Author

Ok, finally decided to have a look at it, idea so far:

  • move plugins to own repositories (js, css) this will allow dependency handling
  • this repo will contain build script + base version
  • build script has 2 steps: init + build
  • init setups a new project (if you have a look at the jsunconf repo, you see modify our repo and keep everything under version control) kind of similar to npm init -> output config.json
  • build create app cache file , 1 html, 1 css, 1 js
  • maybe additional "dev" serve mode if you want to create own css styles?

Any thoughts @BattleRattle. Maybe @robertkowalski do you have anything, you missed during the jsunconf setup?

@robertkowalski
Copy link
Contributor

Nothing special, it was quite easy to setup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants