2.1.8 • Published 8 years ago

curse-fe v2.1.8

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

curse-fe

npm i -g curse-fe

#####An all-in-one package for Curse, Inc's front-end devs

create curse-fe.json file:

{
  "sass": {
    "watch": [
      "project1/css",
      "project2/css"
    ],
    "compile": [
      "project1/css/core.scss",
      "project2/css/core.scss"
    ]
  },
  "react": {
    "entries": [
      "project1/js/react/app1",
      "project1/js/react/app2"
    ],
    "externals": {
      "external1": "External1",
      "external2": "External2"
    }
  },
  "browserSync": {
    "vhost": "url.tld",
    "files": [
      "bundle.js",
      "Cobalt/Content/js/**/*.js",
      "**/core.css"
    ]
  },
  "concatenate": {
    "files": [
      "js/*.js"
    ],
    "destination": [
      "js/dist"
    ]
  }
}

run curse-fe and let the magic happen!

####Check Current Version:

check current version with curse-fe -v or curse-fe --version

####BrowserSync:

To use BrowserSync, simply navigate to vhost:3000 after running curse-fe!

####PostCSS

use PostCSS (currently only autoprefixer) with curse-fe postcss

note: this will be phased out as legacy code is cleaned up. future versions will have PostCSS on by default with curse-fe

####Linting:

to lint a js/jsx file, run curse-fe lint FILE_NAME. it will return either the lint response, or nothing if the file is good to go!

####JS Concatenation:

adding the concatenate object to your curse-fe.json file and adding the files/destination objects to it will concatenate the files in the files list and output the bundle to the destination folder.

####Minification:

if you pass curse-fe minify it will minify your css and js concatenated bundle (if those objects are created in your curse-fe.json file). if you'd like to minify your PostCSS'd css, pass curse-fe minify postcss

2.1.8

8 years ago

2.1.7

8 years ago

2.1.6

8 years ago

2.1.5

8 years ago

2.1.4

8 years ago

2.1.3

8 years ago

2.1.2

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.8.3

8 years ago

1.8.3-postcss

8 years ago

1.8.2

8 years ago

1.8.2-postcss

8 years ago

1.8.1

8 years ago

1.8.1-postcss

8 years ago

1.8.0

8 years ago

1.8.0-postcss

8 years ago

1.7.2

8 years ago

1.7.2-postcss

8 years ago

1.7.1

8 years ago

1.7.1-postcss

8 years ago

1.7.0

8 years ago

1.6.5

8 years ago

1.6.5-postcss

8 years ago

1.6.4

8 years ago

1.6.3

8 years ago

1.6.3-postcss

8 years ago

1.6.2-postcss

8 years ago

1.6.1

8 years ago

1.6.1-postcss

8 years ago

1.6.0

8 years ago

1.6.0-postcss

8 years ago

1.5.1

8 years ago

1.5.0-postcss

8 years ago

1.5.0

8 years ago

1.4.7

8 years ago

1.4.6

8 years ago

1.4.5

8 years ago

1.4.4

8 years ago

1.4.3

8 years ago

1.4.2

8 years ago

1.4.1

8 years ago

1.4.0

8 years ago

1.3.9

8 years ago

1.3.8

8 years ago

1.3.7

8 years ago

1.3.6

8 years ago

1.3.5

8 years ago

1.3.4

8 years ago

1.3.3

8 years ago

1.3.2

8 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.2.9

8 years ago

1.2.8

8 years ago

1.2.6

8 years ago

1.2.5

8 years ago

1.2.3

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.9

8 years ago

1.1.8

8 years ago

1.1.7

8 years ago

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago