0.5.0 • Published 9 years ago

grunt-atomify v0.5.0

Weekly downloads
2
License
-
Repository
github
Last release
9 years ago

grunt-atomify

Build Status Dependency Status NPM

Hook atomify into your grunt process Example: you can have two different atomify configurations for release and debug builds. In this example, we're minifying the release artifact, and leaving the debug artifact inflated, and we're starting a livereload server in debug mode, for interactive development. This also shows that you can use grunt string replacement, like in a yeoman generated project.

atomify: {
  dist: {
    js: {
      entry: '<%= yeoman.app %>/src/index.js',
      transforms: ['debowerify', 'uglifyify'],
      debug: false,
      output: '<%= yeoman.dist %>/js/main.js'
    }
  },
  debug: {
    js: {
      entry: 'app/src/index.js',
      transforms: ['debowerify'],
      debug: true,
      output: 'dist/js/main.js'
    },
    server: {
      port: 9000,
      hostname: 'localhost',
      url: 'http://localhost:9000/yeoman/app/src/index.html',
      open: true,
      lr: {
        sync: true,
        port: 35729,
        verbose: true,
        // can't use grunt string replacement in these patterns
        patterns: [ 'yeoman/app/src/**/*.js' ]
      }
   }
  }
}

To run your dist build:

grunt atomify:dist

To run your debug build:

grunt atomify:debug
0.5.0

9 years ago

0.4.0

9 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago